[2025-02-28 00:00:05] Production.INFO: next invoice date [2025-02-28 00:00:05] Production.INFO: 2025-03-28 [2025-02-28 00:00:05] Production.INFO: getdaysdiff [2025-02-28 00:00:05] Production.INFO: +28 [2025-02-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,28,28,'RMScheduler',2025-02-28 00:00:05,1,0,,,0) [2025-02-28 00:00:05] Production.INFO: next invoice date [2025-02-28 00:00:05] Production.INFO: 2025-03-28 [2025-02-28 00:00:05] Production.INFO: getdaysdiff [2025-02-28 00:00:05] Production.INFO: +28 [2025-02-28 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,28,28,'RMScheduler',2025-02-28 00:00:05,1,0,,,0) [2025-02-28 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:00:07 [end_date_ymd] => 2025-02-28 00:00:07 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:00:07' and `end` < '2025-02-28 00: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-02-28 00:00:19] Production.INFO: count ==745 [2025-02-28 00:00:19] Production.ERROR: pbx CDR StartTime 2025-02-27 21:00:07 - End Time 2025-02-28 00:00:07 [2025-02-28 00:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572634', 'tblTempUsageDetail_20' ) start [2025-02-28 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572634', 'tblTempUsageDetail_20' ) end [2025-02-28 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572634', 'tblTempVendorCDR_20' ) start [2025-02-28 00:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572634', 'tblTempVendorCDR_20' ) end [2025-02-28 00:00:19] Production.INFO: ProcessCDR(1,14572634,1,1,2) [2025-02-28 00:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572634', 'tblTempUsageDetail_20' ) start [2025-02-28 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572634', 'tblTempUsageDetail_20' ) end [2025-02-28 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:00:27] Production.INFO: ==19177== Releasing lock... [2025-02-28 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:00:27] Production.INFO: 34.5 MB #Memory Used# [2025-02-28 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:01:06 [end_date_ymd] => 2025-02-28 00:01:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:01:06' and `end` < '2025-02-28 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-02-28 00:01:18] Production.INFO: count ==753 [2025-02-28 00:01:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:01:06 - End Time 2025-02-28 00:01:06 [2025-02-28 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572639', 'tblTempUsageDetail_20' ) start [2025-02-28 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572639', 'tblTempUsageDetail_20' ) end [2025-02-28 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572639', 'tblTempVendorCDR_20' ) start [2025-02-28 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572639', 'tblTempVendorCDR_20' ) end [2025-02-28 00:01:18] Production.INFO: ProcessCDR(1,14572639,1,1,2) [2025-02-28 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572639', 'tblTempUsageDetail_20' ) start [2025-02-28 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572639', 'tblTempUsageDetail_20' ) end [2025-02-28 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:01:21] Production.INFO: ==19295== Releasing lock... [2025-02-28 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:01:21] Production.INFO: 32.75 MB #Memory Used# [2025-02-28 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:02:05 [end_date_ymd] => 2025-02-28 00:02:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:02:05' and `end` < '2025-02-28 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-02-28 00:02:30] Production.INFO: count ==193 [2025-02-28 00:02:30] Production.ERROR: pbx CDR StartTime 2025-02-27 21:02:05 - End Time 2025-02-28 00:02:05 [2025-02-28 00:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572644', 'tblTempUsageDetail_20' ) start [2025-02-28 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572644', 'tblTempUsageDetail_20' ) end [2025-02-28 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572644', 'tblTempVendorCDR_20' ) start [2025-02-28 00:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572644', 'tblTempVendorCDR_20' ) end [2025-02-28 00:02:30] Production.INFO: ProcessCDR(1,14572644,1,1,2) [2025-02-28 00:02:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572644', 'tblTempUsageDetail_20' ) start [2025-02-28 00:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572644', 'tblTempUsageDetail_20' ) end [2025-02-28 00:02:33] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:02:33] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:02:33] Production.INFO: ==19365== Releasing lock... [2025-02-28 00:02:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:02:33] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:03:05 [end_date_ymd] => 2025-02-28 00:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:03:05' and `end` < '2025-02-28 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-02-28 00:03:18] Production.INFO: count ==197 [2025-02-28 00:03:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:03:05 - End Time 2025-02-28 00:03:05 [2025-02-28 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572649', 'tblTempUsageDetail_20' ) start [2025-02-28 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572649', 'tblTempUsageDetail_20' ) end [2025-02-28 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572649', 'tblTempVendorCDR_20' ) start [2025-02-28 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572649', 'tblTempVendorCDR_20' ) end [2025-02-28 00:03:18] Production.INFO: ProcessCDR(1,14572649,1,1,2) [2025-02-28 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572649', 'tblTempUsageDetail_20' ) start [2025-02-28 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572649', 'tblTempUsageDetail_20' ) end [2025-02-28 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:03:21] Production.INFO: ==19438== Releasing lock... [2025-02-28 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:04:05 [end_date_ymd] => 2025-02-28 00:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:04:05' and `end` < '2025-02-28 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-02-28 00:04:17] Production.INFO: count ==196 [2025-02-28 00:04:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:04:05 - End Time 2025-02-28 00:04:05 [2025-02-28 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572654', 'tblTempUsageDetail_20' ) start [2025-02-28 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572654', 'tblTempUsageDetail_20' ) end [2025-02-28 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572654', 'tblTempVendorCDR_20' ) start [2025-02-28 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572654', 'tblTempVendorCDR_20' ) end [2025-02-28 00:04:17] Production.INFO: ProcessCDR(1,14572654,1,1,2) [2025-02-28 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572654', 'tblTempUsageDetail_20' ) start [2025-02-28 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572654', 'tblTempUsageDetail_20' ) end [2025-02-28 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:04:21] Production.INFO: ==19509== Releasing lock... [2025-02-28 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:04:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:05:05 [end_date_ymd] => 2025-02-28 00:05:05 [RateCDR] => 1 ) [2025-02-28 00:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:05:05' and `end` < '2025-02-28 00:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:05:17] Production.INFO: count ==197 [2025-02-28 00:05:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:05:05 - End Time 2025-02-28 00:05:05 [2025-02-28 00:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572659', 'tblTempUsageDetail_20' ) start [2025-02-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572659', 'tblTempUsageDetail_20' ) end [2025-02-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572659', 'tblTempVendorCDR_20' ) start [2025-02-28 00:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572659', 'tblTempVendorCDR_20' ) end [2025-02-28 00:05:17] Production.INFO: ProcessCDR(1,14572659,1,1,2) [2025-02-28 00:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572659', 'tblTempUsageDetail_20' ) start [2025-02-28 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572659', 'tblTempUsageDetail_20' ) end [2025-02-28 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:05:21] Production.INFO: ==19584== Releasing lock... [2025-02-28 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:06:05 [end_date_ymd] => 2025-02-28 00:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:06:05' and `end` < '2025-02-28 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-02-28 00:06:17] Production.INFO: count ==196 [2025-02-28 00:06:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:06:05 - End Time 2025-02-28 00:06:05 [2025-02-28 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572664', 'tblTempUsageDetail_20' ) start [2025-02-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572664', 'tblTempUsageDetail_20' ) end [2025-02-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572664', 'tblTempVendorCDR_20' ) start [2025-02-28 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572664', 'tblTempVendorCDR_20' ) end [2025-02-28 00:06:17] Production.INFO: ProcessCDR(1,14572664,1,1,2) [2025-02-28 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572664', 'tblTempUsageDetail_20' ) start [2025-02-28 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572664', 'tblTempUsageDetail_20' ) end [2025-02-28 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:06:20] Production.INFO: ==19659== Releasing lock... [2025-02-28 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:06:20] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:07:05 [end_date_ymd] => 2025-02-28 00:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:07:05' and `end` < '2025-02-28 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-02-28 00:07:17] Production.INFO: count ==196 [2025-02-28 00:07:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:07:05 - End Time 2025-02-28 00:07:05 [2025-02-28 00:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572669', 'tblTempUsageDetail_20' ) start [2025-02-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572669', 'tblTempUsageDetail_20' ) end [2025-02-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572669', 'tblTempVendorCDR_20' ) start [2025-02-28 00:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572669', 'tblTempVendorCDR_20' ) end [2025-02-28 00:07:17] Production.INFO: ProcessCDR(1,14572669,1,1,2) [2025-02-28 00:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572669', 'tblTempUsageDetail_20' ) start [2025-02-28 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572669', 'tblTempUsageDetail_20' ) end [2025-02-28 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:07:21] Production.INFO: ==19731== Releasing lock... [2025-02-28 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:07:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:08:05 [end_date_ymd] => 2025-02-28 00:08:05 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:08:05' and `end` < '2025-02-28 00: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-02-28 00:08:17] Production.INFO: count ==192 [2025-02-28 00:08:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:08:05 - End Time 2025-02-28 00:08:05 [2025-02-28 00:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572674', 'tblTempUsageDetail_20' ) start [2025-02-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572674', 'tblTempUsageDetail_20' ) end [2025-02-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572674', 'tblTempVendorCDR_20' ) start [2025-02-28 00:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572674', 'tblTempVendorCDR_20' ) end [2025-02-28 00:08:17] Production.INFO: ProcessCDR(1,14572674,1,1,2) [2025-02-28 00:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572674', 'tblTempUsageDetail_20' ) start [2025-02-28 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572674', 'tblTempUsageDetail_20' ) end [2025-02-28 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:08:21] Production.INFO: ==19802== Releasing lock... [2025-02-28 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:08:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:09:06 [end_date_ymd] => 2025-02-28 00:09:06 [RateCDR] => 1 ) [2025-02-28 00:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:09:06' and `end` < '2025-02-28 00:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:09:18] Production.INFO: count ==191 [2025-02-28 00:09:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:09:06 - End Time 2025-02-28 00:09:06 [2025-02-28 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572679', 'tblTempUsageDetail_20' ) start [2025-02-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572679', 'tblTempUsageDetail_20' ) end [2025-02-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572679', 'tblTempVendorCDR_20' ) start [2025-02-28 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572679', 'tblTempVendorCDR_20' ) end [2025-02-28 00:09:18] Production.INFO: ProcessCDR(1,14572679,1,1,2) [2025-02-28 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572679', 'tblTempUsageDetail_20' ) start [2025-02-28 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572679', 'tblTempUsageDetail_20' ) end [2025-02-28 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:09:21] Production.INFO: ==19873== Releasing lock... [2025-02-28 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:10:05 [end_date_ymd] => 2025-02-28 00:10:05 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:10:05' and `end` < '2025-02-28 00: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-02-28 00:10:17] Production.INFO: count ==197 [2025-02-28 00:10:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:10:05 - End Time 2025-02-28 00:10:05 [2025-02-28 00:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572685', 'tblTempUsageDetail_20' ) start [2025-02-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572685', 'tblTempUsageDetail_20' ) end [2025-02-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572685', 'tblTempVendorCDR_20' ) start [2025-02-28 00:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572685', 'tblTempVendorCDR_20' ) end [2025-02-28 00:10:17] Production.INFO: ProcessCDR(1,14572685,1,1,2) [2025-02-28 00:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572685', 'tblTempUsageDetail_20' ) start [2025-02-28 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572685', 'tblTempUsageDetail_20' ) end [2025-02-28 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:10:21] Production.INFO: ==19945== Releasing lock... [2025-02-28 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:10:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:11:05 [end_date_ymd] => 2025-02-28 00:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:11:05' and `end` < '2025-02-28 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-02-28 00:11:17] Production.INFO: count ==203 [2025-02-28 00:11:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:11:05 - End Time 2025-02-28 00:11:05 [2025-02-28 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572690', 'tblTempUsageDetail_20' ) start [2025-02-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572690', 'tblTempUsageDetail_20' ) end [2025-02-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572690', 'tblTempVendorCDR_20' ) start [2025-02-28 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572690', 'tblTempVendorCDR_20' ) end [2025-02-28 00:11:17] Production.INFO: ProcessCDR(1,14572690,1,1,2) [2025-02-28 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572690', 'tblTempUsageDetail_20' ) start [2025-02-28 00:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572690', 'tblTempUsageDetail_20' ) end [2025-02-28 00:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:11:21] Production.INFO: ==20056== Releasing lock... [2025-02-28 00:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:12:05 [end_date_ymd] => 2025-02-28 00:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:12:05' and `end` < '2025-02-28 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-02-28 00:12:30] Production.INFO: count ==203 [2025-02-28 00:12:30] Production.ERROR: pbx CDR StartTime 2025-02-27 21:12:05 - End Time 2025-02-28 00:12:05 [2025-02-28 00:12:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572695', 'tblTempUsageDetail_20' ) start [2025-02-28 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572695', 'tblTempUsageDetail_20' ) end [2025-02-28 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572695', 'tblTempVendorCDR_20' ) start [2025-02-28 00:12:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572695', 'tblTempVendorCDR_20' ) end [2025-02-28 00:12:30] Production.INFO: ProcessCDR(1,14572695,1,1,2) [2025-02-28 00:12:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:12:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572695', 'tblTempUsageDetail_20' ) start [2025-02-28 00:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572695', 'tblTempUsageDetail_20' ) end [2025-02-28 00:12:34] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:12:34] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:12:34] Production.INFO: ==20129== Releasing lock... [2025-02-28 00:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:12:34] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:13:06 [end_date_ymd] => 2025-02-28 00:13:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:13:06' and `end` < '2025-02-28 00: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-02-28 00:13:19] Production.INFO: count ==204 [2025-02-28 00:13:19] Production.ERROR: pbx CDR StartTime 2025-02-27 21:13:06 - End Time 2025-02-28 00:13:06 [2025-02-28 00:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572700', 'tblTempUsageDetail_20' ) start [2025-02-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572700', 'tblTempUsageDetail_20' ) end [2025-02-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572700', 'tblTempVendorCDR_20' ) start [2025-02-28 00:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572700', 'tblTempVendorCDR_20' ) end [2025-02-28 00:13:19] Production.INFO: ProcessCDR(1,14572700,1,1,2) [2025-02-28 00:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572700', 'tblTempUsageDetail_20' ) start [2025-02-28 00:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572700', 'tblTempUsageDetail_20' ) end [2025-02-28 00:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:13:23] Production.INFO: ==20206== Releasing lock... [2025-02-28 00:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:13:23] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:14:05 [end_date_ymd] => 2025-02-28 00:14:05 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:14:05' and `end` < '2025-02-28 00: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-02-28 00:14:17] Production.INFO: count ==207 [2025-02-28 00:14:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:14:05 - End Time 2025-02-28 00:14:05 [2025-02-28 00:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572705', 'tblTempUsageDetail_20' ) start [2025-02-28 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572705', 'tblTempUsageDetail_20' ) end [2025-02-28 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572705', 'tblTempVendorCDR_20' ) start [2025-02-28 00:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572705', 'tblTempVendorCDR_20' ) end [2025-02-28 00:14:17] Production.INFO: ProcessCDR(1,14572705,1,1,2) [2025-02-28 00:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572705', 'tblTempUsageDetail_20' ) start [2025-02-28 00:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572705', 'tblTempUsageDetail_20' ) end [2025-02-28 00:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:14:20] Production.INFO: ==20274== Releasing lock... [2025-02-28 00:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:14:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:15:06 [end_date_ymd] => 2025-02-28 00:15:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:15:06' and `end` < '2025-02-28 00: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-02-28 00:15:18] Production.INFO: count ==205 [2025-02-28 00:15:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:15:06 - End Time 2025-02-28 00:15:06 [2025-02-28 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572710', 'tblTempUsageDetail_20' ) start [2025-02-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572710', 'tblTempUsageDetail_20' ) end [2025-02-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572710', 'tblTempVendorCDR_20' ) start [2025-02-28 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572710', 'tblTempVendorCDR_20' ) end [2025-02-28 00:15:18] Production.INFO: ProcessCDR(1,14572710,1,1,2) [2025-02-28 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572710', 'tblTempUsageDetail_20' ) start [2025-02-28 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572710', 'tblTempUsageDetail_20' ) end [2025-02-28 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:15:21] Production.INFO: ==20346== Releasing lock... [2025-02-28 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:15:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:16:06 [end_date_ymd] => 2025-02-28 00:16:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:16:06' and `end` < '2025-02-28 00: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-02-28 00:16:18] Production.INFO: count ==207 [2025-02-28 00:16:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:16:06 - End Time 2025-02-28 00:16:06 [2025-02-28 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572715', 'tblTempUsageDetail_20' ) start [2025-02-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572715', 'tblTempUsageDetail_20' ) end [2025-02-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572715', 'tblTempVendorCDR_20' ) start [2025-02-28 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572715', 'tblTempVendorCDR_20' ) end [2025-02-28 00:16:18] Production.INFO: ProcessCDR(1,14572715,1,1,2) [2025-02-28 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572715', 'tblTempUsageDetail_20' ) start [2025-02-28 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572715', 'tblTempUsageDetail_20' ) end [2025-02-28 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:16:21] Production.INFO: ==20416== Releasing lock... [2025-02-28 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:17:05 [end_date_ymd] => 2025-02-28 00:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:17:05' and `end` < '2025-02-28 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-02-28 00:17:17] Production.INFO: count ==207 [2025-02-28 00:17:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:17:05 - End Time 2025-02-28 00:17:05 [2025-02-28 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572720', 'tblTempUsageDetail_20' ) start [2025-02-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572720', 'tblTempUsageDetail_20' ) end [2025-02-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572720', 'tblTempVendorCDR_20' ) start [2025-02-28 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572720', 'tblTempVendorCDR_20' ) end [2025-02-28 00:17:17] Production.INFO: ProcessCDR(1,14572720,1,1,2) [2025-02-28 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572720', 'tblTempUsageDetail_20' ) start [2025-02-28 00:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572720', 'tblTempUsageDetail_20' ) end [2025-02-28 00:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:17:20] Production.INFO: ==20491== Releasing lock... [2025-02-28 00:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:18:05 [end_date_ymd] => 2025-02-28 00:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:18:05' and `end` < '2025-02-28 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-02-28 00:18:17] Production.INFO: count ==207 [2025-02-28 00:18:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:18:05 - End Time 2025-02-28 00:18:05 [2025-02-28 00:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572725', 'tblTempUsageDetail_20' ) start [2025-02-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572725', 'tblTempUsageDetail_20' ) end [2025-02-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572725', 'tblTempVendorCDR_20' ) start [2025-02-28 00:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572725', 'tblTempVendorCDR_20' ) end [2025-02-28 00:18:17] Production.INFO: ProcessCDR(1,14572725,1,1,2) [2025-02-28 00:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572725', 'tblTempUsageDetail_20' ) start [2025-02-28 00:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572725', 'tblTempUsageDetail_20' ) end [2025-02-28 00:18:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:18:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:18:20] Production.INFO: ==20574== Releasing lock... [2025-02-28 00:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:18:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:19:05 [end_date_ymd] => 2025-02-28 00:19:05 [RateCDR] => 1 ) [2025-02-28 00:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:19:05' and `end` < '2025-02-28 00:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:19:17] Production.INFO: count ==207 [2025-02-28 00:19:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:19:05 - End Time 2025-02-28 00:19:05 [2025-02-28 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572730', 'tblTempUsageDetail_20' ) start [2025-02-28 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572730', 'tblTempUsageDetail_20' ) end [2025-02-28 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572730', 'tblTempVendorCDR_20' ) start [2025-02-28 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572730', 'tblTempVendorCDR_20' ) end [2025-02-28 00:19:17] Production.INFO: ProcessCDR(1,14572730,1,1,2) [2025-02-28 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572730', 'tblTempUsageDetail_20' ) start [2025-02-28 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572730', 'tblTempUsageDetail_20' ) end [2025-02-28 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:19:21] Production.INFO: ==20648== Releasing lock... [2025-02-28 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:19:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:20:06 [end_date_ymd] => 2025-02-28 00:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:20:06' and `end` < '2025-02-28 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-02-28 00:20:18] Production.INFO: count ==217 [2025-02-28 00:20:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:20:06 - End Time 2025-02-28 00:20:06 [2025-02-28 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572736', 'tblTempUsageDetail_20' ) start [2025-02-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572736', 'tblTempUsageDetail_20' ) end [2025-02-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572736', 'tblTempVendorCDR_20' ) start [2025-02-28 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572736', 'tblTempVendorCDR_20' ) end [2025-02-28 00:20:18] Production.INFO: ProcessCDR(1,14572736,1,1,2) [2025-02-28 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572736', 'tblTempUsageDetail_20' ) start [2025-02-28 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572736', 'tblTempUsageDetail_20' ) end [2025-02-28 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:20:21] Production.INFO: ==20739== Releasing lock... [2025-02-28 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:21:06 [end_date_ymd] => 2025-02-28 00:21:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:21:06' and `end` < '2025-02-28 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-02-28 00:21:17] Production.INFO: count ==227 [2025-02-28 00:21:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:21:06 - End Time 2025-02-28 00:21:06 [2025-02-28 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572741', 'tblTempUsageDetail_20' ) start [2025-02-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572741', 'tblTempUsageDetail_20' ) end [2025-02-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572741', 'tblTempVendorCDR_20' ) start [2025-02-28 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572741', 'tblTempVendorCDR_20' ) end [2025-02-28 00:21:18] Production.INFO: ProcessCDR(1,14572741,1,1,2) [2025-02-28 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572741', 'tblTempUsageDetail_20' ) start [2025-02-28 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572741', 'tblTempUsageDetail_20' ) end [2025-02-28 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:21:21] Production.INFO: ==20816== Releasing lock... [2025-02-28 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:21:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:22:05 [end_date_ymd] => 2025-02-28 00:22:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:22:05' and `end` < '2025-02-28 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-02-28 00:22:17] Production.INFO: count ==223 [2025-02-28 00:22:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:22:05 - End Time 2025-02-28 00:22:05 [2025-02-28 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572746', 'tblTempUsageDetail_20' ) start [2025-02-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572746', 'tblTempUsageDetail_20' ) end [2025-02-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572746', 'tblTempVendorCDR_20' ) start [2025-02-28 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572746', 'tblTempVendorCDR_20' ) end [2025-02-28 00:22:17] Production.INFO: ProcessCDR(1,14572746,1,1,2) [2025-02-28 00:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572746', 'tblTempUsageDetail_20' ) start [2025-02-28 00:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572746', 'tblTempUsageDetail_20' ) end [2025-02-28 00:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:22:20] Production.INFO: ==20892== Releasing lock... [2025-02-28 00:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:22:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:23:05 [end_date_ymd] => 2025-02-28 00:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:23:05' and `end` < '2025-02-28 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-02-28 00:23:17] Production.INFO: count ==218 [2025-02-28 00:23:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:23:05 - End Time 2025-02-28 00:23:05 [2025-02-28 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572751', 'tblTempUsageDetail_20' ) start [2025-02-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572751', 'tblTempUsageDetail_20' ) end [2025-02-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572751', 'tblTempVendorCDR_20' ) start [2025-02-28 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572751', 'tblTempVendorCDR_20' ) end [2025-02-28 00:23:17] Production.INFO: ProcessCDR(1,14572751,1,1,2) [2025-02-28 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572751', 'tblTempUsageDetail_20' ) start [2025-02-28 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572751', 'tblTempUsageDetail_20' ) end [2025-02-28 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:23:21] Production.INFO: ==20968== Releasing lock... [2025-02-28 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:24:05 [end_date_ymd] => 2025-02-28 00:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:24:05' and `end` < '2025-02-28 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-02-28 00:24:17] Production.INFO: count ==221 [2025-02-28 00:24:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:24:05 - End Time 2025-02-28 00:24:05 [2025-02-28 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572756', 'tblTempUsageDetail_20' ) start [2025-02-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572756', 'tblTempUsageDetail_20' ) end [2025-02-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572756', 'tblTempVendorCDR_20' ) start [2025-02-28 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572756', 'tblTempVendorCDR_20' ) end [2025-02-28 00:24:17] Production.INFO: ProcessCDR(1,14572756,1,1,2) [2025-02-28 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572756', 'tblTempUsageDetail_20' ) start [2025-02-28 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572756', 'tblTempUsageDetail_20' ) end [2025-02-28 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:24:20] Production.INFO: ==21041== Releasing lock... [2025-02-28 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:24:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:25:05 [end_date_ymd] => 2025-02-28 00:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:25:05' and `end` < '2025-02-28 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-02-28 00:25:17] Production.INFO: count ==221 [2025-02-28 00:25:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:25:05 - End Time 2025-02-28 00:25:05 [2025-02-28 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572761', 'tblTempUsageDetail_20' ) start [2025-02-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572761', 'tblTempUsageDetail_20' ) end [2025-02-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572761', 'tblTempVendorCDR_20' ) start [2025-02-28 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572761', 'tblTempVendorCDR_20' ) end [2025-02-28 00:25:17] Production.INFO: ProcessCDR(1,14572761,1,1,2) [2025-02-28 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572761', 'tblTempUsageDetail_20' ) start [2025-02-28 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572761', 'tblTempUsageDetail_20' ) end [2025-02-28 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:25:20] Production.INFO: ==21124== Releasing lock... [2025-02-28 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:26:05 [end_date_ymd] => 2025-02-28 00:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:26:05' and `end` < '2025-02-28 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-02-28 00:26:17] Production.INFO: count ==221 [2025-02-28 00:26:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:26:05 - End Time 2025-02-28 00:26:05 [2025-02-28 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572766', 'tblTempUsageDetail_20' ) start [2025-02-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572766', 'tblTempUsageDetail_20' ) end [2025-02-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572766', 'tblTempVendorCDR_20' ) start [2025-02-28 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572766', 'tblTempVendorCDR_20' ) end [2025-02-28 00:26:17] Production.INFO: ProcessCDR(1,14572766,1,1,2) [2025-02-28 00:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572766', 'tblTempUsageDetail_20' ) start [2025-02-28 00:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572766', 'tblTempUsageDetail_20' ) end [2025-02-28 00:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:26:20] Production.INFO: ==21245== Releasing lock... [2025-02-28 00:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:26:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:27:05 [end_date_ymd] => 2025-02-28 00:27:05 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:27:05' and `end` < '2025-02-28 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-02-28 00:27:17] Production.INFO: count ==221 [2025-02-28 00:27:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:27:05 - End Time 2025-02-28 00:27:05 [2025-02-28 00:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572771', 'tblTempUsageDetail_20' ) start [2025-02-28 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572771', 'tblTempUsageDetail_20' ) end [2025-02-28 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572771', 'tblTempVendorCDR_20' ) start [2025-02-28 00:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572771', 'tblTempVendorCDR_20' ) end [2025-02-28 00:27:17] Production.INFO: ProcessCDR(1,14572771,1,1,2) [2025-02-28 00:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572771', 'tblTempUsageDetail_20' ) start [2025-02-28 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572771', 'tblTempUsageDetail_20' ) end [2025-02-28 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:27:21] Production.INFO: ==21324== Releasing lock... [2025-02-28 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:28:05 [end_date_ymd] => 2025-02-28 00:28:05 [RateCDR] => 1 ) [2025-02-28 00:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:28:05' and `end` < '2025-02-28 00:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:28:17] Production.INFO: count ==219 [2025-02-28 00:28:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:28:05 - End Time 2025-02-28 00:28:05 [2025-02-28 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572776', 'tblTempUsageDetail_20' ) start [2025-02-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572776', 'tblTempUsageDetail_20' ) end [2025-02-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572776', 'tblTempVendorCDR_20' ) start [2025-02-28 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572776', 'tblTempVendorCDR_20' ) end [2025-02-28 00:28:17] Production.INFO: ProcessCDR(1,14572776,1,1,2) [2025-02-28 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572776', 'tblTempUsageDetail_20' ) start [2025-02-28 00:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572776', 'tblTempUsageDetail_20' ) end [2025-02-28 00:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:28:20] Production.INFO: ==21404== Releasing lock... [2025-02-28 00:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:28:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:29:05 [end_date_ymd] => 2025-02-28 00:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:29:05' and `end` < '2025-02-28 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-02-28 00:29:17] Production.INFO: count ==219 [2025-02-28 00:29:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:29:05 - End Time 2025-02-28 00:29:05 [2025-02-28 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572781', 'tblTempUsageDetail_20' ) start [2025-02-28 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572781', 'tblTempUsageDetail_20' ) end [2025-02-28 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572781', 'tblTempVendorCDR_20' ) start [2025-02-28 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572781', 'tblTempVendorCDR_20' ) end [2025-02-28 00:29:17] Production.INFO: ProcessCDR(1,14572781,1,1,2) [2025-02-28 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572781', 'tblTempUsageDetail_20' ) start [2025-02-28 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572781', 'tblTempUsageDetail_20' ) end [2025-02-28 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:29:20] Production.INFO: ==21478== Releasing lock... [2025-02-28 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:29:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:30:06 [end_date_ymd] => 2025-02-28 00:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:30:06' and `end` < '2025-02-28 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-02-28 00:30:18] Production.INFO: count ==227 [2025-02-28 00:30:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:30:06 - End Time 2025-02-28 00:30:06 [2025-02-28 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572787', 'tblTempUsageDetail_20' ) start [2025-02-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572787', 'tblTempUsageDetail_20' ) end [2025-02-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572787', 'tblTempVendorCDR_20' ) start [2025-02-28 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572787', 'tblTempVendorCDR_20' ) end [2025-02-28 00:30:18] Production.INFO: ProcessCDR(1,14572787,1,1,2) [2025-02-28 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572787', 'tblTempUsageDetail_20' ) start [2025-02-28 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572787', 'tblTempUsageDetail_20' ) end [2025-02-28 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:30:21] Production.INFO: ==21556== Releasing lock... [2025-02-28 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:30:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:31:06 [end_date_ymd] => 2025-02-28 00:31:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:31:06' and `end` < '2025-02-28 00: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-02-28 00:31:18] Production.INFO: count ==243 [2025-02-28 00:31:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:31:06 - End Time 2025-02-28 00:31:06 [2025-02-28 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572792', 'tblTempUsageDetail_20' ) start [2025-02-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572792', 'tblTempUsageDetail_20' ) end [2025-02-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572792', 'tblTempVendorCDR_20' ) start [2025-02-28 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572792', 'tblTempVendorCDR_20' ) end [2025-02-28 00:31:18] Production.INFO: ProcessCDR(1,14572792,1,1,2) [2025-02-28 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572792', 'tblTempUsageDetail_20' ) start [2025-02-28 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572792', 'tblTempUsageDetail_20' ) end [2025-02-28 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:31:21] Production.INFO: ==21638== Releasing lock... [2025-02-28 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:31:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:32:05 [end_date_ymd] => 2025-02-28 00:32:05 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:32:05' and `end` < '2025-02-28 00: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-02-28 00:32:17] Production.INFO: count ==241 [2025-02-28 00:32:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:32:05 - End Time 2025-02-28 00:32:05 [2025-02-28 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572796', 'tblTempUsageDetail_20' ) start [2025-02-28 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572796', 'tblTempUsageDetail_20' ) end [2025-02-28 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572796', 'tblTempVendorCDR_20' ) start [2025-02-28 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572796', 'tblTempVendorCDR_20' ) end [2025-02-28 00:32:17] Production.INFO: ProcessCDR(1,14572796,1,1,2) [2025-02-28 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572796', 'tblTempUsageDetail_20' ) start [2025-02-28 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572796', 'tblTempUsageDetail_20' ) end [2025-02-28 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:32:21] Production.INFO: ==21718== Releasing lock... [2025-02-28 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:33:05 [end_date_ymd] => 2025-02-28 00:33:05 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:33:05' and `end` < '2025-02-28 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-02-28 00:33:17] Production.INFO: count ==246 [2025-02-28 00:33:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:33:05 - End Time 2025-02-28 00:33:05 [2025-02-28 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572802', 'tblTempUsageDetail_20' ) start [2025-02-28 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572802', 'tblTempUsageDetail_20' ) end [2025-02-28 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572802', 'tblTempVendorCDR_20' ) start [2025-02-28 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572802', 'tblTempVendorCDR_20' ) end [2025-02-28 00:33:18] Production.INFO: ProcessCDR(1,14572802,1,1,2) [2025-02-28 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572802', 'tblTempUsageDetail_20' ) start [2025-02-28 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572802', 'tblTempUsageDetail_20' ) end [2025-02-28 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:33:21] Production.INFO: ==21796== Releasing lock... [2025-02-28 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:34:06 [end_date_ymd] => 2025-02-28 00:34:06 [RateCDR] => 1 ) [2025-02-28 00:34:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:34:06' and `end` < '2025-02-28 00:34:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:34:18] Production.INFO: count ==245 [2025-02-28 00:34:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:34:06 - End Time 2025-02-28 00:34:06 [2025-02-28 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572807', 'tblTempUsageDetail_20' ) start [2025-02-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572807', 'tblTempUsageDetail_20' ) end [2025-02-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572807', 'tblTempVendorCDR_20' ) start [2025-02-28 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572807', 'tblTempVendorCDR_20' ) end [2025-02-28 00:34:18] Production.INFO: ProcessCDR(1,14572807,1,1,2) [2025-02-28 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572807', 'tblTempUsageDetail_20' ) start [2025-02-28 00:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572807', 'tblTempUsageDetail_20' ) end [2025-02-28 00:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:34:23] Production.INFO: ==21882== Releasing lock... [2025-02-28 00:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:34:23] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:35:05 [end_date_ymd] => 2025-02-28 00:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:35:05' and `end` < '2025-02-28 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-02-28 00:35:17] Production.INFO: count ==246 [2025-02-28 00:35:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:35:05 - End Time 2025-02-28 00:35:05 [2025-02-28 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572812', 'tblTempUsageDetail_20' ) start [2025-02-28 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572812', 'tblTempUsageDetail_20' ) end [2025-02-28 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572812', 'tblTempVendorCDR_20' ) start [2025-02-28 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572812', 'tblTempVendorCDR_20' ) end [2025-02-28 00:35:17] Production.INFO: ProcessCDR(1,14572812,1,1,2) [2025-02-28 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572812', 'tblTempUsageDetail_20' ) start [2025-02-28 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572812', 'tblTempUsageDetail_20' ) end [2025-02-28 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:35:22] Production.INFO: ==21957== Releasing lock... [2025-02-28 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:35:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:36:06 [end_date_ymd] => 2025-02-28 00:36:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:36:06' and `end` < '2025-02-28 00: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-02-28 00:36:17] Production.INFO: count ==249 [2025-02-28 00:36:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:36:06 - End Time 2025-02-28 00:36:06 [2025-02-28 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572817', 'tblTempUsageDetail_20' ) start [2025-02-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572817', 'tblTempUsageDetail_20' ) end [2025-02-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572817', 'tblTempVendorCDR_20' ) start [2025-02-28 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572817', 'tblTempVendorCDR_20' ) end [2025-02-28 00:36:18] Production.INFO: ProcessCDR(1,14572817,1,1,2) [2025-02-28 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572817', 'tblTempUsageDetail_20' ) start [2025-02-28 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572817', 'tblTempUsageDetail_20' ) end [2025-02-28 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:36:21] Production.INFO: ==22035== Releasing lock... [2025-02-28 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:36:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:37:05 [end_date_ymd] => 2025-02-28 00:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:37:05' and `end` < '2025-02-28 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-02-28 00:37:17] Production.INFO: count ==249 [2025-02-28 00:37:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:37:05 - End Time 2025-02-28 00:37:05 [2025-02-28 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572822', 'tblTempUsageDetail_20' ) start [2025-02-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572822', 'tblTempUsageDetail_20' ) end [2025-02-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572822', 'tblTempVendorCDR_20' ) start [2025-02-28 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572822', 'tblTempVendorCDR_20' ) end [2025-02-28 00:37:17] Production.INFO: ProcessCDR(1,14572822,1,1,2) [2025-02-28 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572822', 'tblTempUsageDetail_20' ) start [2025-02-28 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572822', 'tblTempUsageDetail_20' ) end [2025-02-28 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:37:20] Production.INFO: ==22115== Releasing lock... [2025-02-28 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:37:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 00:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:38:06 [end_date_ymd] => 2025-02-28 00:38:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:38:06' and `end` < '2025-02-28 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-02-28 00:38:18] Production.INFO: count ==245 [2025-02-28 00:38:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:38:06 - End Time 2025-02-28 00:38:06 [2025-02-28 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572827', 'tblTempUsageDetail_20' ) start [2025-02-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572827', 'tblTempUsageDetail_20' ) end [2025-02-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572827', 'tblTempVendorCDR_20' ) start [2025-02-28 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572827', 'tblTempVendorCDR_20' ) end [2025-02-28 00:38:18] Production.INFO: ProcessCDR(1,14572827,1,1,2) [2025-02-28 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572827', 'tblTempUsageDetail_20' ) start [2025-02-28 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572827', 'tblTempUsageDetail_20' ) end [2025-02-28 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:38:21] Production.INFO: ==22197== Releasing lock... [2025-02-28 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:39:06 [end_date_ymd] => 2025-02-28 00:39:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:39:06' and `end` < '2025-02-28 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-02-28 00:39:17] Production.INFO: count ==245 [2025-02-28 00:39:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:39:06 - End Time 2025-02-28 00:39:06 [2025-02-28 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572832', 'tblTempUsageDetail_20' ) start [2025-02-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572832', 'tblTempUsageDetail_20' ) end [2025-02-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572832', 'tblTempVendorCDR_20' ) start [2025-02-28 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572832', 'tblTempVendorCDR_20' ) end [2025-02-28 00:39:18] Production.INFO: ProcessCDR(1,14572832,1,1,2) [2025-02-28 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572832', 'tblTempUsageDetail_20' ) start [2025-02-28 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572832', 'tblTempUsageDetail_20' ) end [2025-02-28 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:39:21] Production.INFO: ==22279== Releasing lock... [2025-02-28 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:39:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:40:06 [end_date_ymd] => 2025-02-28 00:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:40:06' and `end` < '2025-02-28 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-02-28 00:40:18] Production.INFO: count ==258 [2025-02-28 00:40:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:40:06 - End Time 2025-02-28 00:40:06 [2025-02-28 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572838', 'tblTempUsageDetail_20' ) start [2025-02-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572838', 'tblTempUsageDetail_20' ) end [2025-02-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572838', 'tblTempVendorCDR_20' ) start [2025-02-28 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572838', 'tblTempVendorCDR_20' ) end [2025-02-28 00:40:18] Production.INFO: ProcessCDR(1,14572838,1,1,2) [2025-02-28 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572838', 'tblTempUsageDetail_20' ) start [2025-02-28 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572838', 'tblTempUsageDetail_20' ) end [2025-02-28 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:40:23] Production.INFO: ==22369== Releasing lock... [2025-02-28 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:40:23] Production.INFO: 31 MB #Memory Used# [2025-02-28 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:41:05 [end_date_ymd] => 2025-02-28 00:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:41:05' and `end` < '2025-02-28 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-02-28 00:41:17] Production.INFO: count ==274 [2025-02-28 00:41:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:41:05 - End Time 2025-02-28 00:41:05 [2025-02-28 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572843', 'tblTempUsageDetail_20' ) start [2025-02-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572843', 'tblTempUsageDetail_20' ) end [2025-02-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572843', 'tblTempVendorCDR_20' ) start [2025-02-28 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572843', 'tblTempVendorCDR_20' ) end [2025-02-28 00:41:17] Production.INFO: ProcessCDR(1,14572843,1,1,2) [2025-02-28 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572843', 'tblTempUsageDetail_20' ) start [2025-02-28 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572843', 'tblTempUsageDetail_20' ) end [2025-02-28 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:41:22] Production.INFO: ==22461== Releasing lock... [2025-02-28 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:42:05 [end_date_ymd] => 2025-02-28 00:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:42:05' and `end` < '2025-02-28 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-02-28 00:42:17] Production.INFO: count ==273 [2025-02-28 00:42:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:42:05 - End Time 2025-02-28 00:42:05 [2025-02-28 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572848', 'tblTempUsageDetail_20' ) start [2025-02-28 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572848', 'tblTempUsageDetail_20' ) end [2025-02-28 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572848', 'tblTempVendorCDR_20' ) start [2025-02-28 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572848', 'tblTempVendorCDR_20' ) end [2025-02-28 00:42:17] Production.INFO: ProcessCDR(1,14572848,1,1,2) [2025-02-28 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572848', 'tblTempUsageDetail_20' ) start [2025-02-28 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572848', 'tblTempUsageDetail_20' ) end [2025-02-28 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:42:21] Production.INFO: ==22582== Releasing lock... [2025-02-28 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:43:05 [end_date_ymd] => 2025-02-28 00:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:43:05' and `end` < '2025-02-28 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-02-28 00:43:17] Production.INFO: count ==273 [2025-02-28 00:43:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:43:05 - End Time 2025-02-28 00:43:05 [2025-02-28 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572853', 'tblTempUsageDetail_20' ) start [2025-02-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572853', 'tblTempUsageDetail_20' ) end [2025-02-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572853', 'tblTempVendorCDR_20' ) start [2025-02-28 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572853', 'tblTempVendorCDR_20' ) end [2025-02-28 00:43:17] Production.INFO: ProcessCDR(1,14572853,1,1,2) [2025-02-28 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572853', 'tblTempUsageDetail_20' ) start [2025-02-28 00:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572853', 'tblTempUsageDetail_20' ) end [2025-02-28 00:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:43:20] Production.INFO: ==22667== Releasing lock... [2025-02-28 00:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:44:05 [end_date_ymd] => 2025-02-28 00:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:44:05' and `end` < '2025-02-28 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-02-28 00:44:17] Production.INFO: count ==276 [2025-02-28 00:44:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:44:05 - End Time 2025-02-28 00:44:05 [2025-02-28 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572858', 'tblTempUsageDetail_20' ) start [2025-02-28 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572858', 'tblTempUsageDetail_20' ) end [2025-02-28 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572858', 'tblTempVendorCDR_20' ) start [2025-02-28 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572858', 'tblTempVendorCDR_20' ) end [2025-02-28 00:44:17] Production.INFO: ProcessCDR(1,14572858,1,1,2) [2025-02-28 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572858', 'tblTempUsageDetail_20' ) start [2025-02-28 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572858', 'tblTempUsageDetail_20' ) end [2025-02-28 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:44:21] Production.INFO: ==22750== Releasing lock... [2025-02-28 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:45:05 [end_date_ymd] => 2025-02-28 00:45:05 [RateCDR] => 1 ) [2025-02-28 00:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:45:05' and `end` < '2025-02-28 00:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:45:17] Production.INFO: count ==276 [2025-02-28 00:45:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:45:05 - End Time 2025-02-28 00:45:05 [2025-02-28 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572863', 'tblTempUsageDetail_20' ) start [2025-02-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572863', 'tblTempUsageDetail_20' ) end [2025-02-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572863', 'tblTempVendorCDR_20' ) start [2025-02-28 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572863', 'tblTempVendorCDR_20' ) end [2025-02-28 00:45:17] Production.INFO: ProcessCDR(1,14572863,1,1,2) [2025-02-28 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572863', 'tblTempUsageDetail_20' ) start [2025-02-28 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572863', 'tblTempUsageDetail_20' ) end [2025-02-28 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:45:20] Production.INFO: ==22840== Releasing lock... [2025-02-28 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:45:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:46:06 [end_date_ymd] => 2025-02-28 00:46:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:46:06' and `end` < '2025-02-28 00: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-02-28 00:46:18] Production.INFO: count ==276 [2025-02-28 00:46:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:46:06 - End Time 2025-02-28 00:46:06 [2025-02-28 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572868', 'tblTempUsageDetail_20' ) start [2025-02-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572868', 'tblTempUsageDetail_20' ) end [2025-02-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572868', 'tblTempVendorCDR_20' ) start [2025-02-28 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572868', 'tblTempVendorCDR_20' ) end [2025-02-28 00:46:18] Production.INFO: ProcessCDR(1,14572868,1,1,2) [2025-02-28 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572868', 'tblTempUsageDetail_20' ) start [2025-02-28 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572868', 'tblTempUsageDetail_20' ) end [2025-02-28 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:46:21] Production.INFO: ==22924== Releasing lock... [2025-02-28 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:47:05 [end_date_ymd] => 2025-02-28 00:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:47:05' and `end` < '2025-02-28 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-02-28 00:47:17] Production.INFO: count ==276 [2025-02-28 00:47:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:47:05 - End Time 2025-02-28 00:47:05 [2025-02-28 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572873', 'tblTempUsageDetail_20' ) start [2025-02-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572873', 'tblTempUsageDetail_20' ) end [2025-02-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572873', 'tblTempVendorCDR_20' ) start [2025-02-28 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572873', 'tblTempVendorCDR_20' ) end [2025-02-28 00:47:17] Production.INFO: ProcessCDR(1,14572873,1,1,2) [2025-02-28 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572873', 'tblTempUsageDetail_20' ) start [2025-02-28 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572873', 'tblTempUsageDetail_20' ) end [2025-02-28 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:47:20] Production.INFO: ==23008== Releasing lock... [2025-02-28 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:47:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:48:05 [end_date_ymd] => 2025-02-28 00:48:05 [RateCDR] => 1 ) [2025-02-28 00:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:48:05' and `end` < '2025-02-28 00:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:48:17] Production.INFO: count ==276 [2025-02-28 00:48:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:48:05 - End Time 2025-02-28 00:48:05 [2025-02-28 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572878', 'tblTempUsageDetail_20' ) start [2025-02-28 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572878', 'tblTempUsageDetail_20' ) end [2025-02-28 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572878', 'tblTempVendorCDR_20' ) start [2025-02-28 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572878', 'tblTempVendorCDR_20' ) end [2025-02-28 00:48:17] Production.INFO: ProcessCDR(1,14572878,1,1,2) [2025-02-28 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572878', 'tblTempUsageDetail_20' ) start [2025-02-28 00:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572878', 'tblTempUsageDetail_20' ) end [2025-02-28 00:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:48:20] Production.INFO: ==23086== Releasing lock... [2025-02-28 00:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:48:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:49:05 [end_date_ymd] => 2025-02-28 00:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:49:05' and `end` < '2025-02-28 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-02-28 00:49:16] Production.INFO: count ==276 [2025-02-28 00:49:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:49:05 - End Time 2025-02-28 00:49:05 [2025-02-28 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572883', 'tblTempUsageDetail_20' ) start [2025-02-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572883', 'tblTempUsageDetail_20' ) end [2025-02-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572883', 'tblTempVendorCDR_20' ) start [2025-02-28 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572883', 'tblTempVendorCDR_20' ) end [2025-02-28 00:49:17] Production.INFO: ProcessCDR(1,14572883,1,1,2) [2025-02-28 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572883', 'tblTempUsageDetail_20' ) start [2025-02-28 00:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572883', 'tblTempUsageDetail_20' ) end [2025-02-28 00:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:49:20] Production.INFO: ==23169== Releasing lock... [2025-02-28 00:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:49:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:50:06 [end_date_ymd] => 2025-02-28 00:50:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:50:06' and `end` < '2025-02-28 00: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-02-28 00:50:18] Production.INFO: count ==285 [2025-02-28 00:50:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:50:06 - End Time 2025-02-28 00:50:06 [2025-02-28 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572889', 'tblTempUsageDetail_20' ) start [2025-02-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572889', 'tblTempUsageDetail_20' ) end [2025-02-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572889', 'tblTempVendorCDR_20' ) start [2025-02-28 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572889', 'tblTempVendorCDR_20' ) end [2025-02-28 00:50:18] Production.INFO: ProcessCDR(1,14572889,1,1,2) [2025-02-28 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572889', 'tblTempUsageDetail_20' ) start [2025-02-28 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572889', 'tblTempUsageDetail_20' ) end [2025-02-28 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:50:21] Production.INFO: ==23258== Releasing lock... [2025-02-28 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:51:06 [end_date_ymd] => 2025-02-28 00:51:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:51:06' and `end` < '2025-02-28 00: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-02-28 00:51:18] Production.INFO: count ==306 [2025-02-28 00:51:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:51:06 - End Time 2025-02-28 00:51:06 [2025-02-28 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572894', 'tblTempUsageDetail_20' ) start [2025-02-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572894', 'tblTempUsageDetail_20' ) end [2025-02-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572894', 'tblTempVendorCDR_20' ) start [2025-02-28 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572894', 'tblTempVendorCDR_20' ) end [2025-02-28 00:51:18] Production.INFO: ProcessCDR(1,14572894,1,1,2) [2025-02-28 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572894', 'tblTempUsageDetail_20' ) start [2025-02-28 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572894', 'tblTempUsageDetail_20' ) end [2025-02-28 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:51:21] Production.INFO: ==23346== Releasing lock... [2025-02-28 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:51:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:52:05 [end_date_ymd] => 2025-02-28 00:52:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:52:05' and `end` < '2025-02-28 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-02-28 00:52:17] Production.INFO: count ==306 [2025-02-28 00:52:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:52:05 - End Time 2025-02-28 00:52:05 [2025-02-28 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572899', 'tblTempUsageDetail_20' ) start [2025-02-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572899', 'tblTempUsageDetail_20' ) end [2025-02-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572899', 'tblTempVendorCDR_20' ) start [2025-02-28 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572899', 'tblTempVendorCDR_20' ) end [2025-02-28 00:52:17] Production.INFO: ProcessCDR(1,14572899,1,1,2) [2025-02-28 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572899', 'tblTempUsageDetail_20' ) start [2025-02-28 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572899', 'tblTempUsageDetail_20' ) end [2025-02-28 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:52:21] Production.INFO: ==23444== Releasing lock... [2025-02-28 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:53:05 [end_date_ymd] => 2025-02-28 00:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:53:05' and `end` < '2025-02-28 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-02-28 00:53:17] Production.INFO: count ==306 [2025-02-28 00:53:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:53:05 - End Time 2025-02-28 00:53:05 [2025-02-28 00:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572904', 'tblTempUsageDetail_20' ) start [2025-02-28 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572904', 'tblTempUsageDetail_20' ) end [2025-02-28 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572904', 'tblTempVendorCDR_20' ) start [2025-02-28 00:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572904', 'tblTempVendorCDR_20' ) end [2025-02-28 00:53:17] Production.INFO: ProcessCDR(1,14572904,1,1,2) [2025-02-28 00:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572904', 'tblTempUsageDetail_20' ) start [2025-02-28 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572904', 'tblTempUsageDetail_20' ) end [2025-02-28 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:53:21] Production.INFO: ==23528== Releasing lock... [2025-02-28 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:54:05 [end_date_ymd] => 2025-02-28 00:54:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:54:05' and `end` < '2025-02-28 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-02-28 00:54:17] Production.INFO: count ==306 [2025-02-28 00:54:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:54:05 - End Time 2025-02-28 00:54:05 [2025-02-28 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572909', 'tblTempUsageDetail_20' ) start [2025-02-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572909', 'tblTempUsageDetail_20' ) end [2025-02-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572909', 'tblTempVendorCDR_20' ) start [2025-02-28 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572909', 'tblTempVendorCDR_20' ) end [2025-02-28 00:54:17] Production.INFO: ProcessCDR(1,14572909,1,1,2) [2025-02-28 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572909', 'tblTempUsageDetail_20' ) start [2025-02-28 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572909', 'tblTempUsageDetail_20' ) end [2025-02-28 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:54:20] Production.INFO: ==23610== Releasing lock... [2025-02-28 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:54:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:55:06 [end_date_ymd] => 2025-02-28 00:55:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 21:55:06' and `end` < '2025-02-28 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-02-28 00:55:18] Production.INFO: count ==306 [2025-02-28 00:55:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:55:06 - End Time 2025-02-28 00:55:06 [2025-02-28 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572914', 'tblTempUsageDetail_20' ) start [2025-02-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572914', 'tblTempUsageDetail_20' ) end [2025-02-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572914', 'tblTempVendorCDR_20' ) start [2025-02-28 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572914', 'tblTempVendorCDR_20' ) end [2025-02-28 00:55:18] Production.INFO: ProcessCDR(1,14572914,1,1,2) [2025-02-28 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572914', 'tblTempUsageDetail_20' ) start [2025-02-28 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572914', 'tblTempUsageDetail_20' ) end [2025-02-28 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:55:21] Production.INFO: ==23696== Releasing lock... [2025-02-28 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:55:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:56:05 [end_date_ymd] => 2025-02-28 00:56:05 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:56:05' and `end` < '2025-02-28 00: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-02-28 00:56:17] Production.INFO: count ==306 [2025-02-28 00:56:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:56:05 - End Time 2025-02-28 00:56:05 [2025-02-28 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572919', 'tblTempUsageDetail_20' ) start [2025-02-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572919', 'tblTempUsageDetail_20' ) end [2025-02-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572919', 'tblTempVendorCDR_20' ) start [2025-02-28 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572919', 'tblTempVendorCDR_20' ) end [2025-02-28 00:56:17] Production.INFO: ProcessCDR(1,14572919,1,1,2) [2025-02-28 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572919', 'tblTempUsageDetail_20' ) start [2025-02-28 00:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572919', 'tblTempUsageDetail_20' ) end [2025-02-28 00:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:56:21] Production.INFO: ==23784== Releasing lock... [2025-02-28 00:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:57:06 [end_date_ymd] => 2025-02-28 00:57:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:57:06' and `end` < '2025-02-28 00: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-02-28 00:57:18] Production.INFO: count ==306 [2025-02-28 00:57:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:57:06 - End Time 2025-02-28 00:57:06 [2025-02-28 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572924', 'tblTempUsageDetail_20' ) start [2025-02-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572924', 'tblTempUsageDetail_20' ) end [2025-02-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572924', 'tblTempVendorCDR_20' ) start [2025-02-28 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572924', 'tblTempVendorCDR_20' ) end [2025-02-28 00:57:18] Production.INFO: ProcessCDR(1,14572924,1,1,2) [2025-02-28 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572924', 'tblTempUsageDetail_20' ) start [2025-02-28 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572924', 'tblTempUsageDetail_20' ) end [2025-02-28 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:57:21] Production.INFO: ==23909== Releasing lock... [2025-02-28 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:58:05 [end_date_ymd] => 2025-02-28 00:58:05 [RateCDR] => 1 ) [2025-02-28 00:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 21:58:05' and `end` < '2025-02-28 00:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 00:58:17] Production.INFO: count ==306 [2025-02-28 00:58:17] Production.ERROR: pbx CDR StartTime 2025-02-27 21:58:05 - End Time 2025-02-28 00:58:05 [2025-02-28 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572929', 'tblTempUsageDetail_20' ) start [2025-02-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572929', 'tblTempUsageDetail_20' ) end [2025-02-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572929', 'tblTempVendorCDR_20' ) start [2025-02-28 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572929', 'tblTempVendorCDR_20' ) end [2025-02-28 00:58:17] Production.INFO: ProcessCDR(1,14572929,1,1,2) [2025-02-28 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572929', 'tblTempUsageDetail_20' ) start [2025-02-28 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572929', 'tblTempUsageDetail_20' ) end [2025-02-28 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:58:22] Production.INFO: ==23991== Releasing lock... [2025-02-28 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:58:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 00:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 21:59:06 [end_date_ymd] => 2025-02-28 00:59:06 [RateCDR] => 1 ) [2025-02-28 00: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-02-27 21:59:06' and `end` < '2025-02-28 00: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-02-28 00:59:18] Production.INFO: count ==302 [2025-02-28 00:59:18] Production.ERROR: pbx CDR StartTime 2025-02-27 21:59:06 - End Time 2025-02-28 00:59:06 [2025-02-28 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572934', 'tblTempUsageDetail_20' ) start [2025-02-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572934', 'tblTempUsageDetail_20' ) end [2025-02-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572934', 'tblTempVendorCDR_20' ) start [2025-02-28 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572934', 'tblTempVendorCDR_20' ) end [2025-02-28 00:59:18] Production.INFO: ProcessCDR(1,14572934,1,1,2) [2025-02-28 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572934', 'tblTempUsageDetail_20' ) start [2025-02-28 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572934', 'tblTempUsageDetail_20' ) end [2025-02-28 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 00:59:21] Production.INFO: ==24080== Releasing lock... [2025-02-28 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 00:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:00:06 [end_date_ymd] => 2025-02-28 01:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:00:06' and `end` < '2025-02-28 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-02-28 01:00:18] Production.INFO: count ==312 [2025-02-28 01:00:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:00:06 - End Time 2025-02-28 01:00:06 [2025-02-28 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572940', 'tblTempUsageDetail_20' ) start [2025-02-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572940', 'tblTempUsageDetail_20' ) end [2025-02-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572940', 'tblTempVendorCDR_20' ) start [2025-02-28 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572940', 'tblTempVendorCDR_20' ) end [2025-02-28 01:00:18] Production.INFO: ProcessCDR(1,14572940,1,1,2) [2025-02-28 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572940', 'tblTempUsageDetail_20' ) start [2025-02-28 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572940', 'tblTempUsageDetail_20' ) end [2025-02-28 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:00:21] Production.INFO: ==24170== Releasing lock... [2025-02-28 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:00:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:01:06 [end_date_ymd] => 2025-02-28 01:01:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:01:06' and `end` < '2025-02-28 01: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-02-28 01:01:18] Production.INFO: count ==321 [2025-02-28 01:01:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:01:06 - End Time 2025-02-28 01:01:06 [2025-02-28 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572945', 'tblTempUsageDetail_20' ) start [2025-02-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572945', 'tblTempUsageDetail_20' ) end [2025-02-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572945', 'tblTempVendorCDR_20' ) start [2025-02-28 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572945', 'tblTempVendorCDR_20' ) end [2025-02-28 01:01:18] Production.INFO: ProcessCDR(1,14572945,1,1,2) [2025-02-28 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572945', 'tblTempUsageDetail_20' ) start [2025-02-28 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572945', 'tblTempUsageDetail_20' ) end [2025-02-28 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:01:21] Production.INFO: ==24278== Releasing lock... [2025-02-28 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 01:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:02:06 [end_date_ymd] => 2025-02-28 01:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:02:06' and `end` < '2025-02-28 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-02-28 01:02:17] Production.INFO: count ==321 [2025-02-28 01:02:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:02:06 - End Time 2025-02-28 01:02:06 [2025-02-28 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572950', 'tblTempUsageDetail_20' ) start [2025-02-28 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572950', 'tblTempUsageDetail_20' ) end [2025-02-28 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572950', 'tblTempVendorCDR_20' ) start [2025-02-28 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572950', 'tblTempVendorCDR_20' ) end [2025-02-28 01:02:17] Production.INFO: ProcessCDR(1,14572950,1,1,2) [2025-02-28 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572950', 'tblTempUsageDetail_20' ) start [2025-02-28 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572950', 'tblTempUsageDetail_20' ) end [2025-02-28 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:02:21] Production.INFO: ==24364== Releasing lock... [2025-02-28 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:02:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 01:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:03:06 [end_date_ymd] => 2025-02-28 01:03:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:03:06' and `end` < '2025-02-28 01: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-02-28 01:03:18] Production.INFO: count ==322 [2025-02-28 01:03:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:03:06 - End Time 2025-02-28 01:03:06 [2025-02-28 01:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572955', 'tblTempUsageDetail_20' ) start [2025-02-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572955', 'tblTempUsageDetail_20' ) end [2025-02-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572955', 'tblTempVendorCDR_20' ) start [2025-02-28 01:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572955', 'tblTempVendorCDR_20' ) end [2025-02-28 01:03:18] Production.INFO: ProcessCDR(1,14572955,1,1,2) [2025-02-28 01:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572955', 'tblTempUsageDetail_20' ) start [2025-02-28 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572955', 'tblTempUsageDetail_20' ) end [2025-02-28 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:03:21] Production.INFO: ==24454== Releasing lock... [2025-02-28 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 01:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:04:06 [end_date_ymd] => 2025-02-28 01:04:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:04:06' and `end` < '2025-02-28 01: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-02-28 01:04:18] Production.INFO: count ==322 [2025-02-28 01:04:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:04:06 - End Time 2025-02-28 01:04:06 [2025-02-28 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572960', 'tblTempUsageDetail_20' ) start [2025-02-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572960', 'tblTempUsageDetail_20' ) end [2025-02-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572960', 'tblTempVendorCDR_20' ) start [2025-02-28 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572960', 'tblTempVendorCDR_20' ) end [2025-02-28 01:04:18] Production.INFO: ProcessCDR(1,14572960,1,1,2) [2025-02-28 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572960', 'tblTempUsageDetail_20' ) start [2025-02-28 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572960', 'tblTempUsageDetail_20' ) end [2025-02-28 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:04:21] Production.INFO: ==24544== Releasing lock... [2025-02-28 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:05:06 [end_date_ymd] => 2025-02-28 01:05:06 [RateCDR] => 1 ) [2025-02-28 01:05:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:05:06' and `end` < '2025-02-28 01:05:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:05:18] Production.INFO: count ==322 [2025-02-28 01:05:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:05:06 - End Time 2025-02-28 01:05:06 [2025-02-28 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572965', 'tblTempUsageDetail_20' ) start [2025-02-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572965', 'tblTempUsageDetail_20' ) end [2025-02-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572965', 'tblTempVendorCDR_20' ) start [2025-02-28 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572965', 'tblTempVendorCDR_20' ) end [2025-02-28 01:05:18] Production.INFO: ProcessCDR(1,14572965,1,1,2) [2025-02-28 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572965', 'tblTempUsageDetail_20' ) start [2025-02-28 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572965', 'tblTempUsageDetail_20' ) end [2025-02-28 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:05:21] Production.INFO: ==24636== Releasing lock... [2025-02-28 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:05:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:06:05 [end_date_ymd] => 2025-02-28 01:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:06:05' and `end` < '2025-02-28 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-02-28 01:06:17] Production.INFO: count ==326 [2025-02-28 01:06:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:06:05 - End Time 2025-02-28 01:06:05 [2025-02-28 01:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572970', 'tblTempUsageDetail_20' ) start [2025-02-28 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572970', 'tblTempUsageDetail_20' ) end [2025-02-28 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572970', 'tblTempVendorCDR_20' ) start [2025-02-28 01:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572970', 'tblTempVendorCDR_20' ) end [2025-02-28 01:06:17] Production.INFO: ProcessCDR(1,14572970,1,1,2) [2025-02-28 01:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572970', 'tblTempUsageDetail_20' ) start [2025-02-28 01:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572970', 'tblTempUsageDetail_20' ) end [2025-02-28 01:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:06:20] Production.INFO: ==24722== Releasing lock... [2025-02-28 01:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:06:20] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:07:06 [end_date_ymd] => 2025-02-28 01:07:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:07:06' and `end` < '2025-02-28 01: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-02-28 01:07:18] Production.INFO: count ==330 [2025-02-28 01:07:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:07:06 - End Time 2025-02-28 01:07:06 [2025-02-28 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572975', 'tblTempUsageDetail_20' ) start [2025-02-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572975', 'tblTempUsageDetail_20' ) end [2025-02-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572975', 'tblTempVendorCDR_20' ) start [2025-02-28 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572975', 'tblTempVendorCDR_20' ) end [2025-02-28 01:07:18] Production.INFO: ProcessCDR(1,14572975,1,1,2) [2025-02-28 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572975', 'tblTempUsageDetail_20' ) start [2025-02-28 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572975', 'tblTempUsageDetail_20' ) end [2025-02-28 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:07:21] Production.INFO: ==24807== Releasing lock... [2025-02-28 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:08:06 [end_date_ymd] => 2025-02-28 01:08:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:08:06' and `end` < '2025-02-28 01: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-02-28 01:08:17] Production.INFO: count ==330 [2025-02-28 01:08:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:08:06 - End Time 2025-02-28 01:08:06 [2025-02-28 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572980', 'tblTempUsageDetail_20' ) start [2025-02-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572980', 'tblTempUsageDetail_20' ) end [2025-02-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572980', 'tblTempVendorCDR_20' ) start [2025-02-28 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572980', 'tblTempVendorCDR_20' ) end [2025-02-28 01:08:18] Production.INFO: ProcessCDR(1,14572980,1,1,2) [2025-02-28 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572980', 'tblTempUsageDetail_20' ) start [2025-02-28 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572980', 'tblTempUsageDetail_20' ) end [2025-02-28 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:08:21] Production.INFO: ==24892== Releasing lock... [2025-02-28 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:09:05 [end_date_ymd] => 2025-02-28 01:09:05 [RateCDR] => 1 ) [2025-02-28 01:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:09:05' and `end` < '2025-02-28 01:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:09:17] Production.INFO: count ==331 [2025-02-28 01:09:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:09:05 - End Time 2025-02-28 01:09:05 [2025-02-28 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572985', 'tblTempUsageDetail_20' ) start [2025-02-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572985', 'tblTempUsageDetail_20' ) end [2025-02-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572985', 'tblTempVendorCDR_20' ) start [2025-02-28 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572985', 'tblTempVendorCDR_20' ) end [2025-02-28 01:09:17] Production.INFO: ProcessCDR(1,14572985,1,1,2) [2025-02-28 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572985', 'tblTempUsageDetail_20' ) start [2025-02-28 01:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572985', 'tblTempUsageDetail_20' ) end [2025-02-28 01:09:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:09:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:09:20] Production.INFO: ==24977== Releasing lock... [2025-02-28 01:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:09:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:10:06 [end_date_ymd] => 2025-02-28 01:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:10:06' and `end` < '2025-02-28 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-02-28 01:10:18] Production.INFO: count ==344 [2025-02-28 01:10:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:10:06 - End Time 2025-02-28 01:10:06 [2025-02-28 01:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572991', 'tblTempUsageDetail_20' ) start [2025-02-28 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572991', 'tblTempUsageDetail_20' ) end [2025-02-28 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572991', 'tblTempVendorCDR_20' ) start [2025-02-28 01:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572991', 'tblTempVendorCDR_20' ) end [2025-02-28 01:10:18] Production.INFO: ProcessCDR(1,14572991,1,1,2) [2025-02-28 01:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572991', 'tblTempUsageDetail_20' ) start [2025-02-28 01:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572991', 'tblTempUsageDetail_20' ) end [2025-02-28 01:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:10:21] Production.INFO: ==25059== Releasing lock... [2025-02-28 01:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:10:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:11:05 [end_date_ymd] => 2025-02-28 01:11:05 [RateCDR] => 1 ) [2025-02-28 01:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:11:05' and `end` < '2025-02-28 01:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:11:17] Production.INFO: count ==341 [2025-02-28 01:11:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:11:05 - End Time 2025-02-28 01:11:05 [2025-02-28 01:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572996', 'tblTempUsageDetail_20' ) start [2025-02-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14572996', 'tblTempUsageDetail_20' ) end [2025-02-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572996', 'tblTempVendorCDR_20' ) start [2025-02-28 01:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14572996', 'tblTempVendorCDR_20' ) end [2025-02-28 01:11:17] Production.INFO: ProcessCDR(1,14572996,1,1,2) [2025-02-28 01:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14572996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14572996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14572996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14572996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572996', 'tblTempUsageDetail_20' ) start [2025-02-28 01:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14572996', 'tblTempUsageDetail_20' ) end [2025-02-28 01:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:11:20] Production.INFO: ==25149== Releasing lock... [2025-02-28 01:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:11:20] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:12:05 [end_date_ymd] => 2025-02-28 01:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:12:05' and `end` < '2025-02-28 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-02-28 01:12:17] Production.INFO: count ==340 [2025-02-28 01:12:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:12:05 - End Time 2025-02-28 01:12:05 [2025-02-28 01:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573001', 'tblTempUsageDetail_20' ) start [2025-02-28 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573001', 'tblTempUsageDetail_20' ) end [2025-02-28 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573001', 'tblTempVendorCDR_20' ) start [2025-02-28 01:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573001', 'tblTempVendorCDR_20' ) end [2025-02-28 01:12:17] Production.INFO: ProcessCDR(1,14573001,1,1,2) [2025-02-28 01:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573001', 'tblTempUsageDetail_20' ) start [2025-02-28 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573001', 'tblTempUsageDetail_20' ) end [2025-02-28 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:12:21] Production.INFO: ==25243== Releasing lock... [2025-02-28 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:12:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:13:06 [end_date_ymd] => 2025-02-28 01:13:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:13:06' and `end` < '2025-02-28 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-02-28 01:13:18] Production.INFO: count ==344 [2025-02-28 01:13:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:13:06 - End Time 2025-02-28 01:13:06 [2025-02-28 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573006', 'tblTempUsageDetail_20' ) start [2025-02-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573006', 'tblTempUsageDetail_20' ) end [2025-02-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573006', 'tblTempVendorCDR_20' ) start [2025-02-28 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573006', 'tblTempVendorCDR_20' ) end [2025-02-28 01:13:18] Production.INFO: ProcessCDR(1,14573006,1,1,2) [2025-02-28 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573006', 'tblTempUsageDetail_20' ) start [2025-02-28 01:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573006', 'tblTempUsageDetail_20' ) end [2025-02-28 01:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:13:23] Production.INFO: ==25364== Releasing lock... [2025-02-28 01:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:13:23] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:14:06 [end_date_ymd] => 2025-02-28 01:14:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:14:06' and `end` < '2025-02-28 01: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-02-28 01:14:18] Production.INFO: count ==338 [2025-02-28 01:14:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:14:06 - End Time 2025-02-28 01:14:06 [2025-02-28 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573011', 'tblTempUsageDetail_20' ) start [2025-02-28 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573011', 'tblTempUsageDetail_20' ) end [2025-02-28 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573011', 'tblTempVendorCDR_20' ) start [2025-02-28 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573011', 'tblTempVendorCDR_20' ) end [2025-02-28 01:14:18] Production.INFO: ProcessCDR(1,14573011,1,1,2) [2025-02-28 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573011', 'tblTempUsageDetail_20' ) start [2025-02-28 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573011', 'tblTempUsageDetail_20' ) end [2025-02-28 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:14:21] Production.INFO: ==25451== Releasing lock... [2025-02-28 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:15:06 [end_date_ymd] => 2025-02-28 01:15:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:15:06' and `end` < '2025-02-28 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-02-28 01:15:18] Production.INFO: count ==342 [2025-02-28 01:15:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:15:06 - End Time 2025-02-28 01:15:06 [2025-02-28 01:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573016', 'tblTempUsageDetail_20' ) start [2025-02-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573016', 'tblTempUsageDetail_20' ) end [2025-02-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573016', 'tblTempVendorCDR_20' ) start [2025-02-28 01:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573016', 'tblTempVendorCDR_20' ) end [2025-02-28 01:15:18] Production.INFO: ProcessCDR(1,14573016,1,1,2) [2025-02-28 01:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573016', 'tblTempUsageDetail_20' ) start [2025-02-28 01:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573016', 'tblTempUsageDetail_20' ) end [2025-02-28 01:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:15:21] Production.INFO: ==25536== Releasing lock... [2025-02-28 01:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:15:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:16:05 [end_date_ymd] => 2025-02-28 01:16:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:16:05' and `end` < '2025-02-28 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-02-28 01:16:17] Production.INFO: count ==341 [2025-02-28 01:16:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:16:05 - End Time 2025-02-28 01:16:05 [2025-02-28 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573021', 'tblTempUsageDetail_20' ) start [2025-02-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573021', 'tblTempUsageDetail_20' ) end [2025-02-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573021', 'tblTempVendorCDR_20' ) start [2025-02-28 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573021', 'tblTempVendorCDR_20' ) end [2025-02-28 01:16:17] Production.INFO: ProcessCDR(1,14573021,1,1,2) [2025-02-28 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573021', 'tblTempUsageDetail_20' ) start [2025-02-28 01:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573021', 'tblTempUsageDetail_20' ) end [2025-02-28 01:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:16:21] Production.INFO: ==25620== Releasing lock... [2025-02-28 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:17:06 [end_date_ymd] => 2025-02-28 01:17:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:17:06' and `end` < '2025-02-28 01: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-02-28 01:17:18] Production.INFO: count ==338 [2025-02-28 01:17:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:17:06 - End Time 2025-02-28 01:17:06 [2025-02-28 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573026', 'tblTempUsageDetail_20' ) start [2025-02-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573026', 'tblTempUsageDetail_20' ) end [2025-02-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573026', 'tblTempVendorCDR_20' ) start [2025-02-28 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573026', 'tblTempVendorCDR_20' ) end [2025-02-28 01:17:18] Production.INFO: ProcessCDR(1,14573026,1,1,2) [2025-02-28 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573026,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573026,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573026', 'tblTempUsageDetail_20' ) start [2025-02-28 01:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573026', 'tblTempUsageDetail_20' ) end [2025-02-28 01:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:17:23] Production.INFO: ==25711== Releasing lock... [2025-02-28 01:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:17:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:18:05 [end_date_ymd] => 2025-02-28 01:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:18:05' and `end` < '2025-02-28 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-02-28 01:18:17] Production.INFO: count ==342 [2025-02-28 01:18:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:18:05 - End Time 2025-02-28 01:18:05 [2025-02-28 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573031', 'tblTempUsageDetail_20' ) start [2025-02-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573031', 'tblTempUsageDetail_20' ) end [2025-02-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573031', 'tblTempVendorCDR_20' ) start [2025-02-28 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573031', 'tblTempVendorCDR_20' ) end [2025-02-28 01:18:17] Production.INFO: ProcessCDR(1,14573031,1,1,2) [2025-02-28 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:18:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573031', 'tblTempUsageDetail_20' ) start [2025-02-28 01:18:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573031', 'tblTempUsageDetail_20' ) end [2025-02-28 01:18:29] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:18:29] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:18:29] Production.INFO: ==25799== Releasing lock... [2025-02-28 01:18:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:18:29] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:19:06 [end_date_ymd] => 2025-02-28 01:19:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:19:06' and `end` < '2025-02-28 01: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-02-28 01:19:18] Production.INFO: count ==339 [2025-02-28 01:19:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:19:06 - End Time 2025-02-28 01:19:06 [2025-02-28 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573036', 'tblTempUsageDetail_20' ) start [2025-02-28 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573036', 'tblTempUsageDetail_20' ) end [2025-02-28 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573036', 'tblTempVendorCDR_20' ) start [2025-02-28 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573036', 'tblTempVendorCDR_20' ) end [2025-02-28 01:19:18] Production.INFO: ProcessCDR(1,14573036,1,1,2) [2025-02-28 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573036', 'tblTempUsageDetail_20' ) start [2025-02-28 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573036', 'tblTempUsageDetail_20' ) end [2025-02-28 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:19:22] Production.INFO: ==25892== Releasing lock... [2025-02-28 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:19:22] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:20:07 [end_date_ymd] => 2025-02-28 01:20:07 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:20:07' and `end` < '2025-02-28 01: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-02-28 01:20:18] Production.INFO: count ==352 [2025-02-28 01:20:19] Production.ERROR: pbx CDR StartTime 2025-02-27 22:20:07 - End Time 2025-02-28 01:20:07 [2025-02-28 01:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573042', 'tblTempUsageDetail_20' ) start [2025-02-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573042', 'tblTempUsageDetail_20' ) end [2025-02-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573042', 'tblTempVendorCDR_20' ) start [2025-02-28 01:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573042', 'tblTempVendorCDR_20' ) end [2025-02-28 01:20:19] Production.INFO: ProcessCDR(1,14573042,1,1,2) [2025-02-28 01:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573042', 'tblTempUsageDetail_20' ) start [2025-02-28 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573042', 'tblTempUsageDetail_20' ) end [2025-02-28 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:20:22] Production.INFO: ==25976== Releasing lock... [2025-02-28 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:20:22] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:21:06 [end_date_ymd] => 2025-02-28 01:21:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:21:06' and `end` < '2025-02-28 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-02-28 01:21:18] Production.INFO: count ==364 [2025-02-28 01:21:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:21:06 - End Time 2025-02-28 01:21:06 [2025-02-28 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573047', 'tblTempUsageDetail_20' ) start [2025-02-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573047', 'tblTempUsageDetail_20' ) end [2025-02-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573047', 'tblTempVendorCDR_20' ) start [2025-02-28 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573047', 'tblTempVendorCDR_20' ) end [2025-02-28 01:21:18] Production.INFO: ProcessCDR(1,14573047,1,1,2) [2025-02-28 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573047', 'tblTempUsageDetail_20' ) start [2025-02-28 01:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573047', 'tblTempUsageDetail_20' ) end [2025-02-28 01:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:21:23] Production.INFO: ==26063== Releasing lock... [2025-02-28 01:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:21:23] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:22:05 [end_date_ymd] => 2025-02-28 01:22:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:22:05' and `end` < '2025-02-28 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-02-28 01:22:17] Production.INFO: count ==364 [2025-02-28 01:22:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:22:05 - End Time 2025-02-28 01:22:05 [2025-02-28 01:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573052', 'tblTempUsageDetail_20' ) start [2025-02-28 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573052', 'tblTempUsageDetail_20' ) end [2025-02-28 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573052', 'tblTempVendorCDR_20' ) start [2025-02-28 01:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573052', 'tblTempVendorCDR_20' ) end [2025-02-28 01:22:17] Production.INFO: ProcessCDR(1,14573052,1,1,2) [2025-02-28 01:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573052', 'tblTempUsageDetail_20' ) start [2025-02-28 01:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573052', 'tblTempUsageDetail_20' ) end [2025-02-28 01:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:22:21] Production.INFO: ==26143== Releasing lock... [2025-02-28 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:22:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:23:06 [end_date_ymd] => 2025-02-28 01:23:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:23:06' and `end` < '2025-02-28 01: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-02-28 01:23:17] Production.INFO: count ==362 [2025-02-28 01:23:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:23:06 - End Time 2025-02-28 01:23:06 [2025-02-28 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573057', 'tblTempUsageDetail_20' ) start [2025-02-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573057', 'tblTempUsageDetail_20' ) end [2025-02-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573057', 'tblTempVendorCDR_20' ) start [2025-02-28 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573057', 'tblTempVendorCDR_20' ) end [2025-02-28 01:23:18] Production.INFO: ProcessCDR(1,14573057,1,1,2) [2025-02-28 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573057', 'tblTempUsageDetail_20' ) start [2025-02-28 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573057', 'tblTempUsageDetail_20' ) end [2025-02-28 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:23:21] Production.INFO: ==26237== Releasing lock... [2025-02-28 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:23:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:24:05 [end_date_ymd] => 2025-02-28 01:24:05 [RateCDR] => 1 ) [2025-02-28 01:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:24:05' and `end` < '2025-02-28 01:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:24:17] Production.INFO: count ==362 [2025-02-28 01:24:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:24:05 - End Time 2025-02-28 01:24:05 [2025-02-28 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573062', 'tblTempUsageDetail_20' ) start [2025-02-28 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573062', 'tblTempUsageDetail_20' ) end [2025-02-28 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573062', 'tblTempVendorCDR_20' ) start [2025-02-28 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573062', 'tblTempVendorCDR_20' ) end [2025-02-28 01:24:17] Production.INFO: ProcessCDR(1,14573062,1,1,2) [2025-02-28 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573062', 'tblTempUsageDetail_20' ) start [2025-02-28 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573062', 'tblTempUsageDetail_20' ) end [2025-02-28 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:24:21] Production.INFO: ==26324== Releasing lock... [2025-02-28 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:24:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:25:06 [end_date_ymd] => 2025-02-28 01:25:06 [RateCDR] => 1 ) [2025-02-28 01:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:25:06' and `end` < '2025-02-28 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:25:18] Production.INFO: count ==362 [2025-02-28 01:25:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:25:06 - End Time 2025-02-28 01:25:06 [2025-02-28 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573067', 'tblTempUsageDetail_20' ) start [2025-02-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573067', 'tblTempUsageDetail_20' ) end [2025-02-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573067', 'tblTempVendorCDR_20' ) start [2025-02-28 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573067', 'tblTempVendorCDR_20' ) end [2025-02-28 01:25:18] Production.INFO: ProcessCDR(1,14573067,1,1,2) [2025-02-28 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573067', 'tblTempUsageDetail_20' ) start [2025-02-28 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573067', 'tblTempUsageDetail_20' ) end [2025-02-28 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:25:21] Production.INFO: ==26406== Releasing lock... [2025-02-28 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:25:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:26:05 [end_date_ymd] => 2025-02-28 01:26:05 [RateCDR] => 1 ) [2025-02-28 01:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:26:05' and `end` < '2025-02-28 01:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:26:17] Production.INFO: count ==362 [2025-02-28 01:26:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:26:05 - End Time 2025-02-28 01:26:05 [2025-02-28 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573072', 'tblTempUsageDetail_20' ) start [2025-02-28 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573072', 'tblTempUsageDetail_20' ) end [2025-02-28 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573072', 'tblTempVendorCDR_20' ) start [2025-02-28 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573072', 'tblTempVendorCDR_20' ) end [2025-02-28 01:26:17] Production.INFO: ProcessCDR(1,14573072,1,1,2) [2025-02-28 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573072', 'tblTempUsageDetail_20' ) start [2025-02-28 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573072', 'tblTempUsageDetail_20' ) end [2025-02-28 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:26:20] Production.INFO: ==26488== Releasing lock... [2025-02-28 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:26:20] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:27:05 [end_date_ymd] => 2025-02-28 01:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:27:05' and `end` < '2025-02-28 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-02-28 01:27:17] Production.INFO: count ==356 [2025-02-28 01:27:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:27:05 - End Time 2025-02-28 01:27:05 [2025-02-28 01:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573077', 'tblTempUsageDetail_20' ) start [2025-02-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573077', 'tblTempUsageDetail_20' ) end [2025-02-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573077', 'tblTempVendorCDR_20' ) start [2025-02-28 01:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573077', 'tblTempVendorCDR_20' ) end [2025-02-28 01:27:17] Production.INFO: ProcessCDR(1,14573077,1,1,2) [2025-02-28 01:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573077', 'tblTempUsageDetail_20' ) start [2025-02-28 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573077', 'tblTempUsageDetail_20' ) end [2025-02-28 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:27:21] Production.INFO: ==26573== Releasing lock... [2025-02-28 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:28:05 [end_date_ymd] => 2025-02-28 01:28:05 [RateCDR] => 1 ) [2025-02-28 01:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:28:05' and `end` < '2025-02-28 01:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:28:17] Production.INFO: count ==355 [2025-02-28 01:28:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:28:05 - End Time 2025-02-28 01:28:05 [2025-02-28 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573082', 'tblTempUsageDetail_20' ) start [2025-02-28 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573082', 'tblTempUsageDetail_20' ) end [2025-02-28 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573082', 'tblTempVendorCDR_20' ) start [2025-02-28 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573082', 'tblTempVendorCDR_20' ) end [2025-02-28 01:28:17] Production.INFO: ProcessCDR(1,14573082,1,1,2) [2025-02-28 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573082', 'tblTempUsageDetail_20' ) start [2025-02-28 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573082', 'tblTempUsageDetail_20' ) end [2025-02-28 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:28:21] Production.INFO: ==26690== Releasing lock... [2025-02-28 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:28:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:29:05 [end_date_ymd] => 2025-02-28 01:29:05 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:29:05' and `end` < '2025-02-28 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-02-28 01:29:18] Production.INFO: count ==354 [2025-02-28 01:29:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:29:05 - End Time 2025-02-28 01:29:05 [2025-02-28 01:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573087', 'tblTempUsageDetail_20' ) start [2025-02-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573087', 'tblTempUsageDetail_20' ) end [2025-02-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573087', 'tblTempVendorCDR_20' ) start [2025-02-28 01:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573087', 'tblTempVendorCDR_20' ) end [2025-02-28 01:29:18] Production.INFO: ProcessCDR(1,14573087,1,1,2) [2025-02-28 01:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573087', 'tblTempUsageDetail_20' ) start [2025-02-28 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573087', 'tblTempUsageDetail_20' ) end [2025-02-28 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:29:21] Production.INFO: ==26770== Releasing lock... [2025-02-28 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:29:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:30:05 [end_date_ymd] => 2025-02-28 01:30:05 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:30:05' and `end` < '2025-02-28 01: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-02-28 01:30:18] Production.INFO: count ==366 [2025-02-28 01:30:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:30:05 - End Time 2025-02-28 01:30:05 [2025-02-28 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573093', 'tblTempUsageDetail_20' ) start [2025-02-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573093', 'tblTempUsageDetail_20' ) end [2025-02-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573093', 'tblTempVendorCDR_20' ) start [2025-02-28 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573093', 'tblTempVendorCDR_20' ) end [2025-02-28 01:30:18] Production.INFO: ProcessCDR(1,14573093,1,1,2) [2025-02-28 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573093', 'tblTempUsageDetail_20' ) start [2025-02-28 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573093', 'tblTempUsageDetail_20' ) end [2025-02-28 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:30:21] Production.INFO: ==26857== Releasing lock... [2025-02-28 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:30:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:31:05 [end_date_ymd] => 2025-02-28 01:31:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:31:05' and `end` < '2025-02-28 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-02-28 01:31:17] Production.INFO: count ==370 [2025-02-28 01:31:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:31:05 - End Time 2025-02-28 01:31:05 [2025-02-28 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573098', 'tblTempUsageDetail_20' ) start [2025-02-28 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573098', 'tblTempUsageDetail_20' ) end [2025-02-28 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573098', 'tblTempVendorCDR_20' ) start [2025-02-28 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573098', 'tblTempVendorCDR_20' ) end [2025-02-28 01:31:17] Production.INFO: ProcessCDR(1,14573098,1,1,2) [2025-02-28 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573098', 'tblTempUsageDetail_20' ) start [2025-02-28 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573098', 'tblTempUsageDetail_20' ) end [2025-02-28 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:31:21] Production.INFO: ==26948== Releasing lock... [2025-02-28 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:31:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:32:05 [end_date_ymd] => 2025-02-28 01:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:32:05' and `end` < '2025-02-28 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-02-28 01:32:17] Production.INFO: count ==370 [2025-02-28 01:32:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:32:05 - End Time 2025-02-28 01:32:05 [2025-02-28 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573103', 'tblTempUsageDetail_20' ) start [2025-02-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573103', 'tblTempUsageDetail_20' ) end [2025-02-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573103', 'tblTempVendorCDR_20' ) start [2025-02-28 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573103', 'tblTempVendorCDR_20' ) end [2025-02-28 01:32:17] Production.INFO: ProcessCDR(1,14573103,1,1,2) [2025-02-28 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573103', 'tblTempUsageDetail_20' ) start [2025-02-28 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573103', 'tblTempUsageDetail_20' ) end [2025-02-28 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:32:21] Production.INFO: ==27027== Releasing lock... [2025-02-28 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:32:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:33:05 [end_date_ymd] => 2025-02-28 01:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:33:05' and `end` < '2025-02-28 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-02-28 01:33:17] Production.INFO: count ==368 [2025-02-28 01:33:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:33:05 - End Time 2025-02-28 01:33:05 [2025-02-28 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573108', 'tblTempUsageDetail_20' ) start [2025-02-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573108', 'tblTempUsageDetail_20' ) end [2025-02-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573108', 'tblTempVendorCDR_20' ) start [2025-02-28 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573108', 'tblTempVendorCDR_20' ) end [2025-02-28 01:33:17] Production.INFO: ProcessCDR(1,14573108,1,1,2) [2025-02-28 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573108', 'tblTempUsageDetail_20' ) start [2025-02-28 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573108', 'tblTempUsageDetail_20' ) end [2025-02-28 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:33:21] Production.INFO: ==27104== Releasing lock... [2025-02-28 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:33:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:34:06 [end_date_ymd] => 2025-02-28 01:34:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:34:06' and `end` < '2025-02-28 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-02-28 01:34:18] Production.INFO: count ==366 [2025-02-28 01:34:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:34:06 - End Time 2025-02-28 01:34:06 [2025-02-28 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573113', 'tblTempUsageDetail_20' ) start [2025-02-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573113', 'tblTempUsageDetail_20' ) end [2025-02-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573113', 'tblTempVendorCDR_20' ) start [2025-02-28 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573113', 'tblTempVendorCDR_20' ) end [2025-02-28 01:34:18] Production.INFO: ProcessCDR(1,14573113,1,1,2) [2025-02-28 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573113', 'tblTempUsageDetail_20' ) start [2025-02-28 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573113', 'tblTempUsageDetail_20' ) end [2025-02-28 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:34:21] Production.INFO: ==27181== Releasing lock... [2025-02-28 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:34:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:35:06 [end_date_ymd] => 2025-02-28 01:35:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:35:06' and `end` < '2025-02-28 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-02-28 01:35:18] Production.INFO: count ==366 [2025-02-28 01:35:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:35:06 - End Time 2025-02-28 01:35:06 [2025-02-28 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573118', 'tblTempUsageDetail_20' ) start [2025-02-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573118', 'tblTempUsageDetail_20' ) end [2025-02-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573118', 'tblTempVendorCDR_20' ) start [2025-02-28 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573118', 'tblTempVendorCDR_20' ) end [2025-02-28 01:35:18] Production.INFO: ProcessCDR(1,14573118,1,1,2) [2025-02-28 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573118', 'tblTempUsageDetail_20' ) start [2025-02-28 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573118', 'tblTempUsageDetail_20' ) end [2025-02-28 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:35:21] Production.INFO: ==27259== Releasing lock... [2025-02-28 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:35:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:36:05 [end_date_ymd] => 2025-02-28 01:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:36:05' and `end` < '2025-02-28 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-02-28 01:36:17] Production.INFO: count ==358 [2025-02-28 01:36:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:36:05 - End Time 2025-02-28 01:36:05 [2025-02-28 01:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573123', 'tblTempUsageDetail_20' ) start [2025-02-28 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573123', 'tblTempUsageDetail_20' ) end [2025-02-28 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573123', 'tblTempVendorCDR_20' ) start [2025-02-28 01:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573123', 'tblTempVendorCDR_20' ) end [2025-02-28 01:36:17] Production.INFO: ProcessCDR(1,14573123,1,1,2) [2025-02-28 01:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573123', 'tblTempUsageDetail_20' ) start [2025-02-28 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573123', 'tblTempUsageDetail_20' ) end [2025-02-28 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:36:21] Production.INFO: ==27338== Releasing lock... [2025-02-28 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:37:06 [end_date_ymd] => 2025-02-28 01:37:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:37:06' and `end` < '2025-02-28 01: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-02-28 01:37:18] Production.INFO: count ==358 [2025-02-28 01:37:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:37:06 - End Time 2025-02-28 01:37:06 [2025-02-28 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573128', 'tblTempUsageDetail_20' ) start [2025-02-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573128', 'tblTempUsageDetail_20' ) end [2025-02-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573128', 'tblTempVendorCDR_20' ) start [2025-02-28 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573128', 'tblTempVendorCDR_20' ) end [2025-02-28 01:37:18] Production.INFO: ProcessCDR(1,14573128,1,1,2) [2025-02-28 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573128', 'tblTempUsageDetail_20' ) start [2025-02-28 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573128', 'tblTempUsageDetail_20' ) end [2025-02-28 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:37:22] Production.INFO: ==27414== Releasing lock... [2025-02-28 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:37:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:38:05 [end_date_ymd] => 2025-02-28 01:38:05 [RateCDR] => 1 ) [2025-02-28 01:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:38:05' and `end` < '2025-02-28 01:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:38:17] Production.INFO: count ==358 [2025-02-28 01:38:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:38:05 - End Time 2025-02-28 01:38:05 [2025-02-28 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573133', 'tblTempUsageDetail_20' ) start [2025-02-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573133', 'tblTempUsageDetail_20' ) end [2025-02-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573133', 'tblTempVendorCDR_20' ) start [2025-02-28 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573133', 'tblTempVendorCDR_20' ) end [2025-02-28 01:38:17] Production.INFO: ProcessCDR(1,14573133,1,1,2) [2025-02-28 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573133', 'tblTempUsageDetail_20' ) start [2025-02-28 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573133', 'tblTempUsageDetail_20' ) end [2025-02-28 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:38:21] Production.INFO: ==27493== Releasing lock... [2025-02-28 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:39:06 [end_date_ymd] => 2025-02-28 01:39:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:39:06' and `end` < '2025-02-28 01: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-02-28 01:39:17] Production.INFO: count ==357 [2025-02-28 01:39:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:39:06 - End Time 2025-02-28 01:39:06 [2025-02-28 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573138', 'tblTempUsageDetail_20' ) start [2025-02-28 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573138', 'tblTempUsageDetail_20' ) end [2025-02-28 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573138', 'tblTempVendorCDR_20' ) start [2025-02-28 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573138', 'tblTempVendorCDR_20' ) end [2025-02-28 01:39:18] Production.INFO: ProcessCDR(1,14573138,1,1,2) [2025-02-28 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573138', 'tblTempUsageDetail_20' ) start [2025-02-28 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573138', 'tblTempUsageDetail_20' ) end [2025-02-28 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:39:21] Production.INFO: ==27567== Releasing lock... [2025-02-28 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:40:07 [end_date_ymd] => 2025-02-28 01:40:07 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:40:07' and `end` < '2025-02-28 01: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-02-28 01:40:19] Production.INFO: count ==366 [2025-02-28 01:40:19] Production.ERROR: pbx CDR StartTime 2025-02-27 22:40:07 - End Time 2025-02-28 01:40:07 [2025-02-28 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573144', 'tblTempUsageDetail_20' ) start [2025-02-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573144', 'tblTempUsageDetail_20' ) end [2025-02-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573144', 'tblTempVendorCDR_20' ) start [2025-02-28 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573144', 'tblTempVendorCDR_20' ) end [2025-02-28 01:40:19] Production.INFO: ProcessCDR(1,14573144,1,1,2) [2025-02-28 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573144', 'tblTempUsageDetail_20' ) start [2025-02-28 01:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573144', 'tblTempUsageDetail_20' ) end [2025-02-28 01:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:40:23] Production.INFO: ==27646== Releasing lock... [2025-02-28 01:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:40:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:41:06 [end_date_ymd] => 2025-02-28 01:41:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:41:06' and `end` < '2025-02-28 01: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-02-28 01:41:18] Production.INFO: count ==370 [2025-02-28 01:41:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:41:06 - End Time 2025-02-28 01:41:06 [2025-02-28 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573149', 'tblTempUsageDetail_20' ) start [2025-02-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573149', 'tblTempUsageDetail_20' ) end [2025-02-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573149', 'tblTempVendorCDR_20' ) start [2025-02-28 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573149', 'tblTempVendorCDR_20' ) end [2025-02-28 01:41:18] Production.INFO: ProcessCDR(1,14573149,1,1,2) [2025-02-28 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573149', 'tblTempUsageDetail_20' ) start [2025-02-28 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573149', 'tblTempUsageDetail_20' ) end [2025-02-28 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:41:21] Production.INFO: ==27724== Releasing lock... [2025-02-28 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:41:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:42:05 [end_date_ymd] => 2025-02-28 01:42:05 [RateCDR] => 1 ) [2025-02-28 01:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:42:05' and `end` < '2025-02-28 01:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:42:17] Production.INFO: count ==370 [2025-02-28 01:42:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:42:05 - End Time 2025-02-28 01:42:05 [2025-02-28 01:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573154', 'tblTempUsageDetail_20' ) start [2025-02-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573154', 'tblTempUsageDetail_20' ) end [2025-02-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573154', 'tblTempVendorCDR_20' ) start [2025-02-28 01:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573154', 'tblTempVendorCDR_20' ) end [2025-02-28 01:42:17] Production.INFO: ProcessCDR(1,14573154,1,1,2) [2025-02-28 01:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573154', 'tblTempUsageDetail_20' ) start [2025-02-28 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573154', 'tblTempUsageDetail_20' ) end [2025-02-28 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:42:21] Production.INFO: ==27803== Releasing lock... [2025-02-28 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:43:06 [end_date_ymd] => 2025-02-28 01:43:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:43:06' and `end` < '2025-02-28 01: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-02-28 01:43:18] Production.INFO: count ==369 [2025-02-28 01:43:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:43:06 - End Time 2025-02-28 01:43:06 [2025-02-28 01:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573159', 'tblTempUsageDetail_20' ) start [2025-02-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573159', 'tblTempUsageDetail_20' ) end [2025-02-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573159', 'tblTempVendorCDR_20' ) start [2025-02-28 01:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573159', 'tblTempVendorCDR_20' ) end [2025-02-28 01:43:18] Production.INFO: ProcessCDR(1,14573159,1,1,2) [2025-02-28 01:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573159', 'tblTempUsageDetail_20' ) start [2025-02-28 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573159', 'tblTempUsageDetail_20' ) end [2025-02-28 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:43:22] Production.INFO: ==27891== Releasing lock... [2025-02-28 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:44:06 [end_date_ymd] => 2025-02-28 01:44:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:44:06' and `end` < '2025-02-28 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-02-28 01:44:18] Production.INFO: count ==367 [2025-02-28 01:44:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:44:06 - End Time 2025-02-28 01:44:06 [2025-02-28 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573164', 'tblTempUsageDetail_20' ) start [2025-02-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573164', 'tblTempUsageDetail_20' ) end [2025-02-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573164', 'tblTempVendorCDR_20' ) start [2025-02-28 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573164', 'tblTempVendorCDR_20' ) end [2025-02-28 01:44:18] Production.INFO: ProcessCDR(1,14573164,1,1,2) [2025-02-28 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573164', 'tblTempUsageDetail_20' ) start [2025-02-28 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573164', 'tblTempUsageDetail_20' ) end [2025-02-28 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:44:21] Production.INFO: ==28011== Releasing lock... [2025-02-28 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:44:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:45:05 [end_date_ymd] => 2025-02-28 01:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:45:05' and `end` < '2025-02-28 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-02-28 01:45:17] Production.INFO: count ==367 [2025-02-28 01:45:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:45:05 - End Time 2025-02-28 01:45:05 [2025-02-28 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573169', 'tblTempUsageDetail_20' ) start [2025-02-28 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573169', 'tblTempUsageDetail_20' ) end [2025-02-28 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573169', 'tblTempVendorCDR_20' ) start [2025-02-28 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573169', 'tblTempVendorCDR_20' ) end [2025-02-28 01:45:17] Production.INFO: ProcessCDR(1,14573169,1,1,2) [2025-02-28 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573169', 'tblTempUsageDetail_20' ) start [2025-02-28 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573169', 'tblTempUsageDetail_20' ) end [2025-02-28 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:45:21] Production.INFO: ==28091== Releasing lock... [2025-02-28 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:45:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:46:06 [end_date_ymd] => 2025-02-28 01:46:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:46:06' and `end` < '2025-02-28 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-02-28 01:46:17] Production.INFO: count ==361 [2025-02-28 01:46:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:46:06 - End Time 2025-02-28 01:46:06 [2025-02-28 01:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573174', 'tblTempUsageDetail_20' ) start [2025-02-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573174', 'tblTempUsageDetail_20' ) end [2025-02-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573174', 'tblTempVendorCDR_20' ) start [2025-02-28 01:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573174', 'tblTempVendorCDR_20' ) end [2025-02-28 01:46:17] Production.INFO: ProcessCDR(1,14573174,1,1,2) [2025-02-28 01:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573174', 'tblTempUsageDetail_20' ) start [2025-02-28 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573174', 'tblTempUsageDetail_20' ) end [2025-02-28 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:46:21] Production.INFO: ==28167== Releasing lock... [2025-02-28 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:47:06 [end_date_ymd] => 2025-02-28 01:47:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:47:06' and `end` < '2025-02-28 01: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-02-28 01:47:18] Production.INFO: count ==357 [2025-02-28 01:47:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:47:06 - End Time 2025-02-28 01:47:06 [2025-02-28 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573179', 'tblTempUsageDetail_20' ) start [2025-02-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573179', 'tblTempUsageDetail_20' ) end [2025-02-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573179', 'tblTempVendorCDR_20' ) start [2025-02-28 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573179', 'tblTempVendorCDR_20' ) end [2025-02-28 01:47:18] Production.INFO: ProcessCDR(1,14573179,1,1,2) [2025-02-28 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573179', 'tblTempUsageDetail_20' ) start [2025-02-28 01:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573179', 'tblTempUsageDetail_20' ) end [2025-02-28 01:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:47:22] Production.INFO: ==28244== Releasing lock... [2025-02-28 01:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:47:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:48:06 [end_date_ymd] => 2025-02-28 01:48:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:48:06' and `end` < '2025-02-28 01: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-02-28 01:48:17] Production.INFO: count ==355 [2025-02-28 01:48:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:48:06 - End Time 2025-02-28 01:48:06 [2025-02-28 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573184', 'tblTempUsageDetail_20' ) start [2025-02-28 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573184', 'tblTempUsageDetail_20' ) end [2025-02-28 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573184', 'tblTempVendorCDR_20' ) start [2025-02-28 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573184', 'tblTempVendorCDR_20' ) end [2025-02-28 01:48:17] Production.INFO: ProcessCDR(1,14573184,1,1,2) [2025-02-28 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573184', 'tblTempUsageDetail_20' ) start [2025-02-28 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573184', 'tblTempUsageDetail_20' ) end [2025-02-28 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:48:21] Production.INFO: ==28323== Releasing lock... [2025-02-28 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:48:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:49:06 [end_date_ymd] => 2025-02-28 01:49:06 [RateCDR] => 1 ) [2025-02-28 01:49:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:49:06' and `end` < '2025-02-28 01:49:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:49:18] Production.INFO: count ==354 [2025-02-28 01:49:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:49:06 - End Time 2025-02-28 01:49:06 [2025-02-28 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573189', 'tblTempUsageDetail_20' ) start [2025-02-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573189', 'tblTempUsageDetail_20' ) end [2025-02-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573189', 'tblTempVendorCDR_20' ) start [2025-02-28 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573189', 'tblTempVendorCDR_20' ) end [2025-02-28 01:49:18] Production.INFO: ProcessCDR(1,14573189,1,1,2) [2025-02-28 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573189', 'tblTempUsageDetail_20' ) start [2025-02-28 01:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573189', 'tblTempUsageDetail_20' ) end [2025-02-28 01:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:49:22] Production.INFO: ==28403== Releasing lock... [2025-02-28 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:50:06 [end_date_ymd] => 2025-02-28 01:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:50:06' and `end` < '2025-02-28 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-02-28 01:50:18] Production.INFO: count ==361 [2025-02-28 01:50:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:50:06 - End Time 2025-02-28 01:50:06 [2025-02-28 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573194', 'tblTempUsageDetail_20' ) start [2025-02-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573194', 'tblTempUsageDetail_20' ) end [2025-02-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573194', 'tblTempVendorCDR_20' ) start [2025-02-28 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573194', 'tblTempVendorCDR_20' ) end [2025-02-28 01:50:18] Production.INFO: ProcessCDR(1,14573194,1,1,2) [2025-02-28 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573194', 'tblTempUsageDetail_20' ) start [2025-02-28 01:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573194', 'tblTempUsageDetail_20' ) end [2025-02-28 01:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:50:23] Production.INFO: ==28477== Releasing lock... [2025-02-28 01:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:50:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:51:06 [end_date_ymd] => 2025-02-28 01:51:06 [RateCDR] => 1 ) [2025-02-28 01:51:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 22:51:06' and `end` < '2025-02-28 01:51:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 01:51:18] Production.INFO: count ==360 [2025-02-28 01:51:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:51:06 - End Time 2025-02-28 01:51:06 [2025-02-28 01:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573200', 'tblTempUsageDetail_20' ) start [2025-02-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573200', 'tblTempUsageDetail_20' ) end [2025-02-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573200', 'tblTempVendorCDR_20' ) start [2025-02-28 01:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573200', 'tblTempVendorCDR_20' ) end [2025-02-28 01:51:18] Production.INFO: ProcessCDR(1,14573200,1,1,2) [2025-02-28 01:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573200', 'tblTempUsageDetail_20' ) start [2025-02-28 01:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573200', 'tblTempUsageDetail_20' ) end [2025-02-28 01:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:51:22] Production.INFO: ==28554== Releasing lock... [2025-02-28 01:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:51:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:52:06 [end_date_ymd] => 2025-02-28 01:52:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:52:06' and `end` < '2025-02-28 01: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-02-28 01:52:18] Production.INFO: count ==360 [2025-02-28 01:52:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:52:06 - End Time 2025-02-28 01:52:06 [2025-02-28 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573205', 'tblTempUsageDetail_20' ) start [2025-02-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573205', 'tblTempUsageDetail_20' ) end [2025-02-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573205', 'tblTempVendorCDR_20' ) start [2025-02-28 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573205', 'tblTempVendorCDR_20' ) end [2025-02-28 01:52:18] Production.INFO: ProcessCDR(1,14573205,1,1,2) [2025-02-28 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573205', 'tblTempUsageDetail_20' ) start [2025-02-28 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573205', 'tblTempUsageDetail_20' ) end [2025-02-28 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:52:21] Production.INFO: ==28628== Releasing lock... [2025-02-28 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:52:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:53:06 [end_date_ymd] => 2025-02-28 01:53:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:53:06' and `end` < '2025-02-28 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-02-28 01:53:18] Production.INFO: count ==360 [2025-02-28 01:53:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:53:06 - End Time 2025-02-28 01:53:06 [2025-02-28 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573210', 'tblTempUsageDetail_20' ) start [2025-02-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573210', 'tblTempUsageDetail_20' ) end [2025-02-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573210', 'tblTempVendorCDR_20' ) start [2025-02-28 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573210', 'tblTempVendorCDR_20' ) end [2025-02-28 01:53:18] Production.INFO: ProcessCDR(1,14573210,1,1,2) [2025-02-28 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573210', 'tblTempUsageDetail_20' ) start [2025-02-28 01:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573210', 'tblTempUsageDetail_20' ) end [2025-02-28 01:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:53:22] Production.INFO: ==28702== Releasing lock... [2025-02-28 01:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:53:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:54:06 [end_date_ymd] => 2025-02-28 01:54:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:54:06' and `end` < '2025-02-28 01: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-02-28 01:54:18] Production.INFO: count ==360 [2025-02-28 01:54:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:54:06 - End Time 2025-02-28 01:54:06 [2025-02-28 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573215', 'tblTempUsageDetail_20' ) start [2025-02-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573215', 'tblTempUsageDetail_20' ) end [2025-02-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573215', 'tblTempVendorCDR_20' ) start [2025-02-28 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573215', 'tblTempVendorCDR_20' ) end [2025-02-28 01:54:18] Production.INFO: ProcessCDR(1,14573215,1,1,2) [2025-02-28 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573215', 'tblTempUsageDetail_20' ) start [2025-02-28 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573215', 'tblTempUsageDetail_20' ) end [2025-02-28 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:54:21] Production.INFO: ==28775== Releasing lock... [2025-02-28 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:55:05 [end_date_ymd] => 2025-02-28 01:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:55:05' and `end` < '2025-02-28 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-02-28 01:55:17] Production.INFO: count ==365 [2025-02-28 01:55:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:55:05 - End Time 2025-02-28 01:55:05 [2025-02-28 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573220', 'tblTempUsageDetail_20' ) start [2025-02-28 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573220', 'tblTempUsageDetail_20' ) end [2025-02-28 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573220', 'tblTempVendorCDR_20' ) start [2025-02-28 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573220', 'tblTempVendorCDR_20' ) end [2025-02-28 01:55:17] Production.INFO: ProcessCDR(1,14573220,1,1,2) [2025-02-28 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573220', 'tblTempUsageDetail_20' ) start [2025-02-28 01:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573220', 'tblTempUsageDetail_20' ) end [2025-02-28 01:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:55:22] Production.INFO: ==28848== Releasing lock... [2025-02-28 01:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:55:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:56:06 [end_date_ymd] => 2025-02-28 01:56:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:56:06' and `end` < '2025-02-28 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-02-28 01:56:18] Production.INFO: count ==370 [2025-02-28 01:56:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:56:06 - End Time 2025-02-28 01:56:06 [2025-02-28 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573225', 'tblTempUsageDetail_20' ) start [2025-02-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573225', 'tblTempUsageDetail_20' ) end [2025-02-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573225', 'tblTempVendorCDR_20' ) start [2025-02-28 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573225', 'tblTempVendorCDR_20' ) end [2025-02-28 01:56:18] Production.INFO: ProcessCDR(1,14573225,1,1,2) [2025-02-28 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573225', 'tblTempUsageDetail_20' ) start [2025-02-28 01:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573225', 'tblTempUsageDetail_20' ) end [2025-02-28 01:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:56:23] Production.INFO: ==28929== Releasing lock... [2025-02-28 01:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:56:23] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:57:06 [end_date_ymd] => 2025-02-28 01:57:06 [RateCDR] => 1 ) [2025-02-28 01: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-02-27 22:57:06' and `end` < '2025-02-28 01: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-02-28 01:57:17] Production.INFO: count ==369 [2025-02-28 01:57:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:57:06 - End Time 2025-02-28 01:57:06 [2025-02-28 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573230', 'tblTempUsageDetail_20' ) start [2025-02-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573230', 'tblTempUsageDetail_20' ) end [2025-02-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573230', 'tblTempVendorCDR_20' ) start [2025-02-28 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573230', 'tblTempVendorCDR_20' ) end [2025-02-28 01:57:17] Production.INFO: ProcessCDR(1,14573230,1,1,2) [2025-02-28 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573230', 'tblTempUsageDetail_20' ) start [2025-02-28 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573230', 'tblTempUsageDetail_20' ) end [2025-02-28 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:57:21] Production.INFO: ==29013== Releasing lock... [2025-02-28 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:57:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:58:06 [end_date_ymd] => 2025-02-28 01:58:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:58:06' and `end` < '2025-02-28 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-02-28 01:58:18] Production.INFO: count ==370 [2025-02-28 01:58:18] Production.ERROR: pbx CDR StartTime 2025-02-27 22:58:06 - End Time 2025-02-28 01:58:06 [2025-02-28 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573235', 'tblTempUsageDetail_20' ) start [2025-02-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573235', 'tblTempUsageDetail_20' ) end [2025-02-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573235', 'tblTempVendorCDR_20' ) start [2025-02-28 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573235', 'tblTempVendorCDR_20' ) end [2025-02-28 01:58:18] Production.INFO: ProcessCDR(1,14573235,1,1,2) [2025-02-28 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573235', 'tblTempUsageDetail_20' ) start [2025-02-28 01:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573235', 'tblTempUsageDetail_20' ) end [2025-02-28 01:58:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:58:23] Production.INFO: ==29087== Releasing lock... [2025-02-28 01:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:58:23] Production.INFO: 31 MB #Memory Used# [2025-02-28 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 22:59:05 [end_date_ymd] => 2025-02-28 01:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 22:59:05' and `end` < '2025-02-28 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-02-28 01:59:17] Production.INFO: count ==369 [2025-02-28 01:59:17] Production.ERROR: pbx CDR StartTime 2025-02-27 22:59:05 - End Time 2025-02-28 01:59:05 [2025-02-28 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573240', 'tblTempUsageDetail_20' ) start [2025-02-28 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573240', 'tblTempUsageDetail_20' ) end [2025-02-28 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573240', 'tblTempVendorCDR_20' ) start [2025-02-28 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573240', 'tblTempVendorCDR_20' ) end [2025-02-28 01:59:17] Production.INFO: ProcessCDR(1,14573240,1,1,2) [2025-02-28 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 01:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573240', 'tblTempUsageDetail_20' ) start [2025-02-28 01:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573240', 'tblTempUsageDetail_20' ) end [2025-02-28 01:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 01:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 01:59:20] Production.INFO: ==29202== Releasing lock... [2025-02-28 01:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 01:59:20] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:00:07 [end_date_ymd] => 2025-02-28 02:00:07 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:00:07' and `end` < '2025-02-28 02: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-02-28 02:00:19] Production.INFO: count ==384 [2025-02-28 02:00:19] Production.ERROR: pbx CDR StartTime 2025-02-27 23:00:07 - End Time 2025-02-28 02:00:07 [2025-02-28 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573246', 'tblTempUsageDetail_20' ) start [2025-02-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573246', 'tblTempUsageDetail_20' ) end [2025-02-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573246', 'tblTempVendorCDR_20' ) start [2025-02-28 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573246', 'tblTempVendorCDR_20' ) end [2025-02-28 02:00:19] Production.INFO: ProcessCDR(1,14573246,1,1,2) [2025-02-28 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573246', 'tblTempUsageDetail_20' ) start [2025-02-28 02:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573246', 'tblTempUsageDetail_20' ) end [2025-02-28 02:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:00:25] Production.INFO: ==29279== Releasing lock... [2025-02-28 02:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:00:25] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:01:05 [end_date_ymd] => 2025-02-28 02:01:05 [RateCDR] => 1 ) [2025-02-28 02:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:01:05' and `end` < '2025-02-28 02:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:01:17] Production.INFO: count ==393 [2025-02-28 02:01:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:01:05 - End Time 2025-02-28 02:01:05 [2025-02-28 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573251', 'tblTempUsageDetail_20' ) start [2025-02-28 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573251', 'tblTempUsageDetail_20' ) end [2025-02-28 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573251', 'tblTempVendorCDR_20' ) start [2025-02-28 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573251', 'tblTempVendorCDR_20' ) end [2025-02-28 02:01:17] Production.INFO: ProcessCDR(1,14573251,1,1,2) [2025-02-28 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573251', 'tblTempUsageDetail_20' ) start [2025-02-28 02:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573251', 'tblTempUsageDetail_20' ) end [2025-02-28 02:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:01:21] Production.INFO: ==29456== Releasing lock... [2025-02-28 02:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:01:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:02:06 [end_date_ymd] => 2025-02-28 02:02:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:02:06' and `end` < '2025-02-28 02: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-02-28 02:02:18] Production.INFO: count ==393 [2025-02-28 02:02:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:02:06 - End Time 2025-02-28 02:02:06 [2025-02-28 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573256', 'tblTempUsageDetail_20' ) start [2025-02-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573256', 'tblTempUsageDetail_20' ) end [2025-02-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573256', 'tblTempVendorCDR_20' ) start [2025-02-28 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573256', 'tblTempVendorCDR_20' ) end [2025-02-28 02:02:18] Production.INFO: ProcessCDR(1,14573256,1,1,2) [2025-02-28 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573256', 'tblTempUsageDetail_20' ) start [2025-02-28 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573256', 'tblTempUsageDetail_20' ) end [2025-02-28 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:02:22] Production.INFO: ==29536== Releasing lock... [2025-02-28 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:02:22] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:03:05 [end_date_ymd] => 2025-02-28 02:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:03:05' and `end` < '2025-02-28 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-02-28 02:03:17] Production.INFO: count ==389 [2025-02-28 02:03:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:03:05 - End Time 2025-02-28 02:03:05 [2025-02-28 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573261', 'tblTempUsageDetail_20' ) start [2025-02-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573261', 'tblTempUsageDetail_20' ) end [2025-02-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573261', 'tblTempVendorCDR_20' ) start [2025-02-28 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573261', 'tblTempVendorCDR_20' ) end [2025-02-28 02:03:17] Production.INFO: ProcessCDR(1,14573261,1,1,2) [2025-02-28 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573261', 'tblTempUsageDetail_20' ) start [2025-02-28 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573261', 'tblTempUsageDetail_20' ) end [2025-02-28 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:03:21] Production.INFO: ==29609== Releasing lock... [2025-02-28 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:04:06 [end_date_ymd] => 2025-02-28 02:04:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:04:06' and `end` < '2025-02-28 02: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-02-28 02:04:18] Production.INFO: count ==393 [2025-02-28 02:04:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:04:06 - End Time 2025-02-28 02:04:06 [2025-02-28 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573266', 'tblTempUsageDetail_20' ) start [2025-02-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573266', 'tblTempUsageDetail_20' ) end [2025-02-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573266', 'tblTempVendorCDR_20' ) start [2025-02-28 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573266', 'tblTempVendorCDR_20' ) end [2025-02-28 02:04:18] Production.INFO: ProcessCDR(1,14573266,1,1,2) [2025-02-28 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573266', 'tblTempUsageDetail_20' ) start [2025-02-28 02:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573266', 'tblTempUsageDetail_20' ) end [2025-02-28 02:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:04:22] Production.INFO: ==29684== Releasing lock... [2025-02-28 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:04:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:05:05 [end_date_ymd] => 2025-02-28 02:05:05 [RateCDR] => 1 ) [2025-02-28 02:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:05:05' and `end` < '2025-02-28 02:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:05:17] Production.INFO: count ==391 [2025-02-28 02:05:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:05:05 - End Time 2025-02-28 02:05:05 [2025-02-28 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573271', 'tblTempUsageDetail_20' ) start [2025-02-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573271', 'tblTempUsageDetail_20' ) end [2025-02-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573271', 'tblTempVendorCDR_20' ) start [2025-02-28 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573271', 'tblTempVendorCDR_20' ) end [2025-02-28 02:05:17] Production.INFO: ProcessCDR(1,14573271,1,1,2) [2025-02-28 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573271', 'tblTempUsageDetail_20' ) start [2025-02-28 02:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573271', 'tblTempUsageDetail_20' ) end [2025-02-28 02:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:05:21] Production.INFO: ==29757== Releasing lock... [2025-02-28 02:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:06:06 [end_date_ymd] => 2025-02-28 02:06:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:06:06' and `end` < '2025-02-28 02: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-02-28 02:06:18] Production.INFO: count ==391 [2025-02-28 02:06:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:06:06 - End Time 2025-02-28 02:06:06 [2025-02-28 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573276', 'tblTempUsageDetail_20' ) start [2025-02-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573276', 'tblTempUsageDetail_20' ) end [2025-02-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573276', 'tblTempVendorCDR_20' ) start [2025-02-28 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573276', 'tblTempVendorCDR_20' ) end [2025-02-28 02:06:18] Production.INFO: ProcessCDR(1,14573276,1,1,2) [2025-02-28 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573276', 'tblTempUsageDetail_20' ) start [2025-02-28 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573276', 'tblTempUsageDetail_20' ) end [2025-02-28 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:06:21] Production.INFO: ==29832== Releasing lock... [2025-02-28 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:07:06 [end_date_ymd] => 2025-02-28 02:07:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:07:06' and `end` < '2025-02-28 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-02-28 02:07:17] Production.INFO: count ==390 [2025-02-28 02:07:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:07:06 - End Time 2025-02-28 02:07:06 [2025-02-28 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573281', 'tblTempUsageDetail_20' ) start [2025-02-28 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573281', 'tblTempUsageDetail_20' ) end [2025-02-28 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573281', 'tblTempVendorCDR_20' ) start [2025-02-28 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573281', 'tblTempVendorCDR_20' ) end [2025-02-28 02:07:17] Production.INFO: ProcessCDR(1,14573281,1,1,2) [2025-02-28 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573281', 'tblTempUsageDetail_20' ) start [2025-02-28 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573281', 'tblTempUsageDetail_20' ) end [2025-02-28 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:07:21] Production.INFO: ==29907== Releasing lock... [2025-02-28 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:08:05 [end_date_ymd] => 2025-02-28 02:08:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:08:05' and `end` < '2025-02-28 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-02-28 02:08:17] Production.INFO: count ==391 [2025-02-28 02:08:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:08:05 - End Time 2025-02-28 02:08:05 [2025-02-28 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573286', 'tblTempUsageDetail_20' ) start [2025-02-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573286', 'tblTempUsageDetail_20' ) end [2025-02-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573286', 'tblTempVendorCDR_20' ) start [2025-02-28 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573286', 'tblTempVendorCDR_20' ) end [2025-02-28 02:08:17] Production.INFO: ProcessCDR(1,14573286,1,1,2) [2025-02-28 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573286', 'tblTempUsageDetail_20' ) start [2025-02-28 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573286', 'tblTempUsageDetail_20' ) end [2025-02-28 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:08:21] Production.INFO: ==29988== Releasing lock... [2025-02-28 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:08:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:09:06 [end_date_ymd] => 2025-02-28 02:09:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:09:06' and `end` < '2025-02-28 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-02-28 02:09:17] Production.INFO: count ==394 [2025-02-28 02:09:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:09:06 - End Time 2025-02-28 02:09:06 [2025-02-28 02:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573291', 'tblTempUsageDetail_20' ) start [2025-02-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573291', 'tblTempUsageDetail_20' ) end [2025-02-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573291', 'tblTempVendorCDR_20' ) start [2025-02-28 02:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573291', 'tblTempVendorCDR_20' ) end [2025-02-28 02:09:18] Production.INFO: ProcessCDR(1,14573291,1,1,2) [2025-02-28 02:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573291', 'tblTempUsageDetail_20' ) start [2025-02-28 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573291', 'tblTempUsageDetail_20' ) end [2025-02-28 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:09:21] Production.INFO: ==30072== Releasing lock... [2025-02-28 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:09:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:10:06 [end_date_ymd] => 2025-02-28 02:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:10:06' and `end` < '2025-02-28 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-02-28 02:10:19] Production.INFO: count ==402 [2025-02-28 02:10:19] Production.ERROR: pbx CDR StartTime 2025-02-27 23:10:06 - End Time 2025-02-28 02:10:06 [2025-02-28 02:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573297', 'tblTempUsageDetail_20' ) start [2025-02-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573297', 'tblTempUsageDetail_20' ) end [2025-02-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573297', 'tblTempVendorCDR_20' ) start [2025-02-28 02:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573297', 'tblTempVendorCDR_20' ) end [2025-02-28 02:10:19] Production.INFO: ProcessCDR(1,14573297,1,1,2) [2025-02-28 02:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573297', 'tblTempUsageDetail_20' ) start [2025-02-28 02:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573297', 'tblTempUsageDetail_20' ) end [2025-02-28 02:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:10:23] Production.INFO: ==30156== Releasing lock... [2025-02-28 02:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:10:23] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:11:05 [end_date_ymd] => 2025-02-28 02:11:05 [RateCDR] => 1 ) [2025-02-28 02:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:11:05' and `end` < '2025-02-28 02:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:11:17] Production.INFO: count ==402 [2025-02-28 02:11:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:11:05 - End Time 2025-02-28 02:11:05 [2025-02-28 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573302', 'tblTempUsageDetail_20' ) start [2025-02-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573302', 'tblTempUsageDetail_20' ) end [2025-02-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573302', 'tblTempVendorCDR_20' ) start [2025-02-28 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573302', 'tblTempVendorCDR_20' ) end [2025-02-28 02:11:17] Production.INFO: ProcessCDR(1,14573302,1,1,2) [2025-02-28 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573302', 'tblTempUsageDetail_20' ) start [2025-02-28 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573302', 'tblTempUsageDetail_20' ) end [2025-02-28 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:11:21] Production.INFO: ==30242== Releasing lock... [2025-02-28 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:11:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:12:06 [end_date_ymd] => 2025-02-28 02:12:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:12:06' and `end` < '2025-02-28 02: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-02-28 02:12:18] Production.INFO: count ==399 [2025-02-28 02:12:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:12:06 - End Time 2025-02-28 02:12:06 [2025-02-28 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573307', 'tblTempUsageDetail_20' ) start [2025-02-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573307', 'tblTempUsageDetail_20' ) end [2025-02-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573307', 'tblTempVendorCDR_20' ) start [2025-02-28 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573307', 'tblTempVendorCDR_20' ) end [2025-02-28 02:12:18] Production.INFO: ProcessCDR(1,14573307,1,1,2) [2025-02-28 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573307', 'tblTempUsageDetail_20' ) start [2025-02-28 02:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573307', 'tblTempUsageDetail_20' ) end [2025-02-28 02:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:12:22] Production.INFO: ==30326== Releasing lock... [2025-02-28 02:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:12:22] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:13:05 [end_date_ymd] => 2025-02-28 02:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:13:05' and `end` < '2025-02-28 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-02-28 02:13:17] Production.INFO: count ==399 [2025-02-28 02:13:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:13:05 - End Time 2025-02-28 02:13:05 [2025-02-28 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573312', 'tblTempUsageDetail_20' ) start [2025-02-28 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573312', 'tblTempUsageDetail_20' ) end [2025-02-28 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573312', 'tblTempVendorCDR_20' ) start [2025-02-28 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573312', 'tblTempVendorCDR_20' ) end [2025-02-28 02:13:17] Production.INFO: ProcessCDR(1,14573312,1,1,2) [2025-02-28 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573312', 'tblTempUsageDetail_20' ) start [2025-02-28 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573312', 'tblTempUsageDetail_20' ) end [2025-02-28 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:13:21] Production.INFO: ==30398== Releasing lock... [2025-02-28 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:13:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:14:06 [end_date_ymd] => 2025-02-28 02:14:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:14:06' and `end` < '2025-02-28 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-02-28 02:14:18] Production.INFO: count ==395 [2025-02-28 02:14:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:14:06 - End Time 2025-02-28 02:14:06 [2025-02-28 02:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573317', 'tblTempUsageDetail_20' ) start [2025-02-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573317', 'tblTempUsageDetail_20' ) end [2025-02-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573317', 'tblTempVendorCDR_20' ) start [2025-02-28 02:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573317', 'tblTempVendorCDR_20' ) end [2025-02-28 02:14:18] Production.INFO: ProcessCDR(1,14573317,1,1,2) [2025-02-28 02:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573317', 'tblTempUsageDetail_20' ) start [2025-02-28 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573317', 'tblTempUsageDetail_20' ) end [2025-02-28 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:14:21] Production.INFO: ==30470== Releasing lock... [2025-02-28 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:15:05 [end_date_ymd] => 2025-02-28 02:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:15:05' and `end` < '2025-02-28 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-02-28 02:15:17] Production.INFO: count ==392 [2025-02-28 02:15:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:15:05 - End Time 2025-02-28 02:15:05 [2025-02-28 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573322', 'tblTempUsageDetail_20' ) start [2025-02-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573322', 'tblTempUsageDetail_20' ) end [2025-02-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573322', 'tblTempVendorCDR_20' ) start [2025-02-28 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573322', 'tblTempVendorCDR_20' ) end [2025-02-28 02:15:17] Production.INFO: ProcessCDR(1,14573322,1,1,2) [2025-02-28 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573322', 'tblTempUsageDetail_20' ) start [2025-02-28 02:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573322', 'tblTempUsageDetail_20' ) end [2025-02-28 02:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:15:20] Production.INFO: ==30580== Releasing lock... [2025-02-28 02:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:15:20] Production.INFO: 31 MB #Memory Used# [2025-02-28 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:16:05 [end_date_ymd] => 2025-02-28 02:16:05 [RateCDR] => 1 ) [2025-02-28 02:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:16:05' and `end` < '2025-02-28 02:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:16:17] Production.INFO: count ==391 [2025-02-28 02:16:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:16:05 - End Time 2025-02-28 02:16:05 [2025-02-28 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573327', 'tblTempUsageDetail_20' ) start [2025-02-28 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573327', 'tblTempUsageDetail_20' ) end [2025-02-28 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573327', 'tblTempVendorCDR_20' ) start [2025-02-28 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573327', 'tblTempVendorCDR_20' ) end [2025-02-28 02:16:18] Production.INFO: ProcessCDR(1,14573327,1,1,2) [2025-02-28 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573327', 'tblTempUsageDetail_20' ) start [2025-02-28 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573327', 'tblTempUsageDetail_20' ) end [2025-02-28 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:16:21] Production.INFO: ==30650== Releasing lock... [2025-02-28 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:17:05 [end_date_ymd] => 2025-02-28 02:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:17:05' and `end` < '2025-02-28 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-02-28 02:17:17] Production.INFO: count ==391 [2025-02-28 02:17:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:17:05 - End Time 2025-02-28 02:17:05 [2025-02-28 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573332', 'tblTempUsageDetail_20' ) start [2025-02-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573332', 'tblTempUsageDetail_20' ) end [2025-02-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573332', 'tblTempVendorCDR_20' ) start [2025-02-28 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573332', 'tblTempVendorCDR_20' ) end [2025-02-28 02:17:17] Production.INFO: ProcessCDR(1,14573332,1,1,2) [2025-02-28 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573332', 'tblTempUsageDetail_20' ) start [2025-02-28 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573332', 'tblTempUsageDetail_20' ) end [2025-02-28 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:17:20] Production.INFO: ==30719== Releasing lock... [2025-02-28 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:17:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:18:06 [end_date_ymd] => 2025-02-28 02:18:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:18:06' and `end` < '2025-02-28 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-02-28 02:18:18] Production.INFO: count ==385 [2025-02-28 02:18:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:18:06 - End Time 2025-02-28 02:18:06 [2025-02-28 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573337', 'tblTempUsageDetail_20' ) start [2025-02-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573337', 'tblTempUsageDetail_20' ) end [2025-02-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573337', 'tblTempVendorCDR_20' ) start [2025-02-28 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573337', 'tblTempVendorCDR_20' ) end [2025-02-28 02:18:18] Production.INFO: ProcessCDR(1,14573337,1,1,2) [2025-02-28 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573337', 'tblTempUsageDetail_20' ) start [2025-02-28 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573337', 'tblTempUsageDetail_20' ) end [2025-02-28 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:18:21] Production.INFO: ==30791== Releasing lock... [2025-02-28 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:19:05 [end_date_ymd] => 2025-02-28 02:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:19:05' and `end` < '2025-02-28 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-02-28 02:19:17] Production.INFO: count ==385 [2025-02-28 02:19:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:19:05 - End Time 2025-02-28 02:19:05 [2025-02-28 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573342', 'tblTempUsageDetail_20' ) start [2025-02-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573342', 'tblTempUsageDetail_20' ) end [2025-02-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573342', 'tblTempVendorCDR_20' ) start [2025-02-28 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573342', 'tblTempVendorCDR_20' ) end [2025-02-28 02:19:17] Production.INFO: ProcessCDR(1,14573342,1,1,2) [2025-02-28 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573342', 'tblTempUsageDetail_20' ) start [2025-02-28 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573342', 'tblTempUsageDetail_20' ) end [2025-02-28 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:19:21] Production.INFO: ==30861== Releasing lock... [2025-02-28 02:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:19:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:20:06 [end_date_ymd] => 2025-02-28 02:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:20:06' and `end` < '2025-02-28 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-02-28 02:20:18] Production.INFO: count ==393 [2025-02-28 02:20:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:20:06 - End Time 2025-02-28 02:20:06 [2025-02-28 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573348', 'tblTempUsageDetail_20' ) start [2025-02-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573348', 'tblTempUsageDetail_20' ) end [2025-02-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573348', 'tblTempVendorCDR_20' ) start [2025-02-28 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573348', 'tblTempVendorCDR_20' ) end [2025-02-28 02:20:18] Production.INFO: ProcessCDR(1,14573348,1,1,2) [2025-02-28 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573348', 'tblTempUsageDetail_20' ) start [2025-02-28 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573348', 'tblTempUsageDetail_20' ) end [2025-02-28 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:20:21] Production.INFO: ==30936== Releasing lock... [2025-02-28 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:20:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:21:05 [end_date_ymd] => 2025-02-28 02:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:21:05' and `end` < '2025-02-28 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-02-28 02:21:17] Production.INFO: count ==397 [2025-02-28 02:21:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:21:05 - End Time 2025-02-28 02:21:05 [2025-02-28 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573353', 'tblTempUsageDetail_20' ) start [2025-02-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573353', 'tblTempUsageDetail_20' ) end [2025-02-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573353', 'tblTempVendorCDR_20' ) start [2025-02-28 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573353', 'tblTempVendorCDR_20' ) end [2025-02-28 02:21:17] Production.INFO: ProcessCDR(1,14573353,1,1,2) [2025-02-28 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573353', 'tblTempUsageDetail_20' ) start [2025-02-28 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573353', 'tblTempUsageDetail_20' ) end [2025-02-28 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:21:20] Production.INFO: ==31014== Releasing lock... [2025-02-28 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:21:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:22:06 [end_date_ymd] => 2025-02-28 02:22:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:22:06' and `end` < '2025-02-28 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-02-28 02:22:18] Production.INFO: count ==396 [2025-02-28 02:22:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:22:06 - End Time 2025-02-28 02:22:06 [2025-02-28 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573358', 'tblTempUsageDetail_20' ) start [2025-02-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573358', 'tblTempUsageDetail_20' ) end [2025-02-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573358', 'tblTempVendorCDR_20' ) start [2025-02-28 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573358', 'tblTempVendorCDR_20' ) end [2025-02-28 02:22:18] Production.INFO: ProcessCDR(1,14573358,1,1,2) [2025-02-28 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573358', 'tblTempUsageDetail_20' ) start [2025-02-28 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573358', 'tblTempUsageDetail_20' ) end [2025-02-28 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:22:21] Production.INFO: ==31091== Releasing lock... [2025-02-28 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:22:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:23:05 [end_date_ymd] => 2025-02-28 02:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:23:05' and `end` < '2025-02-28 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-02-28 02:23:17] Production.INFO: count ==395 [2025-02-28 02:23:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:23:05 - End Time 2025-02-28 02:23:05 [2025-02-28 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573363', 'tblTempUsageDetail_20' ) start [2025-02-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573363', 'tblTempUsageDetail_20' ) end [2025-02-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573363', 'tblTempVendorCDR_20' ) start [2025-02-28 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573363', 'tblTempVendorCDR_20' ) end [2025-02-28 02:23:17] Production.INFO: ProcessCDR(1,14573363,1,1,2) [2025-02-28 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573363', 'tblTempUsageDetail_20' ) start [2025-02-28 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573363', 'tblTempUsageDetail_20' ) end [2025-02-28 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:23:20] Production.INFO: ==31162== Releasing lock... [2025-02-28 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:23:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:24:06 [end_date_ymd] => 2025-02-28 02:24:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:24:06' and `end` < '2025-02-28 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-02-28 02:24:18] Production.INFO: count ==391 [2025-02-28 02:24:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:24:06 - End Time 2025-02-28 02:24:06 [2025-02-28 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573368', 'tblTempUsageDetail_20' ) start [2025-02-28 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573368', 'tblTempUsageDetail_20' ) end [2025-02-28 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573368', 'tblTempVendorCDR_20' ) start [2025-02-28 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573368', 'tblTempVendorCDR_20' ) end [2025-02-28 02:24:18] Production.INFO: ProcessCDR(1,14573368,1,1,2) [2025-02-28 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573368', 'tblTempUsageDetail_20' ) start [2025-02-28 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573368', 'tblTempUsageDetail_20' ) end [2025-02-28 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:24:21] Production.INFO: ==31235== Releasing lock... [2025-02-28 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:24:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:25:05 [end_date_ymd] => 2025-02-28 02:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:25:05' and `end` < '2025-02-28 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-02-28 02:25:17] Production.INFO: count ==390 [2025-02-28 02:25:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:25:05 - End Time 2025-02-28 02:25:05 [2025-02-28 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573373', 'tblTempUsageDetail_20' ) start [2025-02-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573373', 'tblTempUsageDetail_20' ) end [2025-02-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573373', 'tblTempVendorCDR_20' ) start [2025-02-28 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573373', 'tblTempVendorCDR_20' ) end [2025-02-28 02:25:18] Production.INFO: ProcessCDR(1,14573373,1,1,2) [2025-02-28 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573373', 'tblTempUsageDetail_20' ) start [2025-02-28 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573373', 'tblTempUsageDetail_20' ) end [2025-02-28 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:25:21] Production.INFO: ==31304== Releasing lock... [2025-02-28 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:26:06 [end_date_ymd] => 2025-02-28 02:26:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:26:06' and `end` < '2025-02-28 02: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-02-28 02:26:18] Production.INFO: count ==390 [2025-02-28 02:26:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:26:06 - End Time 2025-02-28 02:26:06 [2025-02-28 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573378', 'tblTempUsageDetail_20' ) start [2025-02-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573378', 'tblTempUsageDetail_20' ) end [2025-02-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573378', 'tblTempVendorCDR_20' ) start [2025-02-28 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573378', 'tblTempVendorCDR_20' ) end [2025-02-28 02:26:18] Production.INFO: ProcessCDR(1,14573378,1,1,2) [2025-02-28 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573378', 'tblTempUsageDetail_20' ) start [2025-02-28 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573378', 'tblTempUsageDetail_20' ) end [2025-02-28 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:26:22] Production.INFO: ==31379== Releasing lock... [2025-02-28 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:26:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:27:06 [end_date_ymd] => 2025-02-28 02:27:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:27:06' and `end` < '2025-02-28 02: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-02-28 02:27:18] Production.INFO: count ==390 [2025-02-28 02:27:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:27:06 - End Time 2025-02-28 02:27:06 [2025-02-28 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573383', 'tblTempUsageDetail_20' ) start [2025-02-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573383', 'tblTempUsageDetail_20' ) end [2025-02-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573383', 'tblTempVendorCDR_20' ) start [2025-02-28 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573383', 'tblTempVendorCDR_20' ) end [2025-02-28 02:27:18] Production.INFO: ProcessCDR(1,14573383,1,1,2) [2025-02-28 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573383', 'tblTempUsageDetail_20' ) start [2025-02-28 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573383', 'tblTempUsageDetail_20' ) end [2025-02-28 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:27:21] Production.INFO: ==31451== Releasing lock... [2025-02-28 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:28:06 [end_date_ymd] => 2025-02-28 02:28:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:28:06' and `end` < '2025-02-28 02: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-02-28 02:28:17] Production.INFO: count ==389 [2025-02-28 02:28:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:28:06 - End Time 2025-02-28 02:28:06 [2025-02-28 02:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573388', 'tblTempUsageDetail_20' ) start [2025-02-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573388', 'tblTempUsageDetail_20' ) end [2025-02-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573388', 'tblTempVendorCDR_20' ) start [2025-02-28 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573388', 'tblTempVendorCDR_20' ) end [2025-02-28 02:28:18] Production.INFO: ProcessCDR(1,14573388,1,1,2) [2025-02-28 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573388', 'tblTempUsageDetail_20' ) start [2025-02-28 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573388', 'tblTempUsageDetail_20' ) end [2025-02-28 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:28:21] Production.INFO: ==31523== Releasing lock... [2025-02-28 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:29:05 [end_date_ymd] => 2025-02-28 02:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:29:05' and `end` < '2025-02-28 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-02-28 02:29:17] Production.INFO: count ==388 [2025-02-28 02:29:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:29:05 - End Time 2025-02-28 02:29:05 [2025-02-28 02:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573393', 'tblTempUsageDetail_20' ) start [2025-02-28 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573393', 'tblTempUsageDetail_20' ) end [2025-02-28 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573393', 'tblTempVendorCDR_20' ) start [2025-02-28 02:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573393', 'tblTempVendorCDR_20' ) end [2025-02-28 02:29:17] Production.INFO: ProcessCDR(1,14573393,1,1,2) [2025-02-28 02:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573393', 'tblTempUsageDetail_20' ) start [2025-02-28 02:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573393', 'tblTempUsageDetail_20' ) end [2025-02-28 02:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:29:20] Production.INFO: ==31592== Releasing lock... [2025-02-28 02:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:29:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:30:07 [end_date_ymd] => 2025-02-28 02:30:07 [RateCDR] => 1 ) [2025-02-28 02:30: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-02-27 23:30:07' and `end` < '2025-02-28 02:30: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-02-28 02:30:19] Production.INFO: count ==393 [2025-02-28 02:30:19] Production.ERROR: pbx CDR StartTime 2025-02-27 23:30:07 - End Time 2025-02-28 02:30:07 [2025-02-28 02:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573399', 'tblTempUsageDetail_20' ) start [2025-02-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573399', 'tblTempUsageDetail_20' ) end [2025-02-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573399', 'tblTempVendorCDR_20' ) start [2025-02-28 02:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573399', 'tblTempVendorCDR_20' ) end [2025-02-28 02:30:19] Production.INFO: ProcessCDR(1,14573399,1,1,2) [2025-02-28 02:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573399', 'tblTempUsageDetail_20' ) start [2025-02-28 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573399', 'tblTempUsageDetail_20' ) end [2025-02-28 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:30:22] Production.INFO: ==31706== Releasing lock... [2025-02-28 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:31:05 [end_date_ymd] => 2025-02-28 02:31:05 [RateCDR] => 1 ) [2025-02-28 02:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:31:05' and `end` < '2025-02-28 02:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:31:17] Production.INFO: count ==393 [2025-02-28 02:31:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:31:05 - End Time 2025-02-28 02:31:05 [2025-02-28 02:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573404', 'tblTempUsageDetail_20' ) start [2025-02-28 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573404', 'tblTempUsageDetail_20' ) end [2025-02-28 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573404', 'tblTempVendorCDR_20' ) start [2025-02-28 02:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573404', 'tblTempVendorCDR_20' ) end [2025-02-28 02:31:17] Production.INFO: ProcessCDR(1,14573404,1,1,2) [2025-02-28 02:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573404', 'tblTempUsageDetail_20' ) start [2025-02-28 02:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573404', 'tblTempUsageDetail_20' ) end [2025-02-28 02:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:31:20] Production.INFO: ==31777== Releasing lock... [2025-02-28 02:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:31:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:32:05 [end_date_ymd] => 2025-02-28 02:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:32:05' and `end` < '2025-02-28 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-02-28 02:32:17] Production.INFO: count ==392 [2025-02-28 02:32:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:32:05 - End Time 2025-02-28 02:32:05 [2025-02-28 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573409', 'tblTempUsageDetail_20' ) start [2025-02-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573409', 'tblTempUsageDetail_20' ) end [2025-02-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573409', 'tblTempVendorCDR_20' ) start [2025-02-28 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573409', 'tblTempVendorCDR_20' ) end [2025-02-28 02:32:17] Production.INFO: ProcessCDR(1,14573409,1,1,2) [2025-02-28 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573409', 'tblTempUsageDetail_20' ) start [2025-02-28 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573409', 'tblTempUsageDetail_20' ) end [2025-02-28 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:32:20] Production.INFO: ==31850== Releasing lock... [2025-02-28 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:32:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:33:05 [end_date_ymd] => 2025-02-28 02:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:33:05' and `end` < '2025-02-28 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-02-28 02:33:17] Production.INFO: count ==392 [2025-02-28 02:33:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:33:05 - End Time 2025-02-28 02:33:05 [2025-02-28 02:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573414', 'tblTempUsageDetail_20' ) start [2025-02-28 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573414', 'tblTempUsageDetail_20' ) end [2025-02-28 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573414', 'tblTempVendorCDR_20' ) start [2025-02-28 02:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573414', 'tblTempVendorCDR_20' ) end [2025-02-28 02:33:17] Production.INFO: ProcessCDR(1,14573414,1,1,2) [2025-02-28 02:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573414', 'tblTempUsageDetail_20' ) start [2025-02-28 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573414', 'tblTempUsageDetail_20' ) end [2025-02-28 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:33:21] Production.INFO: ==31922== Releasing lock... [2025-02-28 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:34:05 [end_date_ymd] => 2025-02-28 02:34:05 [RateCDR] => 1 ) [2025-02-28 02:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:34:05' and `end` < '2025-02-28 02:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:34:17] Production.INFO: count ==392 [2025-02-28 02:34:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:34:05 - End Time 2025-02-28 02:34:05 [2025-02-28 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573419', 'tblTempUsageDetail_20' ) start [2025-02-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573419', 'tblTempUsageDetail_20' ) end [2025-02-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573419', 'tblTempVendorCDR_20' ) start [2025-02-28 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573419', 'tblTempVendorCDR_20' ) end [2025-02-28 02:34:17] Production.INFO: ProcessCDR(1,14573419,1,1,2) [2025-02-28 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573419', 'tblTempUsageDetail_20' ) start [2025-02-28 02:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573419', 'tblTempUsageDetail_20' ) end [2025-02-28 02:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:34:21] Production.INFO: ==31993== Releasing lock... [2025-02-28 02:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:35:05 [end_date_ymd] => 2025-02-28 02:35:05 [RateCDR] => 1 ) [2025-02-28 02:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:35:05' and `end` < '2025-02-28 02:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:35:17] Production.INFO: count ==391 [2025-02-28 02:35:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:35:05 - End Time 2025-02-28 02:35:05 [2025-02-28 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573424', 'tblTempUsageDetail_20' ) start [2025-02-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573424', 'tblTempUsageDetail_20' ) end [2025-02-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573424', 'tblTempVendorCDR_20' ) start [2025-02-28 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573424', 'tblTempVendorCDR_20' ) end [2025-02-28 02:35:17] Production.INFO: ProcessCDR(1,14573424,1,1,2) [2025-02-28 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573424', 'tblTempUsageDetail_20' ) start [2025-02-28 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573424', 'tblTempUsageDetail_20' ) end [2025-02-28 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:35:20] Production.INFO: ==32068== Releasing lock... [2025-02-28 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:35:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:36:05 [end_date_ymd] => 2025-02-28 02:36:05 [RateCDR] => 1 ) [2025-02-28 02:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:36:05' and `end` < '2025-02-28 02:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:36:17] Production.INFO: count ==395 [2025-02-28 02:36:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:36:05 - End Time 2025-02-28 02:36:05 [2025-02-28 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573429', 'tblTempUsageDetail_20' ) start [2025-02-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573429', 'tblTempUsageDetail_20' ) end [2025-02-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573429', 'tblTempVendorCDR_20' ) start [2025-02-28 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573429', 'tblTempVendorCDR_20' ) end [2025-02-28 02:36:17] Production.INFO: ProcessCDR(1,14573429,1,1,2) [2025-02-28 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573429', 'tblTempUsageDetail_20' ) start [2025-02-28 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573429', 'tblTempUsageDetail_20' ) end [2025-02-28 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:36:21] Production.INFO: ==32141== Releasing lock... [2025-02-28 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:37:05 [end_date_ymd] => 2025-02-28 02:37:05 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:37:05' and `end` < '2025-02-28 02: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-02-28 02:37:17] Production.INFO: count ==394 [2025-02-28 02:37:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:37:05 - End Time 2025-02-28 02:37:05 [2025-02-28 02:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573434', 'tblTempUsageDetail_20' ) start [2025-02-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573434', 'tblTempUsageDetail_20' ) end [2025-02-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573434', 'tblTempVendorCDR_20' ) start [2025-02-28 02:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573434', 'tblTempVendorCDR_20' ) end [2025-02-28 02:37:17] Production.INFO: ProcessCDR(1,14573434,1,1,2) [2025-02-28 02:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573434', 'tblTempUsageDetail_20' ) start [2025-02-28 02:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573434', 'tblTempUsageDetail_20' ) end [2025-02-28 02:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:37:20] Production.INFO: ==32211== Releasing lock... [2025-02-28 02:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:37:20] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:38:05 [end_date_ymd] => 2025-02-28 02:38:05 [RateCDR] => 1 ) [2025-02-28 02:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:38:05' and `end` < '2025-02-28 02:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:38:17] Production.INFO: count ==390 [2025-02-28 02:38:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:38:05 - End Time 2025-02-28 02:38:05 [2025-02-28 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573439', 'tblTempUsageDetail_20' ) start [2025-02-28 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573439', 'tblTempUsageDetail_20' ) end [2025-02-28 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573439', 'tblTempVendorCDR_20' ) start [2025-02-28 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573439', 'tblTempVendorCDR_20' ) end [2025-02-28 02:38:17] Production.INFO: ProcessCDR(1,14573439,1,1,2) [2025-02-28 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573439', 'tblTempUsageDetail_20' ) start [2025-02-28 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573439', 'tblTempUsageDetail_20' ) end [2025-02-28 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:38:21] Production.INFO: ==32284== Releasing lock... [2025-02-28 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:39:05 [end_date_ymd] => 2025-02-28 02:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:39:05' and `end` < '2025-02-28 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-02-28 02:39:17] Production.INFO: count ==389 [2025-02-28 02:39:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:39:05 - End Time 2025-02-28 02:39:05 [2025-02-28 02:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573444', 'tblTempUsageDetail_20' ) start [2025-02-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573444', 'tblTempUsageDetail_20' ) end [2025-02-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573444', 'tblTempVendorCDR_20' ) start [2025-02-28 02:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573444', 'tblTempVendorCDR_20' ) end [2025-02-28 02:39:17] Production.INFO: ProcessCDR(1,14573444,1,1,2) [2025-02-28 02:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573444', 'tblTempUsageDetail_20' ) start [2025-02-28 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573444', 'tblTempUsageDetail_20' ) end [2025-02-28 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:39:21] Production.INFO: ==32357== Releasing lock... [2025-02-28 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:40:06 [end_date_ymd] => 2025-02-28 02:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:40:06' and `end` < '2025-02-28 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-02-28 02:40:18] Production.INFO: count ==397 [2025-02-28 02:40:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:40:06 - End Time 2025-02-28 02:40:06 [2025-02-28 02:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573450', 'tblTempUsageDetail_20' ) start [2025-02-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573450', 'tblTempUsageDetail_20' ) end [2025-02-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573450', 'tblTempVendorCDR_20' ) start [2025-02-28 02:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573450', 'tblTempVendorCDR_20' ) end [2025-02-28 02:40:18] Production.INFO: ProcessCDR(1,14573450,1,1,2) [2025-02-28 02:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573450', 'tblTempUsageDetail_20' ) start [2025-02-28 02:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573450', 'tblTempUsageDetail_20' ) end [2025-02-28 02:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:40:21] Production.INFO: ==32431== Releasing lock... [2025-02-28 02:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:41:05 [end_date_ymd] => 2025-02-28 02:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:41:05' and `end` < '2025-02-28 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-02-28 02:41:17] Production.INFO: count ==399 [2025-02-28 02:41:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:41:05 - End Time 2025-02-28 02:41:05 [2025-02-28 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573455', 'tblTempUsageDetail_20' ) start [2025-02-28 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573455', 'tblTempUsageDetail_20' ) end [2025-02-28 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573455', 'tblTempVendorCDR_20' ) start [2025-02-28 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573455', 'tblTempVendorCDR_20' ) end [2025-02-28 02:41:17] Production.INFO: ProcessCDR(1,14573455,1,1,2) [2025-02-28 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573455', 'tblTempUsageDetail_20' ) start [2025-02-28 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573455', 'tblTempUsageDetail_20' ) end [2025-02-28 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:41:20] Production.INFO: ==32510== Releasing lock... [2025-02-28 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:42:05 [end_date_ymd] => 2025-02-28 02:42:05 [RateCDR] => 1 ) [2025-02-28 02:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:42:05' and `end` < '2025-02-28 02:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:42:17] Production.INFO: count ==396 [2025-02-28 02:42:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:42:05 - End Time 2025-02-28 02:42:05 [2025-02-28 02:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573460', 'tblTempUsageDetail_20' ) start [2025-02-28 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573460', 'tblTempUsageDetail_20' ) end [2025-02-28 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573460', 'tblTempVendorCDR_20' ) start [2025-02-28 02:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573460', 'tblTempVendorCDR_20' ) end [2025-02-28 02:42:17] Production.INFO: ProcessCDR(1,14573460,1,1,2) [2025-02-28 02:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573460', 'tblTempUsageDetail_20' ) start [2025-02-28 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573460', 'tblTempUsageDetail_20' ) end [2025-02-28 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:42:21] Production.INFO: ==32581== Releasing lock... [2025-02-28 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:43:05 [end_date_ymd] => 2025-02-28 02:43:05 [RateCDR] => 1 ) [2025-02-28 02:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:43:05' and `end` < '2025-02-28 02:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:43:17] Production.INFO: count ==390 [2025-02-28 02:43:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:43:05 - End Time 2025-02-28 02:43:05 [2025-02-28 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573465', 'tblTempUsageDetail_20' ) start [2025-02-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573465', 'tblTempUsageDetail_20' ) end [2025-02-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573465', 'tblTempVendorCDR_20' ) start [2025-02-28 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573465', 'tblTempVendorCDR_20' ) end [2025-02-28 02:43:17] Production.INFO: ProcessCDR(1,14573465,1,1,2) [2025-02-28 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573465', 'tblTempUsageDetail_20' ) start [2025-02-28 02:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573465', 'tblTempUsageDetail_20' ) end [2025-02-28 02:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:43:20] Production.INFO: ==32652== Releasing lock... [2025-02-28 02:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:44:06 [end_date_ymd] => 2025-02-28 02:44:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:44:06' and `end` < '2025-02-28 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-02-28 02:44:18] Production.INFO: count ==390 [2025-02-28 02:44:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:44:06 - End Time 2025-02-28 02:44:06 [2025-02-28 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573470', 'tblTempUsageDetail_20' ) start [2025-02-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573470', 'tblTempUsageDetail_20' ) end [2025-02-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573470', 'tblTempVendorCDR_20' ) start [2025-02-28 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573470', 'tblTempVendorCDR_20' ) end [2025-02-28 02:44:18] Production.INFO: ProcessCDR(1,14573470,1,1,2) [2025-02-28 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573470', 'tblTempUsageDetail_20' ) start [2025-02-28 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573470', 'tblTempUsageDetail_20' ) end [2025-02-28 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:44:21] Production.INFO: ==32722== Releasing lock... [2025-02-28 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:45:05 [end_date_ymd] => 2025-02-28 02:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:45:05' and `end` < '2025-02-28 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-02-28 02:45:17] Production.INFO: count ==390 [2025-02-28 02:45:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:45:05 - End Time 2025-02-28 02:45:05 [2025-02-28 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573475', 'tblTempUsageDetail_20' ) start [2025-02-28 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573475', 'tblTempUsageDetail_20' ) end [2025-02-28 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573475', 'tblTempVendorCDR_20' ) start [2025-02-28 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573475', 'tblTempVendorCDR_20' ) end [2025-02-28 02:45:17] Production.INFO: ProcessCDR(1,14573475,1,1,2) [2025-02-28 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573475', 'tblTempUsageDetail_20' ) start [2025-02-28 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573475', 'tblTempUsageDetail_20' ) end [2025-02-28 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:45:20] Production.INFO: ==369== Releasing lock... [2025-02-28 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:45:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:46:05 [end_date_ymd] => 2025-02-28 02:46:05 [RateCDR] => 1 ) [2025-02-28 02:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:46:05' and `end` < '2025-02-28 02:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:46:17] Production.INFO: count ==389 [2025-02-28 02:46:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:46:05 - End Time 2025-02-28 02:46:05 [2025-02-28 02:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573480', 'tblTempUsageDetail_20' ) start [2025-02-28 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573480', 'tblTempUsageDetail_20' ) end [2025-02-28 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573480', 'tblTempVendorCDR_20' ) start [2025-02-28 02:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573480', 'tblTempVendorCDR_20' ) end [2025-02-28 02:46:17] Production.INFO: ProcessCDR(1,14573480,1,1,2) [2025-02-28 02:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573480', 'tblTempUsageDetail_20' ) start [2025-02-28 02:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573480', 'tblTempUsageDetail_20' ) end [2025-02-28 02:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:46:20] Production.INFO: ==456== Releasing lock... [2025-02-28 02:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:46:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:47:06 [end_date_ymd] => 2025-02-28 02:47:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:47:06' and `end` < '2025-02-28 02: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-02-28 02:47:18] Production.INFO: count ==385 [2025-02-28 02:47:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:47:06 - End Time 2025-02-28 02:47:06 [2025-02-28 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573485', 'tblTempUsageDetail_20' ) start [2025-02-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573485', 'tblTempUsageDetail_20' ) end [2025-02-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573485', 'tblTempVendorCDR_20' ) start [2025-02-28 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573485', 'tblTempVendorCDR_20' ) end [2025-02-28 02:47:18] Production.INFO: ProcessCDR(1,14573485,1,1,2) [2025-02-28 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573485', 'tblTempUsageDetail_20' ) start [2025-02-28 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573485', 'tblTempUsageDetail_20' ) end [2025-02-28 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:47:21] Production.INFO: ==530== Releasing lock... [2025-02-28 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:47:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:48:05 [end_date_ymd] => 2025-02-28 02:48:05 [RateCDR] => 1 ) [2025-02-28 02:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:48:05' and `end` < '2025-02-28 02:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:48:17] Production.INFO: count ==389 [2025-02-28 02:48:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:48:05 - End Time 2025-02-28 02:48:05 [2025-02-28 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573490', 'tblTempUsageDetail_20' ) start [2025-02-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573490', 'tblTempUsageDetail_20' ) end [2025-02-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573490', 'tblTempVendorCDR_20' ) start [2025-02-28 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573490', 'tblTempVendorCDR_20' ) end [2025-02-28 02:48:17] Production.INFO: ProcessCDR(1,14573490,1,1,2) [2025-02-28 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573490', 'tblTempUsageDetail_20' ) start [2025-02-28 02:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573490', 'tblTempUsageDetail_20' ) end [2025-02-28 02:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:48:21] Production.INFO: ==612== Releasing lock... [2025-02-28 02:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:48:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:49:05 [end_date_ymd] => 2025-02-28 02:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:49:05' and `end` < '2025-02-28 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-02-28 02:49:17] Production.INFO: count ==388 [2025-02-28 02:49:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:49:05 - End Time 2025-02-28 02:49:05 [2025-02-28 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573495', 'tblTempUsageDetail_20' ) start [2025-02-28 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573495', 'tblTempUsageDetail_20' ) end [2025-02-28 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573495', 'tblTempVendorCDR_20' ) start [2025-02-28 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573495', 'tblTempVendorCDR_20' ) end [2025-02-28 02:49:17] Production.INFO: ProcessCDR(1,14573495,1,1,2) [2025-02-28 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573495', 'tblTempUsageDetail_20' ) start [2025-02-28 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573495', 'tblTempUsageDetail_20' ) end [2025-02-28 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:49:20] Production.INFO: ==709== Releasing lock... [2025-02-28 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:49:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:50:06 [end_date_ymd] => 2025-02-28 02:50:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:50:06' and `end` < '2025-02-28 02: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-02-28 02:50:18] Production.INFO: count ==398 [2025-02-28 02:50:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:50:06 - End Time 2025-02-28 02:50:06 [2025-02-28 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573500', 'tblTempUsageDetail_20' ) start [2025-02-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573500', 'tblTempUsageDetail_20' ) end [2025-02-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573500', 'tblTempVendorCDR_20' ) start [2025-02-28 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573500', 'tblTempVendorCDR_20' ) end [2025-02-28 02:50:18] Production.INFO: ProcessCDR(1,14573500,1,1,2) [2025-02-28 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573500', 'tblTempUsageDetail_20' ) start [2025-02-28 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573500', 'tblTempUsageDetail_20' ) end [2025-02-28 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:50:21] Production.INFO: ==786== Releasing lock... [2025-02-28 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:51:05 [end_date_ymd] => 2025-02-28 02:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:51:05' and `end` < '2025-02-28 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-02-28 02:51:17] Production.INFO: count ==397 [2025-02-28 02:51:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:51:05 - End Time 2025-02-28 02:51:05 [2025-02-28 02:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573506', 'tblTempUsageDetail_20' ) start [2025-02-28 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573506', 'tblTempUsageDetail_20' ) end [2025-02-28 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573506', 'tblTempVendorCDR_20' ) start [2025-02-28 02:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573506', 'tblTempVendorCDR_20' ) end [2025-02-28 02:51:17] Production.INFO: ProcessCDR(1,14573506,1,1,2) [2025-02-28 02:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573506', 'tblTempUsageDetail_20' ) start [2025-02-28 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573506', 'tblTempUsageDetail_20' ) end [2025-02-28 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:51:21] Production.INFO: ==860== Releasing lock... [2025-02-28 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:52:06 [end_date_ymd] => 2025-02-28 02:52:06 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:52:06' and `end` < '2025-02-28 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-02-28 02:52:17] Production.INFO: count ==394 [2025-02-28 02:52:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:52:06 - End Time 2025-02-28 02:52:06 [2025-02-28 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573511', 'tblTempUsageDetail_20' ) start [2025-02-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573511', 'tblTempUsageDetail_20' ) end [2025-02-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573511', 'tblTempVendorCDR_20' ) start [2025-02-28 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573511', 'tblTempVendorCDR_20' ) end [2025-02-28 02:52:17] Production.INFO: ProcessCDR(1,14573511,1,1,2) [2025-02-28 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573511', 'tblTempUsageDetail_20' ) start [2025-02-28 02:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573511', 'tblTempUsageDetail_20' ) end [2025-02-28 02:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:52:21] Production.INFO: ==931== Releasing lock... [2025-02-28 02:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:53:06 [end_date_ymd] => 2025-02-28 02:53:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:53:06' and `end` < '2025-02-28 02: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-02-28 02:53:17] Production.INFO: count ==394 [2025-02-28 02:53:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:53:06 - End Time 2025-02-28 02:53:06 [2025-02-28 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573516', 'tblTempUsageDetail_20' ) start [2025-02-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573516', 'tblTempUsageDetail_20' ) end [2025-02-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573516', 'tblTempVendorCDR_20' ) start [2025-02-28 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573516', 'tblTempVendorCDR_20' ) end [2025-02-28 02:53:18] Production.INFO: ProcessCDR(1,14573516,1,1,2) [2025-02-28 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573516', 'tblTempUsageDetail_20' ) start [2025-02-28 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573516', 'tblTempUsageDetail_20' ) end [2025-02-28 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:53:21] Production.INFO: ==1004== Releasing lock... [2025-02-28 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:54:05 [end_date_ymd] => 2025-02-28 02:54:05 [RateCDR] => 1 ) [2025-02-28 02:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:54:05' and `end` < '2025-02-28 02:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:54:17] Production.INFO: count ==394 [2025-02-28 02:54:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:54:05 - End Time 2025-02-28 02:54:05 [2025-02-28 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573521', 'tblTempUsageDetail_20' ) start [2025-02-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573521', 'tblTempUsageDetail_20' ) end [2025-02-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573521', 'tblTempVendorCDR_20' ) start [2025-02-28 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573521', 'tblTempVendorCDR_20' ) end [2025-02-28 02:54:17] Production.INFO: ProcessCDR(1,14573521,1,1,2) [2025-02-28 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573521', 'tblTempUsageDetail_20' ) start [2025-02-28 02:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573521', 'tblTempUsageDetail_20' ) end [2025-02-28 02:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:54:21] Production.INFO: ==1076== Releasing lock... [2025-02-28 02:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:55:05 [end_date_ymd] => 2025-02-28 02:55:05 [RateCDR] => 1 ) [2025-02-28 02:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:55:05' and `end` < '2025-02-28 02:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:55:17] Production.INFO: count ==394 [2025-02-28 02:55:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:55:05 - End Time 2025-02-28 02:55:05 [2025-02-28 02:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573526', 'tblTempUsageDetail_20' ) start [2025-02-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573526', 'tblTempUsageDetail_20' ) end [2025-02-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573526', 'tblTempVendorCDR_20' ) start [2025-02-28 02:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573526', 'tblTempVendorCDR_20' ) end [2025-02-28 02:55:17] Production.INFO: ProcessCDR(1,14573526,1,1,2) [2025-02-28 02:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573526', 'tblTempUsageDetail_20' ) start [2025-02-28 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573526', 'tblTempUsageDetail_20' ) end [2025-02-28 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:55:21] Production.INFO: ==1149== Releasing lock... [2025-02-28 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:56:05 [end_date_ymd] => 2025-02-28 02:56:05 [RateCDR] => 1 ) [2025-02-28 02:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:56:05' and `end` < '2025-02-28 02:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:56:17] Production.INFO: count ==394 [2025-02-28 02:56:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:56:05 - End Time 2025-02-28 02:56:05 [2025-02-28 02:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573531', 'tblTempUsageDetail_20' ) start [2025-02-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573531', 'tblTempUsageDetail_20' ) end [2025-02-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573531', 'tblTempVendorCDR_20' ) start [2025-02-28 02:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573531', 'tblTempVendorCDR_20' ) end [2025-02-28 02:56:17] Production.INFO: ProcessCDR(1,14573531,1,1,2) [2025-02-28 02:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573531', 'tblTempUsageDetail_20' ) start [2025-02-28 02:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573531', 'tblTempUsageDetail_20' ) end [2025-02-28 02:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:56:21] Production.INFO: ==1225== Releasing lock... [2025-02-28 02:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:57:05 [end_date_ymd] => 2025-02-28 02:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-27 23:57:05' and `end` < '2025-02-28 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-02-28 02:57:17] Production.INFO: count ==394 [2025-02-28 02:57:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:57:05 - End Time 2025-02-28 02:57:05 [2025-02-28 02:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573536', 'tblTempUsageDetail_20' ) start [2025-02-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573536', 'tblTempUsageDetail_20' ) end [2025-02-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573536', 'tblTempVendorCDR_20' ) start [2025-02-28 02:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573536', 'tblTempVendorCDR_20' ) end [2025-02-28 02:57:17] Production.INFO: ProcessCDR(1,14573536,1,1,2) [2025-02-28 02:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573536', 'tblTempUsageDetail_20' ) start [2025-02-28 02:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573536', 'tblTempUsageDetail_20' ) end [2025-02-28 02:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:57:20] Production.INFO: ==1309== Releasing lock... [2025-02-28 02:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:57:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:58:05 [end_date_ymd] => 2025-02-28 02:58:05 [RateCDR] => 1 ) [2025-02-28 02:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-27 23:58:05' and `end` < '2025-02-28 02:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 02:58:17] Production.INFO: count ==393 [2025-02-28 02:58:17] Production.ERROR: pbx CDR StartTime 2025-02-27 23:58:05 - End Time 2025-02-28 02:58:05 [2025-02-28 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573541', 'tblTempUsageDetail_20' ) start [2025-02-28 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573541', 'tblTempUsageDetail_20' ) end [2025-02-28 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573541', 'tblTempVendorCDR_20' ) start [2025-02-28 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573541', 'tblTempVendorCDR_20' ) end [2025-02-28 02:58:17] Production.INFO: ProcessCDR(1,14573541,1,1,2) [2025-02-28 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573541', 'tblTempUsageDetail_20' ) start [2025-02-28 02:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573541', 'tblTempUsageDetail_20' ) end [2025-02-28 02:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:58:20] Production.INFO: ==1378== Releasing lock... [2025-02-28 02:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:58:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-27 23:59:06 [end_date_ymd] => 2025-02-28 02:59:06 [RateCDR] => 1 ) [2025-02-28 02: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-02-27 23:59:06' and `end` < '2025-02-28 02: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-02-28 02:59:17] Production.INFO: count ==393 [2025-02-28 02:59:18] Production.ERROR: pbx CDR StartTime 2025-02-27 23:59:06 - End Time 2025-02-28 02:59:06 [2025-02-28 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573546', 'tblTempUsageDetail_20' ) start [2025-02-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573546', 'tblTempUsageDetail_20' ) end [2025-02-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573546', 'tblTempVendorCDR_20' ) start [2025-02-28 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573546', 'tblTempVendorCDR_20' ) end [2025-02-28 02:59:18] Production.INFO: ProcessCDR(1,14573546,1,1,2) [2025-02-28 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573546', 'tblTempUsageDetail_20' ) start [2025-02-28 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573546', 'tblTempUsageDetail_20' ) end [2025-02-28 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 02:59:21] Production.INFO: ==1454== Releasing lock... [2025-02-28 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 02:59:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:00:06 [end_date_ymd] => 2025-02-28 03:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:00:06' and `end` < '2025-02-28 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-02-28 03:00:18] Production.INFO: count ==399 [2025-02-28 03:00:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:00:06 - End Time 2025-02-28 03:00:06 [2025-02-28 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573552', 'tblTempUsageDetail_20' ) start [2025-02-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573552', 'tblTempUsageDetail_20' ) end [2025-02-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573552', 'tblTempVendorCDR_20' ) start [2025-02-28 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573552', 'tblTempVendorCDR_20' ) end [2025-02-28 03:00:18] Production.INFO: ProcessCDR(1,14573552,1,1,2) [2025-02-28 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573552', 'tblTempUsageDetail_20' ) start [2025-02-28 03:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573552', 'tblTempUsageDetail_20' ) end [2025-02-28 03:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:00:22] Production.INFO: ==1584== Releasing lock... [2025-02-28 03:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:00:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:01:06 [end_date_ymd] => 2025-02-28 03:01:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:01:06' and `end` < '2025-02-28 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-02-28 03:01:18] Production.INFO: count ==399 [2025-02-28 03:01:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:01:06 - End Time 2025-02-28 03:01:06 [2025-02-28 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573557', 'tblTempUsageDetail_20' ) start [2025-02-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573557', 'tblTempUsageDetail_20' ) end [2025-02-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573557', 'tblTempVendorCDR_20' ) start [2025-02-28 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573557', 'tblTempVendorCDR_20' ) end [2025-02-28 03:01:18] Production.INFO: ProcessCDR(1,14573557,1,1,2) [2025-02-28 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573557', 'tblTempUsageDetail_20' ) start [2025-02-28 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573557', 'tblTempUsageDetail_20' ) end [2025-02-28 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:01:21] Production.INFO: ==1720== Releasing lock... [2025-02-28 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:02:05 [end_date_ymd] => 2025-02-28 03:02:05 [RateCDR] => 1 ) [2025-02-28 03:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 00:02:05' and `end` < '2025-02-28 03:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 03:02:17] Production.INFO: count ==399 [2025-02-28 03:02:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:02:05 - End Time 2025-02-28 03:02:05 [2025-02-28 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573562', 'tblTempUsageDetail_20' ) start [2025-02-28 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573562', 'tblTempUsageDetail_20' ) end [2025-02-28 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573562', 'tblTempVendorCDR_20' ) start [2025-02-28 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573562', 'tblTempVendorCDR_20' ) end [2025-02-28 03:02:17] Production.INFO: ProcessCDR(1,14573562,1,1,2) [2025-02-28 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573562', 'tblTempUsageDetail_20' ) start [2025-02-28 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573562', 'tblTempUsageDetail_20' ) end [2025-02-28 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:02:21] Production.INFO: ==1875== Releasing lock... [2025-02-28 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:03:05 [end_date_ymd] => 2025-02-28 03:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:03:05' and `end` < '2025-02-28 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-02-28 03:03:17] Production.INFO: count ==399 [2025-02-28 03:03:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:03:05 - End Time 2025-02-28 03:03:05 [2025-02-28 03:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573567', 'tblTempUsageDetail_20' ) start [2025-02-28 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573567', 'tblTempUsageDetail_20' ) end [2025-02-28 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573567', 'tblTempVendorCDR_20' ) start [2025-02-28 03:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573567', 'tblTempVendorCDR_20' ) end [2025-02-28 03:03:17] Production.INFO: ProcessCDR(1,14573567,1,1,2) [2025-02-28 03:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573567', 'tblTempUsageDetail_20' ) start [2025-02-28 03:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573567', 'tblTempUsageDetail_20' ) end [2025-02-28 03:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:03:20] Production.INFO: ==1949== Releasing lock... [2025-02-28 03:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:03:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:04:05 [end_date_ymd] => 2025-02-28 03:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:04:05' and `end` < '2025-02-28 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-02-28 03:04:17] Production.INFO: count ==397 [2025-02-28 03:04:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:04:05 - End Time 2025-02-28 03:04:05 [2025-02-28 03:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573572', 'tblTempUsageDetail_20' ) start [2025-02-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573572', 'tblTempUsageDetail_20' ) end [2025-02-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573572', 'tblTempVendorCDR_20' ) start [2025-02-28 03:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573572', 'tblTempVendorCDR_20' ) end [2025-02-28 03:04:17] Production.INFO: ProcessCDR(1,14573572,1,1,2) [2025-02-28 03:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573572', 'tblTempUsageDetail_20' ) start [2025-02-28 03:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573572', 'tblTempUsageDetail_20' ) end [2025-02-28 03:04:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:04:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:04:20] Production.INFO: ==2024== Releasing lock... [2025-02-28 03:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:04:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:05:06 [end_date_ymd] => 2025-02-28 03:05:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:05:06' and `end` < '2025-02-28 03: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-02-28 03:05:18] Production.INFO: count ==396 [2025-02-28 03:05:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:05:06 - End Time 2025-02-28 03:05:06 [2025-02-28 03:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573577', 'tblTempUsageDetail_20' ) start [2025-02-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573577', 'tblTempUsageDetail_20' ) end [2025-02-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573577', 'tblTempVendorCDR_20' ) start [2025-02-28 03:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573577', 'tblTempVendorCDR_20' ) end [2025-02-28 03:05:18] Production.INFO: ProcessCDR(1,14573577,1,1,2) [2025-02-28 03:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573577', 'tblTempUsageDetail_20' ) start [2025-02-28 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573577', 'tblTempUsageDetail_20' ) end [2025-02-28 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:05:21] Production.INFO: ==2096== Releasing lock... [2025-02-28 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:06:05 [end_date_ymd] => 2025-02-28 03:06:05 [RateCDR] => 1 ) [2025-02-28 03:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 00:06:05' and `end` < '2025-02-28 03:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 03:06:17] Production.INFO: count ==396 [2025-02-28 03:06:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:06:05 - End Time 2025-02-28 03:06:05 [2025-02-28 03:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573582', 'tblTempUsageDetail_20' ) start [2025-02-28 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573582', 'tblTempUsageDetail_20' ) end [2025-02-28 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573582', 'tblTempVendorCDR_20' ) start [2025-02-28 03:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573582', 'tblTempVendorCDR_20' ) end [2025-02-28 03:06:17] Production.INFO: ProcessCDR(1,14573582,1,1,2) [2025-02-28 03:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573582', 'tblTempUsageDetail_20' ) start [2025-02-28 03:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573582', 'tblTempUsageDetail_20' ) end [2025-02-28 03:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:06:20] Production.INFO: ==2241== Releasing lock... [2025-02-28 03:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:07:06 [end_date_ymd] => 2025-02-28 03:07:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:07:06' and `end` < '2025-02-28 03: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-02-28 03:07:18] Production.INFO: count ==396 [2025-02-28 03:07:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:07:06 - End Time 2025-02-28 03:07:06 [2025-02-28 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573587', 'tblTempUsageDetail_20' ) start [2025-02-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573587', 'tblTempUsageDetail_20' ) end [2025-02-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573587', 'tblTempVendorCDR_20' ) start [2025-02-28 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573587', 'tblTempVendorCDR_20' ) end [2025-02-28 03:07:18] Production.INFO: ProcessCDR(1,14573587,1,1,2) [2025-02-28 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573587', 'tblTempUsageDetail_20' ) start [2025-02-28 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573587', 'tblTempUsageDetail_20' ) end [2025-02-28 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:07:21] Production.INFO: ==2310== Releasing lock... [2025-02-28 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:08:05 [end_date_ymd] => 2025-02-28 03:08:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:08:05' and `end` < '2025-02-28 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-02-28 03:08:16] Production.INFO: count ==396 [2025-02-28 03:08:16] Production.ERROR: pbx CDR StartTime 2025-02-28 00:08:05 - End Time 2025-02-28 03:08:05 [2025-02-28 03:08:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573592', 'tblTempUsageDetail_20' ) start [2025-02-28 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573592', 'tblTempUsageDetail_20' ) end [2025-02-28 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573592', 'tblTempVendorCDR_20' ) start [2025-02-28 03:08:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573592', 'tblTempVendorCDR_20' ) end [2025-02-28 03:08:16] Production.INFO: ProcessCDR(1,14573592,1,1,2) [2025-02-28 03:08:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573592', 'tblTempUsageDetail_20' ) start [2025-02-28 03:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573592', 'tblTempUsageDetail_20' ) end [2025-02-28 03:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:08:20] Production.INFO: ==2379== Releasing lock... [2025-02-28 03:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:08:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:09:06 [end_date_ymd] => 2025-02-28 03:09:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:09:06' and `end` < '2025-02-28 03: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-02-28 03:09:17] Production.INFO: count ==396 [2025-02-28 03:09:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:09:06 - End Time 2025-02-28 03:09:06 [2025-02-28 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573597', 'tblTempUsageDetail_20' ) start [2025-02-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573597', 'tblTempUsageDetail_20' ) end [2025-02-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573597', 'tblTempVendorCDR_20' ) start [2025-02-28 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573597', 'tblTempVendorCDR_20' ) end [2025-02-28 03:09:17] Production.INFO: ProcessCDR(1,14573597,1,1,2) [2025-02-28 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573597', 'tblTempUsageDetail_20' ) start [2025-02-28 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573597', 'tblTempUsageDetail_20' ) end [2025-02-28 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:09:21] Production.INFO: ==2526== Releasing lock... [2025-02-28 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:10:06 [end_date_ymd] => 2025-02-28 03:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:10:06' and `end` < '2025-02-28 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-02-28 03:10:17] Production.INFO: count ==393 [2025-02-28 03:10:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:10:06 - End Time 2025-02-28 03:10:06 [2025-02-28 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573603', 'tblTempUsageDetail_20' ) start [2025-02-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573603', 'tblTempUsageDetail_20' ) end [2025-02-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573603', 'tblTempVendorCDR_20' ) start [2025-02-28 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573603', 'tblTempVendorCDR_20' ) end [2025-02-28 03:10:18] Production.INFO: ProcessCDR(1,14573603,1,1,2) [2025-02-28 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573603', 'tblTempUsageDetail_20' ) start [2025-02-28 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573603', 'tblTempUsageDetail_20' ) end [2025-02-28 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:10:21] Production.INFO: ==2599== Releasing lock... [2025-02-28 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:10:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:11:05 [end_date_ymd] => 2025-02-28 03:11:05 [RateCDR] => 1 ) [2025-02-28 03:11:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 00:11:05' and `end` < '2025-02-28 03:11:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 03:11:17] Production.INFO: count ==389 [2025-02-28 03:11:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:11:05 - End Time 2025-02-28 03:11:05 [2025-02-28 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573608', 'tblTempUsageDetail_20' ) start [2025-02-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573608', 'tblTempUsageDetail_20' ) end [2025-02-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573608', 'tblTempVendorCDR_20' ) start [2025-02-28 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573608', 'tblTempVendorCDR_20' ) end [2025-02-28 03:11:17] Production.INFO: ProcessCDR(1,14573608,1,1,2) [2025-02-28 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573608', 'tblTempUsageDetail_20' ) start [2025-02-28 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573608', 'tblTempUsageDetail_20' ) end [2025-02-28 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:11:20] Production.INFO: ==2672== Releasing lock... [2025-02-28 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:11:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:12:05 [end_date_ymd] => 2025-02-28 03:12:05 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:12:05' and `end` < '2025-02-28 03: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-02-28 03:12:17] Production.INFO: count ==389 [2025-02-28 03:12:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:12:05 - End Time 2025-02-28 03:12:05 [2025-02-28 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573613', 'tblTempUsageDetail_20' ) start [2025-02-28 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573613', 'tblTempUsageDetail_20' ) end [2025-02-28 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573613', 'tblTempVendorCDR_20' ) start [2025-02-28 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573613', 'tblTempVendorCDR_20' ) end [2025-02-28 03:12:17] Production.INFO: ProcessCDR(1,14573613,1,1,2) [2025-02-28 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573613', 'tblTempUsageDetail_20' ) start [2025-02-28 03:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573613', 'tblTempUsageDetail_20' ) end [2025-02-28 03:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:12:20] Production.INFO: ==2739== Releasing lock... [2025-02-28 03:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:12:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:13:06 [end_date_ymd] => 2025-02-28 03:13:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:13:06' and `end` < '2025-02-28 03: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-02-28 03:13:18] Production.INFO: count ==387 [2025-02-28 03:13:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:13:06 - End Time 2025-02-28 03:13:06 [2025-02-28 03:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573618', 'tblTempUsageDetail_20' ) start [2025-02-28 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573618', 'tblTempUsageDetail_20' ) end [2025-02-28 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573618', 'tblTempVendorCDR_20' ) start [2025-02-28 03:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573618', 'tblTempVendorCDR_20' ) end [2025-02-28 03:13:18] Production.INFO: ProcessCDR(1,14573618,1,1,2) [2025-02-28 03:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573618', 'tblTempUsageDetail_20' ) start [2025-02-28 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573618', 'tblTempUsageDetail_20' ) end [2025-02-28 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:13:22] Production.INFO: ==2886== Releasing lock... [2025-02-28 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:13:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:14:05 [end_date_ymd] => 2025-02-28 03:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:14:05' and `end` < '2025-02-28 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-02-28 03:14:17] Production.INFO: count ==384 [2025-02-28 03:14:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:14:05 - End Time 2025-02-28 03:14:05 [2025-02-28 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573623', 'tblTempUsageDetail_20' ) start [2025-02-28 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573623', 'tblTempUsageDetail_20' ) end [2025-02-28 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573623', 'tblTempVendorCDR_20' ) start [2025-02-28 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573623', 'tblTempVendorCDR_20' ) end [2025-02-28 03:14:17] Production.INFO: ProcessCDR(1,14573623,1,1,2) [2025-02-28 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573623', 'tblTempUsageDetail_20' ) start [2025-02-28 03:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573623', 'tblTempUsageDetail_20' ) end [2025-02-28 03:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:14:20] Production.INFO: ==2959== Releasing lock... [2025-02-28 03:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:14:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:15:05 [end_date_ymd] => 2025-02-28 03:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:15:05' and `end` < '2025-02-28 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-02-28 03:15:17] Production.INFO: count ==386 [2025-02-28 03:15:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:15:05 - End Time 2025-02-28 03:15:05 [2025-02-28 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573628', 'tblTempUsageDetail_20' ) start [2025-02-28 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573628', 'tblTempUsageDetail_20' ) end [2025-02-28 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573628', 'tblTempVendorCDR_20' ) start [2025-02-28 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573628', 'tblTempVendorCDR_20' ) end [2025-02-28 03:15:17] Production.INFO: ProcessCDR(1,14573628,1,1,2) [2025-02-28 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573628', 'tblTempUsageDetail_20' ) start [2025-02-28 03:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573628', 'tblTempUsageDetail_20' ) end [2025-02-28 03:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:15:22] Production.INFO: ==3029== Releasing lock... [2025-02-28 03:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:16:05 [end_date_ymd] => 2025-02-28 03:16:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:16:05' and `end` < '2025-02-28 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-02-28 03:16:17] Production.INFO: count ==385 [2025-02-28 03:16:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:16:05 - End Time 2025-02-28 03:16:05 [2025-02-28 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573633', 'tblTempUsageDetail_20' ) start [2025-02-28 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573633', 'tblTempUsageDetail_20' ) end [2025-02-28 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573633', 'tblTempVendorCDR_20' ) start [2025-02-28 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573633', 'tblTempVendorCDR_20' ) end [2025-02-28 03:16:17] Production.INFO: ProcessCDR(1,14573633,1,1,2) [2025-02-28 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573633', 'tblTempUsageDetail_20' ) start [2025-02-28 03:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573633', 'tblTempUsageDetail_20' ) end [2025-02-28 03:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:16:20] Production.INFO: ==3101== Releasing lock... [2025-02-28 03:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:17:06 [end_date_ymd] => 2025-02-28 03:17:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:17:06' and `end` < '2025-02-28 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-02-28 03:17:17] Production.INFO: count ==385 [2025-02-28 03:17:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:17:06 - End Time 2025-02-28 03:17:06 [2025-02-28 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573638', 'tblTempUsageDetail_20' ) start [2025-02-28 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573638', 'tblTempUsageDetail_20' ) end [2025-02-28 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573638', 'tblTempVendorCDR_20' ) start [2025-02-28 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573638', 'tblTempVendorCDR_20' ) end [2025-02-28 03:17:17] Production.INFO: ProcessCDR(1,14573638,1,1,2) [2025-02-28 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573638', 'tblTempUsageDetail_20' ) start [2025-02-28 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573638', 'tblTempUsageDetail_20' ) end [2025-02-28 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:17:21] Production.INFO: ==3250== Releasing lock... [2025-02-28 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:18:06 [end_date_ymd] => 2025-02-28 03:18:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:18:06' and `end` < '2025-02-28 03: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-02-28 03:18:18] Production.INFO: count ==385 [2025-02-28 03:18:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:18:06 - End Time 2025-02-28 03:18:06 [2025-02-28 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573643', 'tblTempUsageDetail_20' ) start [2025-02-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573643', 'tblTempUsageDetail_20' ) end [2025-02-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573643', 'tblTempVendorCDR_20' ) start [2025-02-28 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573643', 'tblTempVendorCDR_20' ) end [2025-02-28 03:18:18] Production.INFO: ProcessCDR(1,14573643,1,1,2) [2025-02-28 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573643', 'tblTempUsageDetail_20' ) start [2025-02-28 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573643', 'tblTempUsageDetail_20' ) end [2025-02-28 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:18:21] Production.INFO: ==3359== Releasing lock... [2025-02-28 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:18:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:19:05 [end_date_ymd] => 2025-02-28 03:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:19:05' and `end` < '2025-02-28 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-02-28 03:19:17] Production.INFO: count ==385 [2025-02-28 03:19:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:19:05 - End Time 2025-02-28 03:19:05 [2025-02-28 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573648', 'tblTempUsageDetail_20' ) start [2025-02-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573648', 'tblTempUsageDetail_20' ) end [2025-02-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573648', 'tblTempVendorCDR_20' ) start [2025-02-28 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573648', 'tblTempVendorCDR_20' ) end [2025-02-28 03:19:17] Production.INFO: ProcessCDR(1,14573648,1,1,2) [2025-02-28 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573648', 'tblTempUsageDetail_20' ) start [2025-02-28 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573648', 'tblTempUsageDetail_20' ) end [2025-02-28 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:19:20] Production.INFO: ==3428== Releasing lock... [2025-02-28 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:19:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:20:06 [end_date_ymd] => 2025-02-28 03:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:20:06' and `end` < '2025-02-28 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-02-28 03:20:18] Production.INFO: count ==381 [2025-02-28 03:20:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:20:06 - End Time 2025-02-28 03:20:06 [2025-02-28 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573654', 'tblTempUsageDetail_20' ) start [2025-02-28 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573654', 'tblTempUsageDetail_20' ) end [2025-02-28 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573654', 'tblTempVendorCDR_20' ) start [2025-02-28 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573654', 'tblTempVendorCDR_20' ) end [2025-02-28 03:20:18] Production.INFO: ProcessCDR(1,14573654,1,1,2) [2025-02-28 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573654', 'tblTempUsageDetail_20' ) start [2025-02-28 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573654', 'tblTempUsageDetail_20' ) end [2025-02-28 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:20:22] Production.INFO: ==3505== Releasing lock... [2025-02-28 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:21:05 [end_date_ymd] => 2025-02-28 03:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:21:05' and `end` < '2025-02-28 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-02-28 03:21:17] Production.INFO: count ==371 [2025-02-28 03:21:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:21:05 - End Time 2025-02-28 03:21:05 [2025-02-28 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573659', 'tblTempUsageDetail_20' ) start [2025-02-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573659', 'tblTempUsageDetail_20' ) end [2025-02-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573659', 'tblTempVendorCDR_20' ) start [2025-02-28 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573659', 'tblTempVendorCDR_20' ) end [2025-02-28 03:21:17] Production.INFO: ProcessCDR(1,14573659,1,1,2) [2025-02-28 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573659', 'tblTempUsageDetail_20' ) start [2025-02-28 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573659', 'tblTempUsageDetail_20' ) end [2025-02-28 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:21:20] Production.INFO: ==3575== Releasing lock... [2025-02-28 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:21:20] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:22:06 [end_date_ymd] => 2025-02-28 03:22:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:22:06' and `end` < '2025-02-28 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-02-28 03:22:18] Production.INFO: count ==367 [2025-02-28 03:22:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:22:06 - End Time 2025-02-28 03:22:06 [2025-02-28 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573664', 'tblTempUsageDetail_20' ) start [2025-02-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573664', 'tblTempUsageDetail_20' ) end [2025-02-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573664', 'tblTempVendorCDR_20' ) start [2025-02-28 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573664', 'tblTempVendorCDR_20' ) end [2025-02-28 03:22:18] Production.INFO: ProcessCDR(1,14573664,1,1,2) [2025-02-28 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573664', 'tblTempUsageDetail_20' ) start [2025-02-28 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573664', 'tblTempUsageDetail_20' ) end [2025-02-28 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:22:21] Production.INFO: ==3647== Releasing lock... [2025-02-28 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:23:05 [end_date_ymd] => 2025-02-28 03:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:23:05' and `end` < '2025-02-28 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-02-28 03:23:17] Production.INFO: count ==366 [2025-02-28 03:23:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:23:05 - End Time 2025-02-28 03:23:05 [2025-02-28 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573669', 'tblTempUsageDetail_20' ) start [2025-02-28 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573669', 'tblTempUsageDetail_20' ) end [2025-02-28 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573669', 'tblTempVendorCDR_20' ) start [2025-02-28 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573669', 'tblTempVendorCDR_20' ) end [2025-02-28 03:23:17] Production.INFO: ProcessCDR(1,14573669,1,1,2) [2025-02-28 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573669', 'tblTempUsageDetail_20' ) start [2025-02-28 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573669', 'tblTempUsageDetail_20' ) end [2025-02-28 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:23:20] Production.INFO: ==3717== Releasing lock... [2025-02-28 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:23:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:24:05 [end_date_ymd] => 2025-02-28 03:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:24:05' and `end` < '2025-02-28 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-02-28 03:24:17] Production.INFO: count ==365 [2025-02-28 03:24:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:24:05 - End Time 2025-02-28 03:24:05 [2025-02-28 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573674', 'tblTempUsageDetail_20' ) start [2025-02-28 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573674', 'tblTempUsageDetail_20' ) end [2025-02-28 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573674', 'tblTempVendorCDR_20' ) start [2025-02-28 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573674', 'tblTempVendorCDR_20' ) end [2025-02-28 03:24:17] Production.INFO: ProcessCDR(1,14573674,1,1,2) [2025-02-28 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573674', 'tblTempUsageDetail_20' ) start [2025-02-28 03:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573674', 'tblTempUsageDetail_20' ) end [2025-02-28 03:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:24:21] Production.INFO: ==3785== Releasing lock... [2025-02-28 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:24:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:25:05 [end_date_ymd] => 2025-02-28 03:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:25:05' and `end` < '2025-02-28 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-02-28 03:25:17] Production.INFO: count ==365 [2025-02-28 03:25:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:25:05 - End Time 2025-02-28 03:25:05 [2025-02-28 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573679', 'tblTempUsageDetail_20' ) start [2025-02-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573679', 'tblTempUsageDetail_20' ) end [2025-02-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573679', 'tblTempVendorCDR_20' ) start [2025-02-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573679', 'tblTempVendorCDR_20' ) end [2025-02-28 03:25:17] Production.INFO: ProcessCDR(1,14573679,1,1,2) [2025-02-28 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573679', 'tblTempUsageDetail_20' ) start [2025-02-28 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573679', 'tblTempUsageDetail_20' ) end [2025-02-28 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:25:20] Production.INFO: ==3853== Releasing lock... [2025-02-28 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:26:06 [end_date_ymd] => 2025-02-28 03:26:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:26:06' and `end` < '2025-02-28 03: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-02-28 03:26:18] Production.INFO: count ==365 [2025-02-28 03:26:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:26:06 - End Time 2025-02-28 03:26:06 [2025-02-28 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573684', 'tblTempUsageDetail_20' ) start [2025-02-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573684', 'tblTempUsageDetail_20' ) end [2025-02-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573684', 'tblTempVendorCDR_20' ) start [2025-02-28 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573684', 'tblTempVendorCDR_20' ) end [2025-02-28 03:26:18] Production.INFO: ProcessCDR(1,14573684,1,1,2) [2025-02-28 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573684', 'tblTempUsageDetail_20' ) start [2025-02-28 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573684', 'tblTempUsageDetail_20' ) end [2025-02-28 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:26:21] Production.INFO: ==3926== Releasing lock... [2025-02-28 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:27:05 [end_date_ymd] => 2025-02-28 03:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:27:05' and `end` < '2025-02-28 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-02-28 03:27:17] Production.INFO: count ==365 [2025-02-28 03:27:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:27:05 - End Time 2025-02-28 03:27:05 [2025-02-28 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573689', 'tblTempUsageDetail_20' ) start [2025-02-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573689', 'tblTempUsageDetail_20' ) end [2025-02-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573689', 'tblTempVendorCDR_20' ) start [2025-02-28 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573689', 'tblTempVendorCDR_20' ) end [2025-02-28 03:27:17] Production.INFO: ProcessCDR(1,14573689,1,1,2) [2025-02-28 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573689', 'tblTempUsageDetail_20' ) start [2025-02-28 03:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573689', 'tblTempUsageDetail_20' ) end [2025-02-28 03:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:27:20] Production.INFO: ==4000== Releasing lock... [2025-02-28 03:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:27:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:28:05 [end_date_ymd] => 2025-02-28 03:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:28:05' and `end` < '2025-02-28 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-02-28 03:28:17] Production.INFO: count ==365 [2025-02-28 03:28:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:28:05 - End Time 2025-02-28 03:28:05 [2025-02-28 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573694', 'tblTempUsageDetail_20' ) start [2025-02-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573694', 'tblTempUsageDetail_20' ) end [2025-02-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573694', 'tblTempVendorCDR_20' ) start [2025-02-28 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573694', 'tblTempVendorCDR_20' ) end [2025-02-28 03:28:17] Production.INFO: ProcessCDR(1,14573694,1,1,2) [2025-02-28 03:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573694', 'tblTempUsageDetail_20' ) start [2025-02-28 03:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573694', 'tblTempUsageDetail_20' ) end [2025-02-28 03:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:28:20] Production.INFO: ==4069== Releasing lock... [2025-02-28 03:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:28:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:29:06 [end_date_ymd] => 2025-02-28 03:29:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:29:06' and `end` < '2025-02-28 03: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-02-28 03:29:18] Production.INFO: count ==365 [2025-02-28 03:29:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:29:06 - End Time 2025-02-28 03:29:06 [2025-02-28 03:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573699', 'tblTempUsageDetail_20' ) start [2025-02-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573699', 'tblTempUsageDetail_20' ) end [2025-02-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573699', 'tblTempVendorCDR_20' ) start [2025-02-28 03:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573699', 'tblTempVendorCDR_20' ) end [2025-02-28 03:29:18] Production.INFO: ProcessCDR(1,14573699,1,1,2) [2025-02-28 03:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573699', 'tblTempUsageDetail_20' ) start [2025-02-28 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573699', 'tblTempUsageDetail_20' ) end [2025-02-28 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:29:21] Production.INFO: ==4142== Releasing lock... [2025-02-28 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:30:06 [end_date_ymd] => 2025-02-28 03:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:30:06' and `end` < '2025-02-28 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-02-28 03:30:18] Production.INFO: count ==361 [2025-02-28 03:30:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:30:06 - End Time 2025-02-28 03:30:06 [2025-02-28 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573705', 'tblTempUsageDetail_20' ) start [2025-02-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573705', 'tblTempUsageDetail_20' ) end [2025-02-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573705', 'tblTempVendorCDR_20' ) start [2025-02-28 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573705', 'tblTempVendorCDR_20' ) end [2025-02-28 03:30:18] Production.INFO: ProcessCDR(1,14573705,1,1,2) [2025-02-28 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573705', 'tblTempUsageDetail_20' ) start [2025-02-28 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573705', 'tblTempUsageDetail_20' ) end [2025-02-28 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:30:22] Production.INFO: ==4213== Releasing lock... [2025-02-28 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:30:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 03:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:31:06 [end_date_ymd] => 2025-02-28 03:31:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:31:06' and `end` < '2025-02-28 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-02-28 03:31:18] Production.INFO: count ==341 [2025-02-28 03:31:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:31:06 - End Time 2025-02-28 03:31:06 [2025-02-28 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573710', 'tblTempUsageDetail_20' ) start [2025-02-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573710', 'tblTempUsageDetail_20' ) end [2025-02-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573710', 'tblTempVendorCDR_20' ) start [2025-02-28 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573710', 'tblTempVendorCDR_20' ) end [2025-02-28 03:31:18] Production.INFO: ProcessCDR(1,14573710,1,1,2) [2025-02-28 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573710', 'tblTempUsageDetail_20' ) start [2025-02-28 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573710', 'tblTempUsageDetail_20' ) end [2025-02-28 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:31:21] Production.INFO: ==4283== Releasing lock... [2025-02-28 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:31:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:32:05 [end_date_ymd] => 2025-02-28 03:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:32:05' and `end` < '2025-02-28 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-02-28 03:32:17] Production.INFO: count ==339 [2025-02-28 03:32:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:32:05 - End Time 2025-02-28 03:32:05 [2025-02-28 03:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573715', 'tblTempUsageDetail_20' ) start [2025-02-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573715', 'tblTempUsageDetail_20' ) end [2025-02-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573715', 'tblTempVendorCDR_20' ) start [2025-02-28 03:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573715', 'tblTempVendorCDR_20' ) end [2025-02-28 03:32:17] Production.INFO: ProcessCDR(1,14573715,1,1,2) [2025-02-28 03:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573715', 'tblTempUsageDetail_20' ) start [2025-02-28 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573715', 'tblTempUsageDetail_20' ) end [2025-02-28 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:32:21] Production.INFO: ==4353== Releasing lock... [2025-02-28 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:33:06 [end_date_ymd] => 2025-02-28 03:33:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:33:06' and `end` < '2025-02-28 03: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-02-28 03:33:18] Production.INFO: count ==336 [2025-02-28 03:33:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:33:06 - End Time 2025-02-28 03:33:06 [2025-02-28 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573720', 'tblTempUsageDetail_20' ) start [2025-02-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573720', 'tblTempUsageDetail_20' ) end [2025-02-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573720', 'tblTempVendorCDR_20' ) start [2025-02-28 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573720', 'tblTempVendorCDR_20' ) end [2025-02-28 03:33:18] Production.INFO: ProcessCDR(1,14573720,1,1,2) [2025-02-28 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573720', 'tblTempUsageDetail_20' ) start [2025-02-28 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573720', 'tblTempUsageDetail_20' ) end [2025-02-28 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:33:21] Production.INFO: ==4461== Releasing lock... [2025-02-28 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:33:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:34:05 [end_date_ymd] => 2025-02-28 03:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:34:05' and `end` < '2025-02-28 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-02-28 03:34:17] Production.INFO: count ==333 [2025-02-28 03:34:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:34:05 - End Time 2025-02-28 03:34:05 [2025-02-28 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573725', 'tblTempUsageDetail_20' ) start [2025-02-28 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573725', 'tblTempUsageDetail_20' ) end [2025-02-28 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573725', 'tblTempVendorCDR_20' ) start [2025-02-28 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573725', 'tblTempVendorCDR_20' ) end [2025-02-28 03:34:17] Production.INFO: ProcessCDR(1,14573725,1,1,2) [2025-02-28 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573725', 'tblTempUsageDetail_20' ) start [2025-02-28 03:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573725', 'tblTempUsageDetail_20' ) end [2025-02-28 03:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:34:21] Production.INFO: ==4530== Releasing lock... [2025-02-28 03:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:34:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:35:06 [end_date_ymd] => 2025-02-28 03:35:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:35:06' and `end` < '2025-02-28 03: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-02-28 03:35:18] Production.INFO: count ==332 [2025-02-28 03:35:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:35:06 - End Time 2025-02-28 03:35:06 [2025-02-28 03:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573730', 'tblTempUsageDetail_20' ) start [2025-02-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573730', 'tblTempUsageDetail_20' ) end [2025-02-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573730', 'tblTempVendorCDR_20' ) start [2025-02-28 03:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573730', 'tblTempVendorCDR_20' ) end [2025-02-28 03:35:18] Production.INFO: ProcessCDR(1,14573730,1,1,2) [2025-02-28 03:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573730', 'tblTempUsageDetail_20' ) start [2025-02-28 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573730', 'tblTempUsageDetail_20' ) end [2025-02-28 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:35:21] Production.INFO: ==4608== Releasing lock... [2025-02-28 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:35:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:36:06 [end_date_ymd] => 2025-02-28 03:36:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:36:06' and `end` < '2025-02-28 03: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-02-28 03:36:18] Production.INFO: count ==330 [2025-02-28 03:36:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:36:06 - End Time 2025-02-28 03:36:06 [2025-02-28 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573735', 'tblTempUsageDetail_20' ) start [2025-02-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573735', 'tblTempUsageDetail_20' ) end [2025-02-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573735', 'tblTempVendorCDR_20' ) start [2025-02-28 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573735', 'tblTempVendorCDR_20' ) end [2025-02-28 03:36:18] Production.INFO: ProcessCDR(1,14573735,1,1,2) [2025-02-28 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573735', 'tblTempUsageDetail_20' ) start [2025-02-28 03:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573735', 'tblTempUsageDetail_20' ) end [2025-02-28 03:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:36:23] Production.INFO: ==4691== Releasing lock... [2025-02-28 03:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:36:23] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:37:06 [end_date_ymd] => 2025-02-28 03:37:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:37:06' and `end` < '2025-02-28 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-02-28 03:37:18] Production.INFO: count ==329 [2025-02-28 03:37:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:37:06 - End Time 2025-02-28 03:37:06 [2025-02-28 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573740', 'tblTempUsageDetail_20' ) start [2025-02-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573740', 'tblTempUsageDetail_20' ) end [2025-02-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573740', 'tblTempVendorCDR_20' ) start [2025-02-28 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573740', 'tblTempVendorCDR_20' ) end [2025-02-28 03:37:18] Production.INFO: ProcessCDR(1,14573740,1,1,2) [2025-02-28 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573740', 'tblTempUsageDetail_20' ) start [2025-02-28 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573740', 'tblTempUsageDetail_20' ) end [2025-02-28 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:37:22] Production.INFO: ==4784== Releasing lock... [2025-02-28 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:37:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:38:06 [end_date_ymd] => 2025-02-28 03:38:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:38:06' and `end` < '2025-02-28 03: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-02-28 03:38:18] Production.INFO: count ==329 [2025-02-28 03:38:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:38:06 - End Time 2025-02-28 03:38:06 [2025-02-28 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573745', 'tblTempUsageDetail_20' ) start [2025-02-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573745', 'tblTempUsageDetail_20' ) end [2025-02-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573745', 'tblTempVendorCDR_20' ) start [2025-02-28 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573745', 'tblTempVendorCDR_20' ) end [2025-02-28 03:38:18] Production.INFO: ProcessCDR(1,14573745,1,1,2) [2025-02-28 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573745', 'tblTempUsageDetail_20' ) start [2025-02-28 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573745', 'tblTempUsageDetail_20' ) end [2025-02-28 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:38:21] Production.INFO: ==4860== Releasing lock... [2025-02-28 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:38:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:39:06 [end_date_ymd] => 2025-02-28 03:39:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:39:06' and `end` < '2025-02-28 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-02-28 03:39:18] Production.INFO: count ==329 [2025-02-28 03:39:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:39:06 - End Time 2025-02-28 03:39:06 [2025-02-28 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573750', 'tblTempUsageDetail_20' ) start [2025-02-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573750', 'tblTempUsageDetail_20' ) end [2025-02-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573750', 'tblTempVendorCDR_20' ) start [2025-02-28 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573750', 'tblTempVendorCDR_20' ) end [2025-02-28 03:39:18] Production.INFO: ProcessCDR(1,14573750,1,1,2) [2025-02-28 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573750', 'tblTempUsageDetail_20' ) start [2025-02-28 03:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573750', 'tblTempUsageDetail_20' ) end [2025-02-28 03:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:39:22] Production.INFO: ==4938== Releasing lock... [2025-02-28 03:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:39:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:40:06 [end_date_ymd] => 2025-02-28 03:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:40:06' and `end` < '2025-02-28 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-02-28 03:40:18] Production.INFO: count ==319 [2025-02-28 03:40:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:40:06 - End Time 2025-02-28 03:40:06 [2025-02-28 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573756', 'tblTempUsageDetail_20' ) start [2025-02-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573756', 'tblTempUsageDetail_20' ) end [2025-02-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573756', 'tblTempVendorCDR_20' ) start [2025-02-28 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573756', 'tblTempVendorCDR_20' ) end [2025-02-28 03:40:18] Production.INFO: ProcessCDR(1,14573756,1,1,2) [2025-02-28 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573756', 'tblTempUsageDetail_20' ) start [2025-02-28 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573756', 'tblTempUsageDetail_20' ) end [2025-02-28 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:40:22] Production.INFO: ==5013== Releasing lock... [2025-02-28 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:41:06 [end_date_ymd] => 2025-02-28 03:41:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:41:06' and `end` < '2025-02-28 03: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-02-28 03:41:18] Production.INFO: count ==299 [2025-02-28 03:41:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:41:06 - End Time 2025-02-28 03:41:06 [2025-02-28 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573761', 'tblTempUsageDetail_20' ) start [2025-02-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573761', 'tblTempUsageDetail_20' ) end [2025-02-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573761', 'tblTempVendorCDR_20' ) start [2025-02-28 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573761', 'tblTempVendorCDR_20' ) end [2025-02-28 03:41:18] Production.INFO: ProcessCDR(1,14573761,1,1,2) [2025-02-28 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573761', 'tblTempUsageDetail_20' ) start [2025-02-28 03:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573761', 'tblTempUsageDetail_20' ) end [2025-02-28 03:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:41:22] Production.INFO: ==5089== Releasing lock... [2025-02-28 03:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:41:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:42:06 [end_date_ymd] => 2025-02-28 03:42:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:42:06' and `end` < '2025-02-28 03: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-02-28 03:42:18] Production.INFO: count ==297 [2025-02-28 03:42:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:42:06 - End Time 2025-02-28 03:42:06 [2025-02-28 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573766', 'tblTempUsageDetail_20' ) start [2025-02-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573766', 'tblTempUsageDetail_20' ) end [2025-02-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573766', 'tblTempVendorCDR_20' ) start [2025-02-28 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573766', 'tblTempVendorCDR_20' ) end [2025-02-28 03:42:18] Production.INFO: ProcessCDR(1,14573766,1,1,2) [2025-02-28 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573766', 'tblTempUsageDetail_20' ) start [2025-02-28 03:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573766', 'tblTempUsageDetail_20' ) end [2025-02-28 03:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:42:21] Production.INFO: ==5169== Releasing lock... [2025-02-28 03:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:42:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:43:06 [end_date_ymd] => 2025-02-28 03:43:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:43:06' and `end` < '2025-02-28 03: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-02-28 03:43:18] Production.INFO: count ==297 [2025-02-28 03:43:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:43:06 - End Time 2025-02-28 03:43:06 [2025-02-28 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573771', 'tblTempUsageDetail_20' ) start [2025-02-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573771', 'tblTempUsageDetail_20' ) end [2025-02-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573771', 'tblTempVendorCDR_20' ) start [2025-02-28 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573771', 'tblTempVendorCDR_20' ) end [2025-02-28 03:43:18] Production.INFO: ProcessCDR(1,14573771,1,1,2) [2025-02-28 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573771', 'tblTempUsageDetail_20' ) start [2025-02-28 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573771', 'tblTempUsageDetail_20' ) end [2025-02-28 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:43:21] Production.INFO: ==5250== Releasing lock... [2025-02-28 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:43:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:44:06 [end_date_ymd] => 2025-02-28 03:44:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:44:06' and `end` < '2025-02-28 03: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-02-28 03:44:17] Production.INFO: count ==296 [2025-02-28 03:44:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:44:06 - End Time 2025-02-28 03:44:06 [2025-02-28 03:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573776', 'tblTempUsageDetail_20' ) start [2025-02-28 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573776', 'tblTempUsageDetail_20' ) end [2025-02-28 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573776', 'tblTempVendorCDR_20' ) start [2025-02-28 03:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573776', 'tblTempVendorCDR_20' ) end [2025-02-28 03:44:17] Production.INFO: ProcessCDR(1,14573776,1,1,2) [2025-02-28 03:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573776', 'tblTempUsageDetail_20' ) start [2025-02-28 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573776', 'tblTempUsageDetail_20' ) end [2025-02-28 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:44:21] Production.INFO: ==5327== Releasing lock... [2025-02-28 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:44:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:45:05 [end_date_ymd] => 2025-02-28 03:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:45:05' and `end` < '2025-02-28 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-02-28 03:45:16] Production.INFO: count ==296 [2025-02-28 03:45:16] Production.ERROR: pbx CDR StartTime 2025-02-28 00:45:05 - End Time 2025-02-28 03:45:05 [2025-02-28 03:45:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:45:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573781', 'tblTempUsageDetail_20' ) start [2025-02-28 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573781', 'tblTempUsageDetail_20' ) end [2025-02-28 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573781', 'tblTempVendorCDR_20' ) start [2025-02-28 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573781', 'tblTempVendorCDR_20' ) end [2025-02-28 03:45:17] Production.INFO: ProcessCDR(1,14573781,1,1,2) [2025-02-28 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573781', 'tblTempUsageDetail_20' ) start [2025-02-28 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573781', 'tblTempUsageDetail_20' ) end [2025-02-28 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:45:20] Production.INFO: ==5411== Releasing lock... [2025-02-28 03:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:45:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:46:05 [end_date_ymd] => 2025-02-28 03:46:05 [RateCDR] => 1 ) [2025-02-28 03:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 00:46:05' and `end` < '2025-02-28 03:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 03:46:17] Production.INFO: count ==296 [2025-02-28 03:46:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:46:05 - End Time 2025-02-28 03:46:05 [2025-02-28 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573786', 'tblTempUsageDetail_20' ) start [2025-02-28 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573786', 'tblTempUsageDetail_20' ) end [2025-02-28 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573786', 'tblTempVendorCDR_20' ) start [2025-02-28 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573786', 'tblTempVendorCDR_20' ) end [2025-02-28 03:46:17] Production.INFO: ProcessCDR(1,14573786,1,1,2) [2025-02-28 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573786', 'tblTempUsageDetail_20' ) start [2025-02-28 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573786', 'tblTempUsageDetail_20' ) end [2025-02-28 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:46:21] Production.INFO: ==5491== Releasing lock... [2025-02-28 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:46:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:47:06 [end_date_ymd] => 2025-02-28 03:47:06 [RateCDR] => 1 ) [2025-02-28 03:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 00:47:06' and `end` < '2025-02-28 03:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 03:47:18] Production.INFO: count ==296 [2025-02-28 03:47:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:47:06 - End Time 2025-02-28 03:47:06 [2025-02-28 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573791', 'tblTempUsageDetail_20' ) start [2025-02-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573791', 'tblTempUsageDetail_20' ) end [2025-02-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573791', 'tblTempVendorCDR_20' ) start [2025-02-28 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573791', 'tblTempVendorCDR_20' ) end [2025-02-28 03:47:18] Production.INFO: ProcessCDR(1,14573791,1,1,2) [2025-02-28 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573791', 'tblTempUsageDetail_20' ) start [2025-02-28 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573791', 'tblTempUsageDetail_20' ) end [2025-02-28 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:47:21] Production.INFO: ==5573== Releasing lock... [2025-02-28 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:47:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:48:06 [end_date_ymd] => 2025-02-28 03:48:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:48:06' and `end` < '2025-02-28 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-02-28 03:48:17] Production.INFO: count ==296 [2025-02-28 03:48:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:48:06 - End Time 2025-02-28 03:48:06 [2025-02-28 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573796', 'tblTempUsageDetail_20' ) start [2025-02-28 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573796', 'tblTempUsageDetail_20' ) end [2025-02-28 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573796', 'tblTempVendorCDR_20' ) start [2025-02-28 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573796', 'tblTempVendorCDR_20' ) end [2025-02-28 03:48:18] Production.INFO: ProcessCDR(1,14573796,1,1,2) [2025-02-28 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573796', 'tblTempUsageDetail_20' ) start [2025-02-28 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573796', 'tblTempUsageDetail_20' ) end [2025-02-28 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:48:21] Production.INFO: ==5650== Releasing lock... [2025-02-28 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:48:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:49:06 [end_date_ymd] => 2025-02-28 03:49:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:49:06' and `end` < '2025-02-28 03: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-02-28 03:49:18] Production.INFO: count ==296 [2025-02-28 03:49:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:49:06 - End Time 2025-02-28 03:49:06 [2025-02-28 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573801', 'tblTempUsageDetail_20' ) start [2025-02-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573801', 'tblTempUsageDetail_20' ) end [2025-02-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573801', 'tblTempVendorCDR_20' ) start [2025-02-28 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573801', 'tblTempVendorCDR_20' ) end [2025-02-28 03:49:18] Production.INFO: ProcessCDR(1,14573801,1,1,2) [2025-02-28 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573801', 'tblTempUsageDetail_20' ) start [2025-02-28 03:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573801', 'tblTempUsageDetail_20' ) end [2025-02-28 03:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:49:22] Production.INFO: ==5774== Releasing lock... [2025-02-28 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:49:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:50:06 [end_date_ymd] => 2025-02-28 03:50:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:50:06' and `end` < '2025-02-28 03: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-02-28 03:50:18] Production.INFO: count ==292 [2025-02-28 03:50:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:50:06 - End Time 2025-02-28 03:50:06 [2025-02-28 03:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573806', 'tblTempUsageDetail_20' ) start [2025-02-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573806', 'tblTempUsageDetail_20' ) end [2025-02-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573806', 'tblTempVendorCDR_20' ) start [2025-02-28 03:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573806', 'tblTempVendorCDR_20' ) end [2025-02-28 03:50:18] Production.INFO: ProcessCDR(1,14573806,1,1,2) [2025-02-28 03:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573806', 'tblTempUsageDetail_20' ) start [2025-02-28 03:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573806', 'tblTempUsageDetail_20' ) end [2025-02-28 03:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:50:21] Production.INFO: ==5862== Releasing lock... [2025-02-28 03:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:50:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 03:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:51:06 [end_date_ymd] => 2025-02-28 03:51:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:51:06' and `end` < '2025-02-28 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-02-28 03:51:18] Production.INFO: count ==270 [2025-02-28 03:51:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:51:06 - End Time 2025-02-28 03:51:06 [2025-02-28 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573812', 'tblTempUsageDetail_20' ) start [2025-02-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573812', 'tblTempUsageDetail_20' ) end [2025-02-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573812', 'tblTempVendorCDR_20' ) start [2025-02-28 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573812', 'tblTempVendorCDR_20' ) end [2025-02-28 03:51:18] Production.INFO: ProcessCDR(1,14573812,1,1,2) [2025-02-28 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573812', 'tblTempUsageDetail_20' ) start [2025-02-28 03:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573812', 'tblTempUsageDetail_20' ) end [2025-02-28 03:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:51:22] Production.INFO: ==5949== Releasing lock... [2025-02-28 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:51:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:52:05 [end_date_ymd] => 2025-02-28 03:52:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:52:05' and `end` < '2025-02-28 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-02-28 03:52:17] Production.INFO: count ==270 [2025-02-28 03:52:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:52:05 - End Time 2025-02-28 03:52:05 [2025-02-28 03:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573817', 'tblTempUsageDetail_20' ) start [2025-02-28 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573817', 'tblTempUsageDetail_20' ) end [2025-02-28 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573817', 'tblTempVendorCDR_20' ) start [2025-02-28 03:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573817', 'tblTempVendorCDR_20' ) end [2025-02-28 03:52:17] Production.INFO: ProcessCDR(1,14573817,1,1,2) [2025-02-28 03:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573817', 'tblTempUsageDetail_20' ) start [2025-02-28 03:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573817', 'tblTempUsageDetail_20' ) end [2025-02-28 03:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:52:21] Production.INFO: ==6033== Releasing lock... [2025-02-28 03:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:53:06 [end_date_ymd] => 2025-02-28 03:53:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:53:06' and `end` < '2025-02-28 03: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-02-28 03:53:17] Production.INFO: count ==270 [2025-02-28 03:53:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:53:06 - End Time 2025-02-28 03:53:06 [2025-02-28 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573822', 'tblTempUsageDetail_20' ) start [2025-02-28 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573822', 'tblTempUsageDetail_20' ) end [2025-02-28 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573822', 'tblTempVendorCDR_20' ) start [2025-02-28 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573822', 'tblTempVendorCDR_20' ) end [2025-02-28 03:53:17] Production.INFO: ProcessCDR(1,14573822,1,1,2) [2025-02-28 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573822', 'tblTempUsageDetail_20' ) start [2025-02-28 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573822', 'tblTempUsageDetail_20' ) end [2025-02-28 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:53:21] Production.INFO: ==6118== Releasing lock... [2025-02-28 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:54:05 [end_date_ymd] => 2025-02-28 03:54:05 [RateCDR] => 1 ) [2025-02-28 03:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 00:54:05' and `end` < '2025-02-28 03:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 03:54:17] Production.INFO: count ==270 [2025-02-28 03:54:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:54:05 - End Time 2025-02-28 03:54:05 [2025-02-28 03:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573827', 'tblTempUsageDetail_20' ) start [2025-02-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573827', 'tblTempUsageDetail_20' ) end [2025-02-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573827', 'tblTempVendorCDR_20' ) start [2025-02-28 03:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573827', 'tblTempVendorCDR_20' ) end [2025-02-28 03:54:17] Production.INFO: ProcessCDR(1,14573827,1,1,2) [2025-02-28 03:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573827', 'tblTempUsageDetail_20' ) start [2025-02-28 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573827', 'tblTempUsageDetail_20' ) end [2025-02-28 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:54:21] Production.INFO: ==6200== Releasing lock... [2025-02-28 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:55:06 [end_date_ymd] => 2025-02-28 03:55:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:55:06' and `end` < '2025-02-28 03: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-02-28 03:55:18] Production.INFO: count ==274 [2025-02-28 03:55:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:55:06 - End Time 2025-02-28 03:55:06 [2025-02-28 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573832', 'tblTempUsageDetail_20' ) start [2025-02-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573832', 'tblTempUsageDetail_20' ) end [2025-02-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573832', 'tblTempVendorCDR_20' ) start [2025-02-28 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573832', 'tblTempVendorCDR_20' ) end [2025-02-28 03:55:18] Production.INFO: ProcessCDR(1,14573832,1,1,2) [2025-02-28 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573832', 'tblTempUsageDetail_20' ) start [2025-02-28 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573832', 'tblTempUsageDetail_20' ) end [2025-02-28 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:55:21] Production.INFO: ==6282== Releasing lock... [2025-02-28 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:56:05 [end_date_ymd] => 2025-02-28 03:56:05 [RateCDR] => 1 ) [2025-02-28 03:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 00:56:05' and `end` < '2025-02-28 03:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 03:56:17] Production.INFO: count ==274 [2025-02-28 03:56:17] Production.ERROR: pbx CDR StartTime 2025-02-28 00:56:05 - End Time 2025-02-28 03:56:05 [2025-02-28 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573837', 'tblTempUsageDetail_20' ) start [2025-02-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573837', 'tblTempUsageDetail_20' ) end [2025-02-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573837', 'tblTempVendorCDR_20' ) start [2025-02-28 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573837', 'tblTempVendorCDR_20' ) end [2025-02-28 03:56:17] Production.INFO: ProcessCDR(1,14573837,1,1,2) [2025-02-28 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573837', 'tblTempUsageDetail_20' ) start [2025-02-28 03:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573837', 'tblTempUsageDetail_20' ) end [2025-02-28 03:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:56:21] Production.INFO: ==6357== Releasing lock... [2025-02-28 03:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:56:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:57:06 [end_date_ymd] => 2025-02-28 03:57:06 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:57:06' and `end` < '2025-02-28 03: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-02-28 03:57:18] Production.INFO: count ==274 [2025-02-28 03:57:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:57:06 - End Time 2025-02-28 03:57:06 [2025-02-28 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573842', 'tblTempUsageDetail_20' ) start [2025-02-28 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573842', 'tblTempUsageDetail_20' ) end [2025-02-28 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573842', 'tblTempVendorCDR_20' ) start [2025-02-28 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573842', 'tblTempVendorCDR_20' ) end [2025-02-28 03:57:18] Production.INFO: ProcessCDR(1,14573842,1,1,2) [2025-02-28 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573842', 'tblTempUsageDetail_20' ) start [2025-02-28 03:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573842', 'tblTempUsageDetail_20' ) end [2025-02-28 03:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:57:22] Production.INFO: ==6438== Releasing lock... [2025-02-28 03:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:57:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:58:06 [end_date_ymd] => 2025-02-28 03:58:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 00:58:06' and `end` < '2025-02-28 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-02-28 03:58:18] Production.INFO: count ==272 [2025-02-28 03:58:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:58:06 - End Time 2025-02-28 03:58:06 [2025-02-28 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573847', 'tblTempUsageDetail_20' ) start [2025-02-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573847', 'tblTempUsageDetail_20' ) end [2025-02-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573847', 'tblTempVendorCDR_20' ) start [2025-02-28 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573847', 'tblTempVendorCDR_20' ) end [2025-02-28 03:58:18] Production.INFO: ProcessCDR(1,14573847,1,1,2) [2025-02-28 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573847', 'tblTempUsageDetail_20' ) start [2025-02-28 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573847', 'tblTempUsageDetail_20' ) end [2025-02-28 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:58:21] Production.INFO: ==6524== Releasing lock... [2025-02-28 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:58:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 03:59:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 00:59:07 [end_date_ymd] => 2025-02-28 03:59:07 [RateCDR] => 1 ) [2025-02-28 03: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-02-28 00:59:07' and `end` < '2025-02-28 03: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-02-28 03:59:18] Production.INFO: count ==272 [2025-02-28 03:59:18] Production.ERROR: pbx CDR StartTime 2025-02-28 00:59:07 - End Time 2025-02-28 03:59:07 [2025-02-28 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573852', 'tblTempUsageDetail_20' ) start [2025-02-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573852', 'tblTempUsageDetail_20' ) end [2025-02-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573852', 'tblTempVendorCDR_20' ) start [2025-02-28 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573852', 'tblTempVendorCDR_20' ) end [2025-02-28 03:59:18] Production.INFO: ProcessCDR(1,14573852,1,1,2) [2025-02-28 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 03:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573852', 'tblTempUsageDetail_20' ) start [2025-02-28 03:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573852', 'tblTempUsageDetail_20' ) end [2025-02-28 03:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 03:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 03:59:22] Production.INFO: ==6601== Releasing lock... [2025-02-28 03:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 03:59:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:00:06 [end_date_ymd] => 2025-02-28 04:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:00:06' and `end` < '2025-02-28 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-02-28 04:00:18] Production.INFO: count ==268 [2025-02-28 04:00:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:00:06 - End Time 2025-02-28 04:00:06 [2025-02-28 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573858', 'tblTempUsageDetail_20' ) start [2025-02-28 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573858', 'tblTempUsageDetail_20' ) end [2025-02-28 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573858', 'tblTempVendorCDR_20' ) start [2025-02-28 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573858', 'tblTempVendorCDR_20' ) end [2025-02-28 04:00:18] Production.INFO: ProcessCDR(1,14573858,1,1,2) [2025-02-28 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573858', 'tblTempUsageDetail_20' ) start [2025-02-28 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573858', 'tblTempUsageDetail_20' ) end [2025-02-28 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:00:23] Production.INFO: ==6689== Releasing lock... [2025-02-28 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:00:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:01:06 [end_date_ymd] => 2025-02-28 04:01:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:01:06' and `end` < '2025-02-28 04: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-02-28 04:01:18] Production.INFO: count ==258 [2025-02-28 04:01:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:01:06 - End Time 2025-02-28 04:01:06 [2025-02-28 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573864', 'tblTempUsageDetail_20' ) start [2025-02-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573864', 'tblTempUsageDetail_20' ) end [2025-02-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573864', 'tblTempVendorCDR_20' ) start [2025-02-28 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573864', 'tblTempVendorCDR_20' ) end [2025-02-28 04:01:18] Production.INFO: ProcessCDR(1,14573864,1,1,2) [2025-02-28 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573864', 'tblTempUsageDetail_20' ) start [2025-02-28 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573864', 'tblTempUsageDetail_20' ) end [2025-02-28 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:01:21] Production.INFO: ==6788== Releasing lock... [2025-02-28 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:02:05 [end_date_ymd] => 2025-02-28 04:02:05 [RateCDR] => 1 ) [2025-02-28 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:02:05' and `end` < '2025-02-28 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:02:17] Production.INFO: count ==258 [2025-02-28 04:02:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:02:05 - End Time 2025-02-28 04:02:05 [2025-02-28 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573869', 'tblTempUsageDetail_20' ) start [2025-02-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573869', 'tblTempUsageDetail_20' ) end [2025-02-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573869', 'tblTempVendorCDR_20' ) start [2025-02-28 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573869', 'tblTempVendorCDR_20' ) end [2025-02-28 04:02:17] Production.INFO: ProcessCDR(1,14573869,1,1,2) [2025-02-28 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573869', 'tblTempUsageDetail_20' ) start [2025-02-28 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573869', 'tblTempUsageDetail_20' ) end [2025-02-28 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:02:21] Production.INFO: ==6870== Releasing lock... [2025-02-28 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:02:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:03:05 [end_date_ymd] => 2025-02-28 04:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:03:05' and `end` < '2025-02-28 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-02-28 04:03:17] Production.INFO: count ==255 [2025-02-28 04:03:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:03:05 - End Time 2025-02-28 04:03:05 [2025-02-28 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573874', 'tblTempUsageDetail_20' ) start [2025-02-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573874', 'tblTempUsageDetail_20' ) end [2025-02-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573874', 'tblTempVendorCDR_20' ) start [2025-02-28 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573874', 'tblTempVendorCDR_20' ) end [2025-02-28 04:03:17] Production.INFO: ProcessCDR(1,14573874,1,1,2) [2025-02-28 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573874', 'tblTempUsageDetail_20' ) start [2025-02-28 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573874', 'tblTempUsageDetail_20' ) end [2025-02-28 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:03:21] Production.INFO: ==6950== Releasing lock... [2025-02-28 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:04:06 [end_date_ymd] => 2025-02-28 04:04:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:04:06' and `end` < '2025-02-28 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-02-28 04:04:18] Production.INFO: count ==255 [2025-02-28 04:04:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:04:06 - End Time 2025-02-28 04:04:06 [2025-02-28 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573879', 'tblTempUsageDetail_20' ) start [2025-02-28 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573879', 'tblTempUsageDetail_20' ) end [2025-02-28 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573879', 'tblTempVendorCDR_20' ) start [2025-02-28 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573879', 'tblTempVendorCDR_20' ) end [2025-02-28 04:04:18] Production.INFO: ProcessCDR(1,14573879,1,1,2) [2025-02-28 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573879', 'tblTempUsageDetail_20' ) start [2025-02-28 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573879', 'tblTempUsageDetail_20' ) end [2025-02-28 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:04:21] Production.INFO: ==7070== Releasing lock... [2025-02-28 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:04:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:05:05 [end_date_ymd] => 2025-02-28 04:05:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:05:05' and `end` < '2025-02-28 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-02-28 04:05:17] Production.INFO: count ==255 [2025-02-28 04:05:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:05:05 - End Time 2025-02-28 04:05:05 [2025-02-28 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573884', 'tblTempUsageDetail_20' ) start [2025-02-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573884', 'tblTempUsageDetail_20' ) end [2025-02-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573884', 'tblTempVendorCDR_20' ) start [2025-02-28 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573884', 'tblTempVendorCDR_20' ) end [2025-02-28 04:05:17] Production.INFO: ProcessCDR(1,14573884,1,1,2) [2025-02-28 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573884', 'tblTempUsageDetail_20' ) start [2025-02-28 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573884', 'tblTempUsageDetail_20' ) end [2025-02-28 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:05:21] Production.INFO: ==7156== Releasing lock... [2025-02-28 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:06:05 [end_date_ymd] => 2025-02-28 04:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:06:05' and `end` < '2025-02-28 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-02-28 04:06:17] Production.INFO: count ==251 [2025-02-28 04:06:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:06:05 - End Time 2025-02-28 04:06:05 [2025-02-28 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573889', 'tblTempUsageDetail_20' ) start [2025-02-28 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573889', 'tblTempUsageDetail_20' ) end [2025-02-28 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573889', 'tblTempVendorCDR_20' ) start [2025-02-28 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573889', 'tblTempVendorCDR_20' ) end [2025-02-28 04:06:17] Production.INFO: ProcessCDR(1,14573889,1,1,2) [2025-02-28 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573889', 'tblTempUsageDetail_20' ) start [2025-02-28 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573889', 'tblTempUsageDetail_20' ) end [2025-02-28 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:06:21] Production.INFO: ==7246== Releasing lock... [2025-02-28 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:06:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:07:05 [end_date_ymd] => 2025-02-28 04:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:07:05' and `end` < '2025-02-28 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-02-28 04:07:17] Production.INFO: count ==252 [2025-02-28 04:07:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:07:05 - End Time 2025-02-28 04:07:05 [2025-02-28 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573894', 'tblTempUsageDetail_20' ) start [2025-02-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573894', 'tblTempUsageDetail_20' ) end [2025-02-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573894', 'tblTempVendorCDR_20' ) start [2025-02-28 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573894', 'tblTempVendorCDR_20' ) end [2025-02-28 04:07:17] Production.INFO: ProcessCDR(1,14573894,1,1,2) [2025-02-28 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573894', 'tblTempUsageDetail_20' ) start [2025-02-28 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573894', 'tblTempUsageDetail_20' ) end [2025-02-28 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:07:20] Production.INFO: ==7331== Releasing lock... [2025-02-28 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:07:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:08:05 [end_date_ymd] => 2025-02-28 04:08:05 [RateCDR] => 1 ) [2025-02-28 04:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:08:05' and `end` < '2025-02-28 04:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:08:17] Production.INFO: count ==252 [2025-02-28 04:08:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:08:05 - End Time 2025-02-28 04:08:05 [2025-02-28 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573899', 'tblTempUsageDetail_20' ) start [2025-02-28 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573899', 'tblTempUsageDetail_20' ) end [2025-02-28 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573899', 'tblTempVendorCDR_20' ) start [2025-02-28 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573899', 'tblTempVendorCDR_20' ) end [2025-02-28 04:08:17] Production.INFO: ProcessCDR(1,14573899,1,1,2) [2025-02-28 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573899', 'tblTempUsageDetail_20' ) start [2025-02-28 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573899', 'tblTempUsageDetail_20' ) end [2025-02-28 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:08:20] Production.INFO: ==7414== Releasing lock... [2025-02-28 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:08:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:09:06 [end_date_ymd] => 2025-02-28 04:09:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:09:06' and `end` < '2025-02-28 04: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-02-28 04:09:17] Production.INFO: count ==250 [2025-02-28 04:09:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:09:06 - End Time 2025-02-28 04:09:06 [2025-02-28 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573904', 'tblTempUsageDetail_20' ) start [2025-02-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573904', 'tblTempUsageDetail_20' ) end [2025-02-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573904', 'tblTempVendorCDR_20' ) start [2025-02-28 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573904', 'tblTempVendorCDR_20' ) end [2025-02-28 04:09:17] Production.INFO: ProcessCDR(1,14573904,1,1,2) [2025-02-28 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573904', 'tblTempUsageDetail_20' ) start [2025-02-28 04:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573904', 'tblTempUsageDetail_20' ) end [2025-02-28 04:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:09:21] Production.INFO: ==7502== Releasing lock... [2025-02-28 04:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:09:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:10:06 [end_date_ymd] => 2025-02-28 04:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:10:06' and `end` < '2025-02-28 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-02-28 04:10:18] Production.INFO: count ==244 [2025-02-28 04:10:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:10:06 - End Time 2025-02-28 04:10:06 [2025-02-28 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573910', 'tblTempUsageDetail_20' ) start [2025-02-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573910', 'tblTempUsageDetail_20' ) end [2025-02-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573910', 'tblTempVendorCDR_20' ) start [2025-02-28 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573910', 'tblTempVendorCDR_20' ) end [2025-02-28 04:10:18] Production.INFO: ProcessCDR(1,14573910,1,1,2) [2025-02-28 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573910', 'tblTempUsageDetail_20' ) start [2025-02-28 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573910', 'tblTempUsageDetail_20' ) end [2025-02-28 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:10:21] Production.INFO: ==7589== Releasing lock... [2025-02-28 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:10:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:11:05 [end_date_ymd] => 2025-02-28 04:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:11:05' and `end` < '2025-02-28 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-02-28 04:11:17] Production.INFO: count ==242 [2025-02-28 04:11:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:11:05 - End Time 2025-02-28 04:11:05 [2025-02-28 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573915', 'tblTempUsageDetail_20' ) start [2025-02-28 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573915', 'tblTempUsageDetail_20' ) end [2025-02-28 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573915', 'tblTempVendorCDR_20' ) start [2025-02-28 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573915', 'tblTempVendorCDR_20' ) end [2025-02-28 04:11:17] Production.INFO: ProcessCDR(1,14573915,1,1,2) [2025-02-28 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573915', 'tblTempUsageDetail_20' ) start [2025-02-28 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573915', 'tblTempUsageDetail_20' ) end [2025-02-28 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:11:21] Production.INFO: ==7674== Releasing lock... [2025-02-28 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:11:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:12:05 [end_date_ymd] => 2025-02-28 04:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:12:05' and `end` < '2025-02-28 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-02-28 04:12:17] Production.INFO: count ==242 [2025-02-28 04:12:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:12:05 - End Time 2025-02-28 04:12:05 [2025-02-28 04:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573920', 'tblTempUsageDetail_20' ) start [2025-02-28 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573920', 'tblTempUsageDetail_20' ) end [2025-02-28 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573920', 'tblTempVendorCDR_20' ) start [2025-02-28 04:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573920', 'tblTempVendorCDR_20' ) end [2025-02-28 04:12:17] Production.INFO: ProcessCDR(1,14573920,1,1,2) [2025-02-28 04:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573920', 'tblTempUsageDetail_20' ) start [2025-02-28 04:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573920', 'tblTempUsageDetail_20' ) end [2025-02-28 04:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:12:20] Production.INFO: ==7763== Releasing lock... [2025-02-28 04:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:12:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:13:05 [end_date_ymd] => 2025-02-28 04:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:13:05' and `end` < '2025-02-28 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-02-28 04:13:17] Production.INFO: count ==237 [2025-02-28 04:13:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:13:05 - End Time 2025-02-28 04:13:05 [2025-02-28 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573925', 'tblTempUsageDetail_20' ) start [2025-02-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573925', 'tblTempUsageDetail_20' ) end [2025-02-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573925', 'tblTempVendorCDR_20' ) start [2025-02-28 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573925', 'tblTempVendorCDR_20' ) end [2025-02-28 04:13:17] Production.INFO: ProcessCDR(1,14573925,1,1,2) [2025-02-28 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573925', 'tblTempUsageDetail_20' ) start [2025-02-28 04:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573925', 'tblTempUsageDetail_20' ) end [2025-02-28 04:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:13:20] Production.INFO: ==7846== Releasing lock... [2025-02-28 04:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:13:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:14:05 [end_date_ymd] => 2025-02-28 04:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:14:05' and `end` < '2025-02-28 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-02-28 04:14:17] Production.INFO: count ==237 [2025-02-28 04:14:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:14:05 - End Time 2025-02-28 04:14:05 [2025-02-28 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573930', 'tblTempUsageDetail_20' ) start [2025-02-28 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573930', 'tblTempUsageDetail_20' ) end [2025-02-28 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573930', 'tblTempVendorCDR_20' ) start [2025-02-28 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573930', 'tblTempVendorCDR_20' ) end [2025-02-28 04:14:17] Production.INFO: ProcessCDR(1,14573930,1,1,2) [2025-02-28 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573930', 'tblTempUsageDetail_20' ) start [2025-02-28 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573930', 'tblTempUsageDetail_20' ) end [2025-02-28 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:14:20] Production.INFO: ==7929== Releasing lock... [2025-02-28 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:14:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:15:05 [end_date_ymd] => 2025-02-28 04:15:05 [RateCDR] => 1 ) [2025-02-28 04:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:15:05' and `end` < '2025-02-28 04:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:15:17] Production.INFO: count ==233 [2025-02-28 04:15:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:15:05 - End Time 2025-02-28 04:15:05 [2025-02-28 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573935', 'tblTempUsageDetail_20' ) start [2025-02-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573935', 'tblTempUsageDetail_20' ) end [2025-02-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573935', 'tblTempVendorCDR_20' ) start [2025-02-28 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573935', 'tblTempVendorCDR_20' ) end [2025-02-28 04:15:17] Production.INFO: ProcessCDR(1,14573935,1,1,2) [2025-02-28 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573935', 'tblTempUsageDetail_20' ) start [2025-02-28 04:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573935', 'tblTempUsageDetail_20' ) end [2025-02-28 04:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:15:20] Production.INFO: ==8016== Releasing lock... [2025-02-28 04:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:15:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:16:06 [end_date_ymd] => 2025-02-28 04:16:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:16:06' and `end` < '2025-02-28 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-02-28 04:16:18] Production.INFO: count ==233 [2025-02-28 04:16:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:16:06 - End Time 2025-02-28 04:16:06 [2025-02-28 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573940', 'tblTempUsageDetail_20' ) start [2025-02-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573940', 'tblTempUsageDetail_20' ) end [2025-02-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573940', 'tblTempVendorCDR_20' ) start [2025-02-28 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573940', 'tblTempVendorCDR_20' ) end [2025-02-28 04:16:18] Production.INFO: ProcessCDR(1,14573940,1,1,2) [2025-02-28 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573940', 'tblTempUsageDetail_20' ) start [2025-02-28 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573940', 'tblTempUsageDetail_20' ) end [2025-02-28 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:16:21] Production.INFO: ==8093== Releasing lock... [2025-02-28 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:16:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:17:05 [end_date_ymd] => 2025-02-28 04:17:05 [RateCDR] => 1 ) [2025-02-28 04:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:17:05' and `end` < '2025-02-28 04:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:17:17] Production.INFO: count ==232 [2025-02-28 04:17:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:17:05 - End Time 2025-02-28 04:17:05 [2025-02-28 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573945', 'tblTempUsageDetail_20' ) start [2025-02-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573945', 'tblTempUsageDetail_20' ) end [2025-02-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573945', 'tblTempVendorCDR_20' ) start [2025-02-28 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573945', 'tblTempVendorCDR_20' ) end [2025-02-28 04:17:17] Production.INFO: ProcessCDR(1,14573945,1,1,2) [2025-02-28 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573945', 'tblTempUsageDetail_20' ) start [2025-02-28 04:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573945', 'tblTempUsageDetail_20' ) end [2025-02-28 04:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:17:21] Production.INFO: ==8180== Releasing lock... [2025-02-28 04:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:18:06 [end_date_ymd] => 2025-02-28 04:18:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:18:06' and `end` < '2025-02-28 04: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-02-28 04:18:18] Production.INFO: count ==228 [2025-02-28 04:18:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:18:06 - End Time 2025-02-28 04:18:06 [2025-02-28 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573950', 'tblTempUsageDetail_20' ) start [2025-02-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573950', 'tblTempUsageDetail_20' ) end [2025-02-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573950', 'tblTempVendorCDR_20' ) start [2025-02-28 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573950', 'tblTempVendorCDR_20' ) end [2025-02-28 04:18:18] Production.INFO: ProcessCDR(1,14573950,1,1,2) [2025-02-28 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573950', 'tblTempUsageDetail_20' ) start [2025-02-28 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573950', 'tblTempUsageDetail_20' ) end [2025-02-28 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:18:21] Production.INFO: ==8284== Releasing lock... [2025-02-28 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:19:05 [end_date_ymd] => 2025-02-28 04:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:19:05' and `end` < '2025-02-28 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-02-28 04:19:17] Production.INFO: count ==228 [2025-02-28 04:19:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:19:05 - End Time 2025-02-28 04:19:05 [2025-02-28 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573955', 'tblTempUsageDetail_20' ) start [2025-02-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573955', 'tblTempUsageDetail_20' ) end [2025-02-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573955', 'tblTempVendorCDR_20' ) start [2025-02-28 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573955', 'tblTempVendorCDR_20' ) end [2025-02-28 04:19:17] Production.INFO: ProcessCDR(1,14573955,1,1,2) [2025-02-28 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573955', 'tblTempUsageDetail_20' ) start [2025-02-28 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573955', 'tblTempUsageDetail_20' ) end [2025-02-28 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:19:20] Production.INFO: ==8370== Releasing lock... [2025-02-28 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:20:06 [end_date_ymd] => 2025-02-28 04:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:20:06' and `end` < '2025-02-28 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-02-28 04:20:18] Production.INFO: count ==218 [2025-02-28 04:20:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:20:06 - End Time 2025-02-28 04:20:06 [2025-02-28 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573961', 'tblTempUsageDetail_20' ) start [2025-02-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573961', 'tblTempUsageDetail_20' ) end [2025-02-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573961', 'tblTempVendorCDR_20' ) start [2025-02-28 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573961', 'tblTempVendorCDR_20' ) end [2025-02-28 04:20:18] Production.INFO: ProcessCDR(1,14573961,1,1,2) [2025-02-28 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573961', 'tblTempUsageDetail_20' ) start [2025-02-28 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573961', 'tblTempUsageDetail_20' ) end [2025-02-28 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:20:21] Production.INFO: ==8493== Releasing lock... [2025-02-28 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:20:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:21:05 [end_date_ymd] => 2025-02-28 04:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:21:05' and `end` < '2025-02-28 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-02-28 04:21:17] Production.INFO: count ==204 [2025-02-28 04:21:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:21:05 - End Time 2025-02-28 04:21:05 [2025-02-28 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573966', 'tblTempUsageDetail_20' ) start [2025-02-28 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573966', 'tblTempUsageDetail_20' ) end [2025-02-28 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573966', 'tblTempVendorCDR_20' ) start [2025-02-28 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573966', 'tblTempVendorCDR_20' ) end [2025-02-28 04:21:17] Production.INFO: ProcessCDR(1,14573966,1,1,2) [2025-02-28 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573966', 'tblTempUsageDetail_20' ) start [2025-02-28 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573966', 'tblTempUsageDetail_20' ) end [2025-02-28 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:21:20] Production.INFO: ==8579== Releasing lock... [2025-02-28 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:21:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:22:06 [end_date_ymd] => 2025-02-28 04:22:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:22:06' and `end` < '2025-02-28 04: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-02-28 04:22:17] Production.INFO: count ==204 [2025-02-28 04:22:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:22:06 - End Time 2025-02-28 04:22:06 [2025-02-28 04:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573971', 'tblTempUsageDetail_20' ) start [2025-02-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573971', 'tblTempUsageDetail_20' ) end [2025-02-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573971', 'tblTempVendorCDR_20' ) start [2025-02-28 04:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573971', 'tblTempVendorCDR_20' ) end [2025-02-28 04:22:17] Production.INFO: ProcessCDR(1,14573971,1,1,2) [2025-02-28 04:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573971', 'tblTempUsageDetail_20' ) start [2025-02-28 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573971', 'tblTempUsageDetail_20' ) end [2025-02-28 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:22:21] Production.INFO: ==8657== Releasing lock... [2025-02-28 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:22:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:23:06 [end_date_ymd] => 2025-02-28 04:23:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:23:06' and `end` < '2025-02-28 04: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-02-28 04:23:18] Production.INFO: count ==204 [2025-02-28 04:23:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:23:06 - End Time 2025-02-28 04:23:06 [2025-02-28 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573976', 'tblTempUsageDetail_20' ) start [2025-02-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573976', 'tblTempUsageDetail_20' ) end [2025-02-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573976', 'tblTempVendorCDR_20' ) start [2025-02-28 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573976', 'tblTempVendorCDR_20' ) end [2025-02-28 04:23:18] Production.INFO: ProcessCDR(1,14573976,1,1,2) [2025-02-28 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573976', 'tblTempUsageDetail_20' ) start [2025-02-28 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573976', 'tblTempUsageDetail_20' ) end [2025-02-28 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:23:21] Production.INFO: ==8733== Releasing lock... [2025-02-28 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:23:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:24:06 [end_date_ymd] => 2025-02-28 04:24:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:24:06' and `end` < '2025-02-28 04: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-02-28 04:24:18] Production.INFO: count ==204 [2025-02-28 04:24:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:24:06 - End Time 2025-02-28 04:24:06 [2025-02-28 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573981', 'tblTempUsageDetail_20' ) start [2025-02-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573981', 'tblTempUsageDetail_20' ) end [2025-02-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573981', 'tblTempVendorCDR_20' ) start [2025-02-28 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573981', 'tblTempVendorCDR_20' ) end [2025-02-28 04:24:18] Production.INFO: ProcessCDR(1,14573981,1,1,2) [2025-02-28 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573981', 'tblTempUsageDetail_20' ) start [2025-02-28 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573981', 'tblTempUsageDetail_20' ) end [2025-02-28 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:24:21] Production.INFO: ==8811== Releasing lock... [2025-02-28 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:24:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:25:06 [end_date_ymd] => 2025-02-28 04:25:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:25:06' and `end` < '2025-02-28 04: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-02-28 04:25:17] Production.INFO: count ==204 [2025-02-28 04:25:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:25:06 - End Time 2025-02-28 04:25:06 [2025-02-28 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573986', 'tblTempUsageDetail_20' ) start [2025-02-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573986', 'tblTempUsageDetail_20' ) end [2025-02-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573986', 'tblTempVendorCDR_20' ) start [2025-02-28 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573986', 'tblTempVendorCDR_20' ) end [2025-02-28 04:25:17] Production.INFO: ProcessCDR(1,14573986,1,1,2) [2025-02-28 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573986', 'tblTempUsageDetail_20' ) start [2025-02-28 04:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573986', 'tblTempUsageDetail_20' ) end [2025-02-28 04:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:25:20] Production.INFO: ==8887== Releasing lock... [2025-02-28 04:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:25:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:26:06 [end_date_ymd] => 2025-02-28 04:26:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:26:06' and `end` < '2025-02-28 04: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-02-28 04:26:18] Production.INFO: count ==204 [2025-02-28 04:26:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:26:06 - End Time 2025-02-28 04:26:06 [2025-02-28 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573991', 'tblTempUsageDetail_20' ) start [2025-02-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573991', 'tblTempUsageDetail_20' ) end [2025-02-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573991', 'tblTempVendorCDR_20' ) start [2025-02-28 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573991', 'tblTempVendorCDR_20' ) end [2025-02-28 04:26:18] Production.INFO: ProcessCDR(1,14573991,1,1,2) [2025-02-28 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573991', 'tblTempUsageDetail_20' ) start [2025-02-28 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573991', 'tblTempUsageDetail_20' ) end [2025-02-28 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:26:21] Production.INFO: ==8965== Releasing lock... [2025-02-28 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:26:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:27:05 [end_date_ymd] => 2025-02-28 04:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:27:05' and `end` < '2025-02-28 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-02-28 04:27:17] Production.INFO: count ==204 [2025-02-28 04:27:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:27:05 - End Time 2025-02-28 04:27:05 [2025-02-28 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573996', 'tblTempUsageDetail_20' ) start [2025-02-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14573996', 'tblTempUsageDetail_20' ) end [2025-02-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573996', 'tblTempVendorCDR_20' ) start [2025-02-28 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14573996', 'tblTempVendorCDR_20' ) end [2025-02-28 04:27:17] Production.INFO: ProcessCDR(1,14573996,1,1,2) [2025-02-28 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14573996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14573996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14573996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14573996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573996', 'tblTempUsageDetail_20' ) start [2025-02-28 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14573996', 'tblTempUsageDetail_20' ) end [2025-02-28 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:27:20] Production.INFO: ==9043== Releasing lock... [2025-02-28 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:27:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:28:06 [end_date_ymd] => 2025-02-28 04:28:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:28:06' and `end` < '2025-02-28 04: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-02-28 04:28:18] Production.INFO: count ==204 [2025-02-28 04:28:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:28:06 - End Time 2025-02-28 04:28:06 [2025-02-28 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574001', 'tblTempUsageDetail_20' ) start [2025-02-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574001', 'tblTempUsageDetail_20' ) end [2025-02-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574001', 'tblTempVendorCDR_20' ) start [2025-02-28 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574001', 'tblTempVendorCDR_20' ) end [2025-02-28 04:28:18] Production.INFO: ProcessCDR(1,14574001,1,1,2) [2025-02-28 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574001', 'tblTempUsageDetail_20' ) start [2025-02-28 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574001', 'tblTempUsageDetail_20' ) end [2025-02-28 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:28:21] Production.INFO: ==9122== Releasing lock... [2025-02-28 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:28:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:29:05 [end_date_ymd] => 2025-02-28 04:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:29:05' and `end` < '2025-02-28 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-02-28 04:29:17] Production.INFO: count ==204 [2025-02-28 04:29:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:29:05 - End Time 2025-02-28 04:29:05 [2025-02-28 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574006', 'tblTempUsageDetail_20' ) start [2025-02-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574006', 'tblTempUsageDetail_20' ) end [2025-02-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574006', 'tblTempVendorCDR_20' ) start [2025-02-28 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574006', 'tblTempVendorCDR_20' ) end [2025-02-28 04:29:17] Production.INFO: ProcessCDR(1,14574006,1,1,2) [2025-02-28 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574006', 'tblTempUsageDetail_20' ) start [2025-02-28 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574006', 'tblTempUsageDetail_20' ) end [2025-02-28 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:29:21] Production.INFO: ==9202== Releasing lock... [2025-02-28 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:29:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:30:06 [end_date_ymd] => 2025-02-28 04:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:30:06' and `end` < '2025-02-28 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-02-28 04:30:17] Production.INFO: count ==198 [2025-02-28 04:30:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:30:06 - End Time 2025-02-28 04:30:06 [2025-02-28 04:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574012', 'tblTempUsageDetail_20' ) start [2025-02-28 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574012', 'tblTempUsageDetail_20' ) end [2025-02-28 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574012', 'tblTempVendorCDR_20' ) start [2025-02-28 04:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574012', 'tblTempVendorCDR_20' ) end [2025-02-28 04:30:17] Production.INFO: ProcessCDR(1,14574012,1,1,2) [2025-02-28 04:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574012', 'tblTempUsageDetail_20' ) start [2025-02-28 04:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574012', 'tblTempUsageDetail_20' ) end [2025-02-28 04:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:30:21] Production.INFO: ==9282== Releasing lock... [2025-02-28 04:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:30:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:31:06 [end_date_ymd] => 2025-02-28 04:31:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:31:06' and `end` < '2025-02-28 04: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-02-28 04:31:18] Production.INFO: count ==197 [2025-02-28 04:31:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:31:06 - End Time 2025-02-28 04:31:06 [2025-02-28 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574018', 'tblTempUsageDetail_20' ) start [2025-02-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574018', 'tblTempUsageDetail_20' ) end [2025-02-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574018', 'tblTempVendorCDR_20' ) start [2025-02-28 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574018', 'tblTempVendorCDR_20' ) end [2025-02-28 04:31:18] Production.INFO: ProcessCDR(1,14574018,1,1,2) [2025-02-28 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574018', 'tblTempUsageDetail_20' ) start [2025-02-28 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574018', 'tblTempUsageDetail_20' ) end [2025-02-28 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:31:22] Production.INFO: ==9364== Releasing lock... [2025-02-28 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:31:22] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:32:06 [end_date_ymd] => 2025-02-28 04:32:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:32:06' and `end` < '2025-02-28 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-02-28 04:32:18] Production.INFO: count ==197 [2025-02-28 04:32:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:32:06 - End Time 2025-02-28 04:32:06 [2025-02-28 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574023', 'tblTempUsageDetail_20' ) start [2025-02-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574023', 'tblTempUsageDetail_20' ) end [2025-02-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574023', 'tblTempVendorCDR_20' ) start [2025-02-28 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574023', 'tblTempVendorCDR_20' ) end [2025-02-28 04:32:18] Production.INFO: ProcessCDR(1,14574023,1,1,2) [2025-02-28 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574023', 'tblTempUsageDetail_20' ) start [2025-02-28 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574023', 'tblTempUsageDetail_20' ) end [2025-02-28 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:32:21] Production.INFO: ==9510== Releasing lock... [2025-02-28 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:32:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:33:05 [end_date_ymd] => 2025-02-28 04:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:33:05' and `end` < '2025-02-28 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-02-28 04:33:17] Production.INFO: count ==197 [2025-02-28 04:33:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:33:05 - End Time 2025-02-28 04:33:05 [2025-02-28 04:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574028', 'tblTempUsageDetail_20' ) start [2025-02-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574028', 'tblTempUsageDetail_20' ) end [2025-02-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574028', 'tblTempVendorCDR_20' ) start [2025-02-28 04:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574028', 'tblTempVendorCDR_20' ) end [2025-02-28 04:33:17] Production.INFO: ProcessCDR(1,14574028,1,1,2) [2025-02-28 04:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574028', 'tblTempUsageDetail_20' ) start [2025-02-28 04:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574028', 'tblTempUsageDetail_20' ) end [2025-02-28 04:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:33:20] Production.INFO: ==9589== Releasing lock... [2025-02-28 04:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:33:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:34:05 [end_date_ymd] => 2025-02-28 04:34:05 [RateCDR] => 1 ) [2025-02-28 04:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:34:05' and `end` < '2025-02-28 04:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:34:17] Production.INFO: count ==197 [2025-02-28 04:34:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:34:05 - End Time 2025-02-28 04:34:05 [2025-02-28 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574033', 'tblTempUsageDetail_20' ) start [2025-02-28 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574033', 'tblTempUsageDetail_20' ) end [2025-02-28 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574033', 'tblTempVendorCDR_20' ) start [2025-02-28 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574033', 'tblTempVendorCDR_20' ) end [2025-02-28 04:34:17] Production.INFO: ProcessCDR(1,14574033,1,1,2) [2025-02-28 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574033', 'tblTempUsageDetail_20' ) start [2025-02-28 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574033', 'tblTempUsageDetail_20' ) end [2025-02-28 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:34:20] Production.INFO: ==9664== Releasing lock... [2025-02-28 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:34:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:35:04 [end_date_ymd] => 2025-02-28 04:35:04 [RateCDR] => 1 ) [2025-02-28 04:35:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:35:04' and `end` < '2025-02-28 04:35:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:35:16] Production.INFO: count ==197 [2025-02-28 04:35:16] Production.ERROR: pbx CDR StartTime 2025-02-28 01:35:04 - End Time 2025-02-28 04:35:04 [2025-02-28 04:35:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574038', 'tblTempUsageDetail_20' ) start [2025-02-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574038', 'tblTempUsageDetail_20' ) end [2025-02-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574038', 'tblTempVendorCDR_20' ) start [2025-02-28 04:35:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574038', 'tblTempVendorCDR_20' ) end [2025-02-28 04:35:16] Production.INFO: ProcessCDR(1,14574038,1,1,2) [2025-02-28 04:35:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:35:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:35:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574038', 'tblTempUsageDetail_20' ) start [2025-02-28 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574038', 'tblTempUsageDetail_20' ) end [2025-02-28 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:35:20] Production.INFO: ==9781== Releasing lock... [2025-02-28 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:35:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:36:05 [end_date_ymd] => 2025-02-28 04:36:05 [RateCDR] => 1 ) [2025-02-28 04:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:36:05' and `end` < '2025-02-28 04:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:36:17] Production.INFO: count ==197 [2025-02-28 04:36:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:36:05 - End Time 2025-02-28 04:36:05 [2025-02-28 04:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574043', 'tblTempUsageDetail_20' ) start [2025-02-28 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574043', 'tblTempUsageDetail_20' ) end [2025-02-28 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574043', 'tblTempVendorCDR_20' ) start [2025-02-28 04:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574043', 'tblTempVendorCDR_20' ) end [2025-02-28 04:36:17] Production.INFO: ProcessCDR(1,14574043,1,1,2) [2025-02-28 04:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574043', 'tblTempUsageDetail_20' ) start [2025-02-28 04:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574043', 'tblTempUsageDetail_20' ) end [2025-02-28 04:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:36:20] Production.INFO: ==9857== Releasing lock... [2025-02-28 04:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:36:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:37:05 [end_date_ymd] => 2025-02-28 04:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:37:05' and `end` < '2025-02-28 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-02-28 04:37:17] Production.INFO: count ==197 [2025-02-28 04:37:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:37:05 - End Time 2025-02-28 04:37:05 [2025-02-28 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574048', 'tblTempUsageDetail_20' ) start [2025-02-28 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574048', 'tblTempUsageDetail_20' ) end [2025-02-28 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574048', 'tblTempVendorCDR_20' ) start [2025-02-28 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574048', 'tblTempVendorCDR_20' ) end [2025-02-28 04:37:17] Production.INFO: ProcessCDR(1,14574048,1,1,2) [2025-02-28 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574048', 'tblTempUsageDetail_20' ) start [2025-02-28 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574048', 'tblTempUsageDetail_20' ) end [2025-02-28 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:37:20] Production.INFO: ==9936== Releasing lock... [2025-02-28 04:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:37:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:38:06 [end_date_ymd] => 2025-02-28 04:38:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:38:06' and `end` < '2025-02-28 04: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-02-28 04:38:17] Production.INFO: count ==197 [2025-02-28 04:38:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:38:06 - End Time 2025-02-28 04:38:06 [2025-02-28 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574053', 'tblTempUsageDetail_20' ) start [2025-02-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574053', 'tblTempUsageDetail_20' ) end [2025-02-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574053', 'tblTempVendorCDR_20' ) start [2025-02-28 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574053', 'tblTempVendorCDR_20' ) end [2025-02-28 04:38:17] Production.INFO: ProcessCDR(1,14574053,1,1,2) [2025-02-28 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574053', 'tblTempUsageDetail_20' ) start [2025-02-28 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574053', 'tblTempUsageDetail_20' ) end [2025-02-28 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:38:21] Production.INFO: ==10013== Releasing lock... [2025-02-28 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:38:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:39:05 [end_date_ymd] => 2025-02-28 04:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:39:05' and `end` < '2025-02-28 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-02-28 04:39:17] Production.INFO: count ==197 [2025-02-28 04:39:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:39:05 - End Time 2025-02-28 04:39:05 [2025-02-28 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574058', 'tblTempUsageDetail_20' ) start [2025-02-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574058', 'tblTempUsageDetail_20' ) end [2025-02-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574058', 'tblTempVendorCDR_20' ) start [2025-02-28 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574058', 'tblTempVendorCDR_20' ) end [2025-02-28 04:39:17] Production.INFO: ProcessCDR(1,14574058,1,1,2) [2025-02-28 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574058', 'tblTempUsageDetail_20' ) start [2025-02-28 04:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574058', 'tblTempUsageDetail_20' ) end [2025-02-28 04:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:39:21] Production.INFO: ==10085== Releasing lock... [2025-02-28 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:39:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:40:06 [end_date_ymd] => 2025-02-28 04:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:40:06' and `end` < '2025-02-28 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-02-28 04:40:18] Production.INFO: count ==193 [2025-02-28 04:40:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:40:06 - End Time 2025-02-28 04:40:06 [2025-02-28 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574063', 'tblTempUsageDetail_20' ) start [2025-02-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574063', 'tblTempUsageDetail_20' ) end [2025-02-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574063', 'tblTempVendorCDR_20' ) start [2025-02-28 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574063', 'tblTempVendorCDR_20' ) end [2025-02-28 04:40:18] Production.INFO: ProcessCDR(1,14574063,1,1,2) [2025-02-28 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574063', 'tblTempUsageDetail_20' ) start [2025-02-28 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574063', 'tblTempUsageDetail_20' ) end [2025-02-28 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:40:21] Production.INFO: ==10163== Releasing lock... [2025-02-28 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:40:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:41:05 [end_date_ymd] => 2025-02-28 04:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:41:05' and `end` < '2025-02-28 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-02-28 04:41:17] Production.INFO: count ==187 [2025-02-28 04:41:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:41:05 - End Time 2025-02-28 04:41:05 [2025-02-28 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574069', 'tblTempUsageDetail_20' ) start [2025-02-28 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574069', 'tblTempUsageDetail_20' ) end [2025-02-28 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574069', 'tblTempVendorCDR_20' ) start [2025-02-28 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574069', 'tblTempVendorCDR_20' ) end [2025-02-28 04:41:17] Production.INFO: ProcessCDR(1,14574069,1,1,2) [2025-02-28 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574069', 'tblTempUsageDetail_20' ) start [2025-02-28 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574069', 'tblTempUsageDetail_20' ) end [2025-02-28 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:41:20] Production.INFO: ==10241== Releasing lock... [2025-02-28 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:41:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:42:04 [end_date_ymd] => 2025-02-28 04:42:04 [RateCDR] => 1 ) [2025-02-28 04:42:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:42:04' and `end` < '2025-02-28 04:42:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:42:16] Production.INFO: count ==187 [2025-02-28 04:42:16] Production.ERROR: pbx CDR StartTime 2025-02-28 01:42:04 - End Time 2025-02-28 04:42:04 [2025-02-28 04:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574074', 'tblTempUsageDetail_20' ) start [2025-02-28 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574074', 'tblTempUsageDetail_20' ) end [2025-02-28 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574074', 'tblTempVendorCDR_20' ) start [2025-02-28 04:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574074', 'tblTempVendorCDR_20' ) end [2025-02-28 04:42:16] Production.INFO: ProcessCDR(1,14574074,1,1,2) [2025-02-28 04:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574074', 'tblTempUsageDetail_20' ) start [2025-02-28 04:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574074', 'tblTempUsageDetail_20' ) end [2025-02-28 04:42:19] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:42:19] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:42:19] Production.INFO: ==10317== Releasing lock... [2025-02-28 04:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:42:19] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:43:05 [end_date_ymd] => 2025-02-28 04:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:43:05' and `end` < '2025-02-28 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-02-28 04:43:17] Production.INFO: count ==187 [2025-02-28 04:43:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:43:05 - End Time 2025-02-28 04:43:05 [2025-02-28 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574079', 'tblTempUsageDetail_20' ) start [2025-02-28 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574079', 'tblTempUsageDetail_20' ) end [2025-02-28 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574079', 'tblTempVendorCDR_20' ) start [2025-02-28 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574079', 'tblTempVendorCDR_20' ) end [2025-02-28 04:43:17] Production.INFO: ProcessCDR(1,14574079,1,1,2) [2025-02-28 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574079', 'tblTempUsageDetail_20' ) start [2025-02-28 04:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574079', 'tblTempUsageDetail_20' ) end [2025-02-28 04:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:43:20] Production.INFO: ==10390== Releasing lock... [2025-02-28 04:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:43:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:44:05 [end_date_ymd] => 2025-02-28 04:44:05 [RateCDR] => 1 ) [2025-02-28 04:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:44:05' and `end` < '2025-02-28 04:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:44:16] Production.INFO: count ==187 [2025-02-28 04:44:16] Production.ERROR: pbx CDR StartTime 2025-02-28 01:44:05 - End Time 2025-02-28 04:44:05 [2025-02-28 04:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574084', 'tblTempUsageDetail_20' ) start [2025-02-28 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574084', 'tblTempUsageDetail_20' ) end [2025-02-28 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574084', 'tblTempVendorCDR_20' ) start [2025-02-28 04:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574084', 'tblTempVendorCDR_20' ) end [2025-02-28 04:44:16] Production.INFO: ProcessCDR(1,14574084,1,1,2) [2025-02-28 04:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574084', 'tblTempUsageDetail_20' ) start [2025-02-28 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574084', 'tblTempUsageDetail_20' ) end [2025-02-28 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:44:20] Production.INFO: ==10470== Releasing lock... [2025-02-28 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:44:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:45:05 [end_date_ymd] => 2025-02-28 04:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:45:05' and `end` < '2025-02-28 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-02-28 04:45:17] Production.INFO: count ==187 [2025-02-28 04:45:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:45:05 - End Time 2025-02-28 04:45:05 [2025-02-28 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574089', 'tblTempUsageDetail_20' ) start [2025-02-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574089', 'tblTempUsageDetail_20' ) end [2025-02-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574089', 'tblTempVendorCDR_20' ) start [2025-02-28 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574089', 'tblTempVendorCDR_20' ) end [2025-02-28 04:45:17] Production.INFO: ProcessCDR(1,14574089,1,1,2) [2025-02-28 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574089', 'tblTempUsageDetail_20' ) start [2025-02-28 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574089', 'tblTempUsageDetail_20' ) end [2025-02-28 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:45:20] Production.INFO: ==10543== Releasing lock... [2025-02-28 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:45:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:46:05 [end_date_ymd] => 2025-02-28 04:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:46:05' and `end` < '2025-02-28 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-02-28 04:46:17] Production.INFO: count ==187 [2025-02-28 04:46:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:46:05 - End Time 2025-02-28 04:46:05 [2025-02-28 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574094', 'tblTempUsageDetail_20' ) start [2025-02-28 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574094', 'tblTempUsageDetail_20' ) end [2025-02-28 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574094', 'tblTempVendorCDR_20' ) start [2025-02-28 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574094', 'tblTempVendorCDR_20' ) end [2025-02-28 04:46:17] Production.INFO: ProcessCDR(1,14574094,1,1,2) [2025-02-28 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574094', 'tblTempUsageDetail_20' ) start [2025-02-28 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574094', 'tblTempUsageDetail_20' ) end [2025-02-28 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:46:21] Production.INFO: ==10614== Releasing lock... [2025-02-28 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:46:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:47:05 [end_date_ymd] => 2025-02-28 04:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:47:05' and `end` < '2025-02-28 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-02-28 04:47:17] Production.INFO: count ==187 [2025-02-28 04:47:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:47:05 - End Time 2025-02-28 04:47:05 [2025-02-28 04:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574099', 'tblTempUsageDetail_20' ) start [2025-02-28 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574099', 'tblTempUsageDetail_20' ) end [2025-02-28 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574099', 'tblTempVendorCDR_20' ) start [2025-02-28 04:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574099', 'tblTempVendorCDR_20' ) end [2025-02-28 04:47:17] Production.INFO: ProcessCDR(1,14574099,1,1,2) [2025-02-28 04:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574099', 'tblTempUsageDetail_20' ) start [2025-02-28 04:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574099', 'tblTempUsageDetail_20' ) end [2025-02-28 04:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:47:20] Production.INFO: ==10686== Releasing lock... [2025-02-28 04:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:47:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:48:05 [end_date_ymd] => 2025-02-28 04:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:48:05' and `end` < '2025-02-28 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-02-28 04:48:17] Production.INFO: count ==187 [2025-02-28 04:48:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:48:05 - End Time 2025-02-28 04:48:05 [2025-02-28 04:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574104', 'tblTempUsageDetail_20' ) start [2025-02-28 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574104', 'tblTempUsageDetail_20' ) end [2025-02-28 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574104', 'tblTempVendorCDR_20' ) start [2025-02-28 04:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574104', 'tblTempVendorCDR_20' ) end [2025-02-28 04:48:17] Production.INFO: ProcessCDR(1,14574104,1,1,2) [2025-02-28 04:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574104', 'tblTempUsageDetail_20' ) start [2025-02-28 04:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574104', 'tblTempUsageDetail_20' ) end [2025-02-28 04:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:48:20] Production.INFO: ==10758== Releasing lock... [2025-02-28 04:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:48:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:49:05 [end_date_ymd] => 2025-02-28 04:49:05 [RateCDR] => 1 ) [2025-02-28 04:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:49:05' and `end` < '2025-02-28 04:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:49:19] Production.INFO: count ==187 [2025-02-28 04:49:19] Production.ERROR: pbx CDR StartTime 2025-02-28 01:49:05 - End Time 2025-02-28 04:49:05 [2025-02-28 04:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574109', 'tblTempUsageDetail_20' ) start [2025-02-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574109', 'tblTempUsageDetail_20' ) end [2025-02-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574109', 'tblTempVendorCDR_20' ) start [2025-02-28 04:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574109', 'tblTempVendorCDR_20' ) end [2025-02-28 04:49:19] Production.INFO: ProcessCDR(1,14574109,1,1,2) [2025-02-28 04:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574109', 'tblTempUsageDetail_20' ) start [2025-02-28 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574109', 'tblTempUsageDetail_20' ) end [2025-02-28 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:49:22] Production.INFO: ==10835== Releasing lock... [2025-02-28 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:49:22] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:50:06 [end_date_ymd] => 2025-02-28 04:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:50:06' and `end` < '2025-02-28 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-02-28 04:50:18] Production.INFO: count ==184 [2025-02-28 04:50:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:50:06 - End Time 2025-02-28 04:50:06 [2025-02-28 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574114', 'tblTempUsageDetail_20' ) start [2025-02-28 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574114', 'tblTempUsageDetail_20' ) end [2025-02-28 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574114', 'tblTempVendorCDR_20' ) start [2025-02-28 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574114', 'tblTempVendorCDR_20' ) end [2025-02-28 04:50:18] Production.INFO: ProcessCDR(1,14574114,1,1,2) [2025-02-28 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574114', 'tblTempUsageDetail_20' ) start [2025-02-28 04:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574114', 'tblTempUsageDetail_20' ) end [2025-02-28 04:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:50:21] Production.INFO: ==10907== Releasing lock... [2025-02-28 04:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:50:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:51:06 [end_date_ymd] => 2025-02-28 04:51:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:51:06' and `end` < '2025-02-28 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-02-28 04:51:18] Production.INFO: count ==184 [2025-02-28 04:51:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:51:06 - End Time 2025-02-28 04:51:06 [2025-02-28 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574120', 'tblTempUsageDetail_20' ) start [2025-02-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574120', 'tblTempUsageDetail_20' ) end [2025-02-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574120', 'tblTempVendorCDR_20' ) start [2025-02-28 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574120', 'tblTempVendorCDR_20' ) end [2025-02-28 04:51:18] Production.INFO: ProcessCDR(1,14574120,1,1,2) [2025-02-28 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574120', 'tblTempUsageDetail_20' ) start [2025-02-28 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574120', 'tblTempUsageDetail_20' ) end [2025-02-28 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:51:21] Production.INFO: ==11019== Releasing lock... [2025-02-28 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:51:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:52:04 [end_date_ymd] => 2025-02-28 04:52:04 [RateCDR] => 1 ) [2025-02-28 04:52:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:52:04' and `end` < '2025-02-28 04:52:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:52:17] Production.INFO: count ==184 [2025-02-28 04:52:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:52:04 - End Time 2025-02-28 04:52:04 [2025-02-28 04:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574125', 'tblTempUsageDetail_20' ) start [2025-02-28 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574125', 'tblTempUsageDetail_20' ) end [2025-02-28 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574125', 'tblTempVendorCDR_20' ) start [2025-02-28 04:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574125', 'tblTempVendorCDR_20' ) end [2025-02-28 04:52:17] Production.INFO: ProcessCDR(1,14574125,1,1,2) [2025-02-28 04:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574125', 'tblTempUsageDetail_20' ) start [2025-02-28 04:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574125', 'tblTempUsageDetail_20' ) end [2025-02-28 04:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:52:21] Production.INFO: ==11091== Releasing lock... [2025-02-28 04:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:52:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:53:06 [end_date_ymd] => 2025-02-28 04:53:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:53:06' and `end` < '2025-02-28 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-02-28 04:53:18] Production.INFO: count ==189 [2025-02-28 04:53:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:53:06 - End Time 2025-02-28 04:53:06 [2025-02-28 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574130', 'tblTempUsageDetail_20' ) start [2025-02-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574130', 'tblTempUsageDetail_20' ) end [2025-02-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574130', 'tblTempVendorCDR_20' ) start [2025-02-28 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574130', 'tblTempVendorCDR_20' ) end [2025-02-28 04:53:18] Production.INFO: ProcessCDR(1,14574130,1,1,2) [2025-02-28 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574130', 'tblTempUsageDetail_20' ) start [2025-02-28 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574130', 'tblTempUsageDetail_20' ) end [2025-02-28 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:53:21] Production.INFO: ==11166== Releasing lock... [2025-02-28 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:53:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:54:04 [end_date_ymd] => 2025-02-28 04:54:04 [RateCDR] => 1 ) [2025-02-28 04:54:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:54:04' and `end` < '2025-02-28 04:54:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:54:18] Production.INFO: count ==189 [2025-02-28 04:54:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:54:04 - End Time 2025-02-28 04:54:04 [2025-02-28 04:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574135', 'tblTempUsageDetail_20' ) start [2025-02-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574135', 'tblTempUsageDetail_20' ) end [2025-02-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574135', 'tblTempVendorCDR_20' ) start [2025-02-28 04:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574135', 'tblTempVendorCDR_20' ) end [2025-02-28 04:54:18] Production.INFO: ProcessCDR(1,14574135,1,1,2) [2025-02-28 04:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574135', 'tblTempUsageDetail_20' ) start [2025-02-28 04:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574135', 'tblTempUsageDetail_20' ) end [2025-02-28 04:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:54:21] Production.INFO: ==11238== Releasing lock... [2025-02-28 04:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:54:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:55:05 [end_date_ymd] => 2025-02-28 04:55:05 [RateCDR] => 1 ) [2025-02-28 04:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:55:05' and `end` < '2025-02-28 04:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:55:17] Production.INFO: count ==184 [2025-02-28 04:55:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:55:05 - End Time 2025-02-28 04:55:05 [2025-02-28 04:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574140', 'tblTempUsageDetail_20' ) start [2025-02-28 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574140', 'tblTempUsageDetail_20' ) end [2025-02-28 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574140', 'tblTempVendorCDR_20' ) start [2025-02-28 04:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574140', 'tblTempVendorCDR_20' ) end [2025-02-28 04:55:17] Production.INFO: ProcessCDR(1,14574140,1,1,2) [2025-02-28 04:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574140', 'tblTempUsageDetail_20' ) start [2025-02-28 04:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574140', 'tblTempUsageDetail_20' ) end [2025-02-28 04:55:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:55:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:55:20] Production.INFO: ==11310== Releasing lock... [2025-02-28 04:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:55:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 04:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:56:04 [end_date_ymd] => 2025-02-28 04:56:04 [RateCDR] => 1 ) [2025-02-28 04:56:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:56:04' and `end` < '2025-02-28 04:56:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:56:16] Production.INFO: count ==179 [2025-02-28 04:56:16] Production.ERROR: pbx CDR StartTime 2025-02-28 01:56:04 - End Time 2025-02-28 04:56:04 [2025-02-28 04:56:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574145', 'tblTempUsageDetail_20' ) start [2025-02-28 04:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574145', 'tblTempUsageDetail_20' ) end [2025-02-28 04:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574145', 'tblTempVendorCDR_20' ) start [2025-02-28 04:56:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574145', 'tblTempVendorCDR_20' ) end [2025-02-28 04:56:16] Production.INFO: ProcessCDR(1,14574145,1,1,2) [2025-02-28 04:56:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:56:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:56:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574145', 'tblTempUsageDetail_20' ) start [2025-02-28 04:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574145', 'tblTempUsageDetail_20' ) end [2025-02-28 04:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:56:20] Production.INFO: ==11385== Releasing lock... [2025-02-28 04:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:57:05 [end_date_ymd] => 2025-02-28 04:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 01:57:05' and `end` < '2025-02-28 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-02-28 04:57:18] Production.INFO: count ==179 [2025-02-28 04:57:18] Production.ERROR: pbx CDR StartTime 2025-02-28 01:57:05 - End Time 2025-02-28 04:57:05 [2025-02-28 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574150', 'tblTempUsageDetail_20' ) start [2025-02-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574150', 'tblTempUsageDetail_20' ) end [2025-02-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574150', 'tblTempVendorCDR_20' ) start [2025-02-28 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574150', 'tblTempVendorCDR_20' ) end [2025-02-28 04:57:18] Production.INFO: ProcessCDR(1,14574150,1,1,2) [2025-02-28 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574150', 'tblTempUsageDetail_20' ) start [2025-02-28 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574150', 'tblTempUsageDetail_20' ) end [2025-02-28 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:57:21] Production.INFO: ==11486== Releasing lock... [2025-02-28 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 04:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:58:06 [end_date_ymd] => 2025-02-28 04:58:06 [RateCDR] => 1 ) [2025-02-28 04: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-02-28 01:58:06' and `end` < '2025-02-28 04: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-02-28 04:58:19] Production.INFO: count ==178 [2025-02-28 04:58:19] Production.ERROR: pbx CDR StartTime 2025-02-28 01:58:06 - End Time 2025-02-28 04:58:06 [2025-02-28 04:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574155', 'tblTempUsageDetail_20' ) start [2025-02-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574155', 'tblTempUsageDetail_20' ) end [2025-02-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574155', 'tblTempVendorCDR_20' ) start [2025-02-28 04:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574155', 'tblTempVendorCDR_20' ) end [2025-02-28 04:58:19] Production.INFO: ProcessCDR(1,14574155,1,1,2) [2025-02-28 04:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574155', 'tblTempUsageDetail_20' ) start [2025-02-28 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574155', 'tblTempUsageDetail_20' ) end [2025-02-28 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:58:22] Production.INFO: ==11582== Releasing lock... [2025-02-28 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 01:59:05 [end_date_ymd] => 2025-02-28 04:59:05 [RateCDR] => 1 ) [2025-02-28 04:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 01:59:05' and `end` < '2025-02-28 04:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 04:59:17] Production.INFO: count ==178 [2025-02-28 04:59:17] Production.ERROR: pbx CDR StartTime 2025-02-28 01:59:05 - End Time 2025-02-28 04:59:05 [2025-02-28 04:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574160', 'tblTempUsageDetail_20' ) start [2025-02-28 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574160', 'tblTempUsageDetail_20' ) end [2025-02-28 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574160', 'tblTempVendorCDR_20' ) start [2025-02-28 04:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574160', 'tblTempVendorCDR_20' ) end [2025-02-28 04:59:17] Production.INFO: ProcessCDR(1,14574160,1,1,2) [2025-02-28 04:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 04:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574160', 'tblTempUsageDetail_20' ) start [2025-02-28 04:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574160', 'tblTempUsageDetail_20' ) end [2025-02-28 04:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 04:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 04:59:20] Production.INFO: ==11675== Releasing lock... [2025-02-28 04:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 04:59:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:00:06 [end_date_ymd] => 2025-02-28 05:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:00:06' and `end` < '2025-02-28 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-02-28 05:00:18] Production.INFO: count ==173 [2025-02-28 05:00:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:00:06 - End Time 2025-02-28 05:00:06 [2025-02-28 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574166', 'tblTempUsageDetail_20' ) start [2025-02-28 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574166', 'tblTempUsageDetail_20' ) end [2025-02-28 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574166', 'tblTempVendorCDR_20' ) start [2025-02-28 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574166', 'tblTempVendorCDR_20' ) end [2025-02-28 05:00:18] Production.INFO: ProcessCDR(1,14574166,1,1,2) [2025-02-28 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574166', 'tblTempUsageDetail_20' ) start [2025-02-28 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574166', 'tblTempUsageDetail_20' ) end [2025-02-28 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:00:21] Production.INFO: ==11773== Releasing lock... [2025-02-28 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:01:05 [end_date_ymd] => 2025-02-28 05:01:05 [RateCDR] => 1 ) [2025-02-28 05:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:01:05' and `end` < '2025-02-28 05:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:01:19] Production.INFO: count ==166 [2025-02-28 05:01:19] Production.ERROR: pbx CDR StartTime 2025-02-28 02:01:05 - End Time 2025-02-28 05:01:05 [2025-02-28 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574171', 'tblTempUsageDetail_20' ) start [2025-02-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574171', 'tblTempUsageDetail_20' ) end [2025-02-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574171', 'tblTempVendorCDR_20' ) start [2025-02-28 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574171', 'tblTempVendorCDR_20' ) end [2025-02-28 05:01:19] Production.INFO: ProcessCDR(1,14574171,1,1,2) [2025-02-28 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574171', 'tblTempUsageDetail_20' ) start [2025-02-28 05:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574171', 'tblTempUsageDetail_20' ) end [2025-02-28 05:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:01:22] Production.INFO: ==11883== Releasing lock... [2025-02-28 05:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:01:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:02:06 [end_date_ymd] => 2025-02-28 05:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:02:06' and `end` < '2025-02-28 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-02-28 05:02:18] Production.INFO: count ==166 [2025-02-28 05:02:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:02:06 - End Time 2025-02-28 05:02:06 [2025-02-28 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574176', 'tblTempUsageDetail_20' ) start [2025-02-28 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574176', 'tblTempUsageDetail_20' ) end [2025-02-28 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574176', 'tblTempVendorCDR_20' ) start [2025-02-28 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574176', 'tblTempVendorCDR_20' ) end [2025-02-28 05:02:18] Production.INFO: ProcessCDR(1,14574176,1,1,2) [2025-02-28 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574176', 'tblTempUsageDetail_20' ) start [2025-02-28 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574176', 'tblTempUsageDetail_20' ) end [2025-02-28 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:02:22] Production.INFO: ==11980== Releasing lock... [2025-02-28 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:03:05 [end_date_ymd] => 2025-02-28 05:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:03:05' and `end` < '2025-02-28 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-02-28 05:03:17] Production.INFO: count ==166 [2025-02-28 05:03:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:03:05 - End Time 2025-02-28 05:03:05 [2025-02-28 05:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574181', 'tblTempUsageDetail_20' ) start [2025-02-28 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574181', 'tblTempUsageDetail_20' ) end [2025-02-28 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574181', 'tblTempVendorCDR_20' ) start [2025-02-28 05:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574181', 'tblTempVendorCDR_20' ) end [2025-02-28 05:03:17] Production.INFO: ProcessCDR(1,14574181,1,1,2) [2025-02-28 05:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574181', 'tblTempUsageDetail_20' ) start [2025-02-28 05:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574181', 'tblTempUsageDetail_20' ) end [2025-02-28 05:03:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:03:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:03:20] Production.INFO: ==12072== Releasing lock... [2025-02-28 05:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:03:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:04:06 [end_date_ymd] => 2025-02-28 05:04:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:04:06' and `end` < '2025-02-28 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-02-28 05:04:18] Production.INFO: count ==162 [2025-02-28 05:04:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:04:06 - End Time 2025-02-28 05:04:06 [2025-02-28 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574186', 'tblTempUsageDetail_20' ) start [2025-02-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574186', 'tblTempUsageDetail_20' ) end [2025-02-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574186', 'tblTempVendorCDR_20' ) start [2025-02-28 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574186', 'tblTempVendorCDR_20' ) end [2025-02-28 05:04:18] Production.INFO: ProcessCDR(1,14574186,1,1,2) [2025-02-28 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574186', 'tblTempUsageDetail_20' ) start [2025-02-28 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574186', 'tblTempUsageDetail_20' ) end [2025-02-28 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:04:21] Production.INFO: ==12169== Releasing lock... [2025-02-28 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:05:05 [end_date_ymd] => 2025-02-28 05:05:05 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:05:05' and `end` < '2025-02-28 05:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:05:17] Production.INFO: count ==167 [2025-02-28 05:05:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:05:05 - End Time 2025-02-28 05:05:05 [2025-02-28 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574191', 'tblTempUsageDetail_20' ) start [2025-02-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574191', 'tblTempUsageDetail_20' ) end [2025-02-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574191', 'tblTempVendorCDR_20' ) start [2025-02-28 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574191', 'tblTempVendorCDR_20' ) end [2025-02-28 05:05:17] Production.INFO: ProcessCDR(1,14574191,1,1,2) [2025-02-28 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574191', 'tblTempUsageDetail_20' ) start [2025-02-28 05:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574191', 'tblTempUsageDetail_20' ) end [2025-02-28 05:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:05:20] Production.INFO: ==12265== Releasing lock... [2025-02-28 05:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:05:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:06:05 [end_date_ymd] => 2025-02-28 05:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:06:05' and `end` < '2025-02-28 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-02-28 05:06:17] Production.INFO: count ==167 [2025-02-28 05:06:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:06:05 - End Time 2025-02-28 05:06:05 [2025-02-28 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574196', 'tblTempUsageDetail_20' ) start [2025-02-28 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574196', 'tblTempUsageDetail_20' ) end [2025-02-28 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574196', 'tblTempVendorCDR_20' ) start [2025-02-28 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574196', 'tblTempVendorCDR_20' ) end [2025-02-28 05:06:17] Production.INFO: ProcessCDR(1,14574196,1,1,2) [2025-02-28 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574196', 'tblTempUsageDetail_20' ) start [2025-02-28 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574196', 'tblTempUsageDetail_20' ) end [2025-02-28 05:06:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:06:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:06:20] Production.INFO: ==12397== Releasing lock... [2025-02-28 05:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:06:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:07:05 [end_date_ymd] => 2025-02-28 05:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:07:05' and `end` < '2025-02-28 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-02-28 05:07:17] Production.INFO: count ==167 [2025-02-28 05:07:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:07:05 - End Time 2025-02-28 05:07:05 [2025-02-28 05:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574201', 'tblTempUsageDetail_20' ) start [2025-02-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574201', 'tblTempUsageDetail_20' ) end [2025-02-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574201', 'tblTempVendorCDR_20' ) start [2025-02-28 05:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574201', 'tblTempVendorCDR_20' ) end [2025-02-28 05:07:17] Production.INFO: ProcessCDR(1,14574201,1,1,2) [2025-02-28 05:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574201', 'tblTempUsageDetail_20' ) start [2025-02-28 05:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574201', 'tblTempUsageDetail_20' ) end [2025-02-28 05:07:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:07:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:07:20] Production.INFO: ==12498== Releasing lock... [2025-02-28 05:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:07:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:08:05 [end_date_ymd] => 2025-02-28 05:08:05 [RateCDR] => 1 ) [2025-02-28 05:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:08:05' and `end` < '2025-02-28 05:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:08:17] Production.INFO: count ==165 [2025-02-28 05:08:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:08:05 - End Time 2025-02-28 05:08:05 [2025-02-28 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574206', 'tblTempUsageDetail_20' ) start [2025-02-28 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574206', 'tblTempUsageDetail_20' ) end [2025-02-28 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574206', 'tblTempVendorCDR_20' ) start [2025-02-28 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574206', 'tblTempVendorCDR_20' ) end [2025-02-28 05:08:17] Production.INFO: ProcessCDR(1,14574206,1,1,2) [2025-02-28 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574206', 'tblTempUsageDetail_20' ) start [2025-02-28 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574206', 'tblTempUsageDetail_20' ) end [2025-02-28 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:08:20] Production.INFO: ==12595== Releasing lock... [2025-02-28 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:08:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:09:06 [end_date_ymd] => 2025-02-28 05:09:06 [RateCDR] => 1 ) [2025-02-28 05:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:09:06' and `end` < '2025-02-28 05:09:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:09:18] Production.INFO: count ==163 [2025-02-28 05:09:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:09:06 - End Time 2025-02-28 05:09:06 [2025-02-28 05:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574211', 'tblTempUsageDetail_20' ) start [2025-02-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574211', 'tblTempUsageDetail_20' ) end [2025-02-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574211', 'tblTempVendorCDR_20' ) start [2025-02-28 05:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574211', 'tblTempVendorCDR_20' ) end [2025-02-28 05:09:18] Production.INFO: ProcessCDR(1,14574211,1,1,2) [2025-02-28 05:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574211', 'tblTempUsageDetail_20' ) start [2025-02-28 05:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574211', 'tblTempUsageDetail_20' ) end [2025-02-28 05:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:09:21] Production.INFO: ==12688== Releasing lock... [2025-02-28 05:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:09:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:10:05 [end_date_ymd] => 2025-02-28 05:10:05 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:10:05' and `end` < '2025-02-28 05: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-02-28 05:10:17] Production.INFO: count ==161 [2025-02-28 05:10:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:10:05 - End Time 2025-02-28 05:10:05 [2025-02-28 05:10:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574216', 'tblTempUsageDetail_20' ) start [2025-02-28 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574216', 'tblTempUsageDetail_20' ) end [2025-02-28 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574216', 'tblTempVendorCDR_20' ) start [2025-02-28 05:10:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574216', 'tblTempVendorCDR_20' ) end [2025-02-28 05:10:17] Production.INFO: ProcessCDR(1,14574216,1,1,2) [2025-02-28 05:10:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:10:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:10:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574216', 'tblTempUsageDetail_20' ) start [2025-02-28 05:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574216', 'tblTempUsageDetail_20' ) end [2025-02-28 05:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:10:21] Production.INFO: ==12790== Releasing lock... [2025-02-28 05:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:11:06 [end_date_ymd] => 2025-02-28 05:11:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:11:06' and `end` < '2025-02-28 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-02-28 05:11:18] Production.INFO: count ==159 [2025-02-28 05:11:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:11:06 - End Time 2025-02-28 05:11:06 [2025-02-28 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574222', 'tblTempUsageDetail_20' ) start [2025-02-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574222', 'tblTempUsageDetail_20' ) end [2025-02-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574222', 'tblTempVendorCDR_20' ) start [2025-02-28 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574222', 'tblTempVendorCDR_20' ) end [2025-02-28 05:11:18] Production.INFO: ProcessCDR(1,14574222,1,1,2) [2025-02-28 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574222', 'tblTempUsageDetail_20' ) start [2025-02-28 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574222', 'tblTempUsageDetail_20' ) end [2025-02-28 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:11:21] Production.INFO: ==12895== Releasing lock... [2025-02-28 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:12:05 [end_date_ymd] => 2025-02-28 05:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:12:05' and `end` < '2025-02-28 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-02-28 05:12:17] Production.INFO: count ==159 [2025-02-28 05:12:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:12:05 - End Time 2025-02-28 05:12:05 [2025-02-28 05:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574227', 'tblTempUsageDetail_20' ) start [2025-02-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574227', 'tblTempUsageDetail_20' ) end [2025-02-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574227', 'tblTempVendorCDR_20' ) start [2025-02-28 05:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574227', 'tblTempVendorCDR_20' ) end [2025-02-28 05:12:17] Production.INFO: ProcessCDR(1,14574227,1,1,2) [2025-02-28 05:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574227', 'tblTempUsageDetail_20' ) start [2025-02-28 05:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574227', 'tblTempUsageDetail_20' ) end [2025-02-28 05:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:12:21] Production.INFO: ==12990== Releasing lock... [2025-02-28 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:13:05 [end_date_ymd] => 2025-02-28 05:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:13:05' and `end` < '2025-02-28 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-02-28 05:13:17] Production.INFO: count ==159 [2025-02-28 05:13:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:13:05 - End Time 2025-02-28 05:13:05 [2025-02-28 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574232', 'tblTempUsageDetail_20' ) start [2025-02-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574232', 'tblTempUsageDetail_20' ) end [2025-02-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574232', 'tblTempVendorCDR_20' ) start [2025-02-28 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574232', 'tblTempVendorCDR_20' ) end [2025-02-28 05:13:17] Production.INFO: ProcessCDR(1,14574232,1,1,2) [2025-02-28 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574232', 'tblTempUsageDetail_20' ) start [2025-02-28 05:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574232', 'tblTempUsageDetail_20' ) end [2025-02-28 05:13:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:13:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:13:20] Production.INFO: ==13085== Releasing lock... [2025-02-28 05:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:14:05 [end_date_ymd] => 2025-02-28 05:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:14:05' and `end` < '2025-02-28 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-02-28 05:14:16] Production.INFO: count ==159 [2025-02-28 05:14:16] Production.ERROR: pbx CDR StartTime 2025-02-28 02:14:05 - End Time 2025-02-28 05:14:05 [2025-02-28 05:14:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574237', 'tblTempUsageDetail_20' ) start [2025-02-28 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574237', 'tblTempUsageDetail_20' ) end [2025-02-28 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574237', 'tblTempVendorCDR_20' ) start [2025-02-28 05:14:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574237', 'tblTempVendorCDR_20' ) end [2025-02-28 05:14:16] Production.INFO: ProcessCDR(1,14574237,1,1,2) [2025-02-28 05:14:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574237', 'tblTempUsageDetail_20' ) start [2025-02-28 05:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574237', 'tblTempUsageDetail_20' ) end [2025-02-28 05:14:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:14:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:14:20] Production.INFO: ==13177== Releasing lock... [2025-02-28 05:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:14:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:15:05 [end_date_ymd] => 2025-02-28 05:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:15:05' and `end` < '2025-02-28 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-02-28 05:15:17] Production.INFO: count ==159 [2025-02-28 05:15:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:15:05 - End Time 2025-02-28 05:15:05 [2025-02-28 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574242', 'tblTempUsageDetail_20' ) start [2025-02-28 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574242', 'tblTempUsageDetail_20' ) end [2025-02-28 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574242', 'tblTempVendorCDR_20' ) start [2025-02-28 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574242', 'tblTempVendorCDR_20' ) end [2025-02-28 05:15:17] Production.INFO: ProcessCDR(1,14574242,1,1,2) [2025-02-28 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574242', 'tblTempUsageDetail_20' ) start [2025-02-28 05:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574242', 'tblTempUsageDetail_20' ) end [2025-02-28 05:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:15:21] Production.INFO: ==13275== Releasing lock... [2025-02-28 05:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:16:04 [end_date_ymd] => 2025-02-28 05:16:04 [RateCDR] => 1 ) [2025-02-28 05:16: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-02-28 02:16:04' and `end` < '2025-02-28 05:16: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-02-28 05:16:16] Production.INFO: count ==159 [2025-02-28 05:16:16] Production.ERROR: pbx CDR StartTime 2025-02-28 02:16:04 - End Time 2025-02-28 05:16:04 [2025-02-28 05:16:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574247', 'tblTempUsageDetail_20' ) start [2025-02-28 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574247', 'tblTempUsageDetail_20' ) end [2025-02-28 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574247', 'tblTempVendorCDR_20' ) start [2025-02-28 05:16:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574247', 'tblTempVendorCDR_20' ) end [2025-02-28 05:16:16] Production.INFO: ProcessCDR(1,14574247,1,1,2) [2025-02-28 05:16:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:16:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:16:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:16:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574247', 'tblTempUsageDetail_20' ) start [2025-02-28 05:16:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574247', 'tblTempUsageDetail_20' ) end [2025-02-28 05:16:19] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:16:19] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:16:20] Production.INFO: ==13372== Releasing lock... [2025-02-28 05:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:16:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:17:05 [end_date_ymd] => 2025-02-28 05:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:17:05' and `end` < '2025-02-28 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-02-28 05:17:17] Production.INFO: count ==159 [2025-02-28 05:17:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:17:05 - End Time 2025-02-28 05:17:05 [2025-02-28 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574252', 'tblTempUsageDetail_20' ) start [2025-02-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574252', 'tblTempUsageDetail_20' ) end [2025-02-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574252', 'tblTempVendorCDR_20' ) start [2025-02-28 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574252', 'tblTempVendorCDR_20' ) end [2025-02-28 05:17:17] Production.INFO: ProcessCDR(1,14574252,1,1,2) [2025-02-28 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574252', 'tblTempUsageDetail_20' ) start [2025-02-28 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574252', 'tblTempUsageDetail_20' ) end [2025-02-28 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:17:20] Production.INFO: ==13464== Releasing lock... [2025-02-28 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:18:06 [end_date_ymd] => 2025-02-28 05:18:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:18:06' and `end` < '2025-02-28 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-02-28 05:18:17] Production.INFO: count ==159 [2025-02-28 05:18:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:18:06 - End Time 2025-02-28 05:18:06 [2025-02-28 05:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574257', 'tblTempUsageDetail_20' ) start [2025-02-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574257', 'tblTempUsageDetail_20' ) end [2025-02-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574257', 'tblTempVendorCDR_20' ) start [2025-02-28 05:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574257', 'tblTempVendorCDR_20' ) end [2025-02-28 05:18:17] Production.INFO: ProcessCDR(1,14574257,1,1,2) [2025-02-28 05:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574257', 'tblTempUsageDetail_20' ) start [2025-02-28 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574257', 'tblTempUsageDetail_20' ) end [2025-02-28 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:18:21] Production.INFO: ==13558== Releasing lock... [2025-02-28 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:19:05 [end_date_ymd] => 2025-02-28 05:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:19:05' and `end` < '2025-02-28 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-02-28 05:19:17] Production.INFO: count ==158 [2025-02-28 05:19:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:19:05 - End Time 2025-02-28 05:19:05 [2025-02-28 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574262', 'tblTempUsageDetail_20' ) start [2025-02-28 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574262', 'tblTempUsageDetail_20' ) end [2025-02-28 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574262', 'tblTempVendorCDR_20' ) start [2025-02-28 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574262', 'tblTempVendorCDR_20' ) end [2025-02-28 05:19:17] Production.INFO: ProcessCDR(1,14574262,1,1,2) [2025-02-28 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574262', 'tblTempUsageDetail_20' ) start [2025-02-28 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574262', 'tblTempUsageDetail_20' ) end [2025-02-28 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:19:20] Production.INFO: ==13655== Releasing lock... [2025-02-28 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:20:06 [end_date_ymd] => 2025-02-28 05:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:20:06' and `end` < '2025-02-28 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-02-28 05:20:18] Production.INFO: count ==154 [2025-02-28 05:20:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:20:06 - End Time 2025-02-28 05:20:06 [2025-02-28 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574268', 'tblTempUsageDetail_20' ) start [2025-02-28 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574268', 'tblTempUsageDetail_20' ) end [2025-02-28 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574268', 'tblTempVendorCDR_20' ) start [2025-02-28 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574268', 'tblTempVendorCDR_20' ) end [2025-02-28 05:20:18] Production.INFO: ProcessCDR(1,14574268,1,1,2) [2025-02-28 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574268', 'tblTempUsageDetail_20' ) start [2025-02-28 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574268', 'tblTempUsageDetail_20' ) end [2025-02-28 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:20:21] Production.INFO: ==13756== Releasing lock... [2025-02-28 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:21:06 [end_date_ymd] => 2025-02-28 05:21:06 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:21:06' and `end` < '2025-02-28 05: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-02-28 05:21:17] Production.INFO: count ==150 [2025-02-28 05:21:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:21:06 - End Time 2025-02-28 05:21:06 [2025-02-28 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574273', 'tblTempUsageDetail_20' ) start [2025-02-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574273', 'tblTempUsageDetail_20' ) end [2025-02-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574273', 'tblTempVendorCDR_20' ) start [2025-02-28 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574273', 'tblTempVendorCDR_20' ) end [2025-02-28 05:21:17] Production.INFO: ProcessCDR(1,14574273,1,1,2) [2025-02-28 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574273', 'tblTempUsageDetail_20' ) start [2025-02-28 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574273', 'tblTempUsageDetail_20' ) end [2025-02-28 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:21:21] Production.INFO: ==13852== Releasing lock... [2025-02-28 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:22:04 [end_date_ymd] => 2025-02-28 05:22:04 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:22:04' and `end` < '2025-02-28 05: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-02-28 05:22:16] Production.INFO: count ==150 [2025-02-28 05:22:16] Production.ERROR: pbx CDR StartTime 2025-02-28 02:22:04 - End Time 2025-02-28 05:22:04 [2025-02-28 05:22:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574278', 'tblTempUsageDetail_20' ) start [2025-02-28 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574278', 'tblTempUsageDetail_20' ) end [2025-02-28 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574278', 'tblTempVendorCDR_20' ) start [2025-02-28 05:22:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574278', 'tblTempVendorCDR_20' ) end [2025-02-28 05:22:16] Production.INFO: ProcessCDR(1,14574278,1,1,2) [2025-02-28 05:22:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:22:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:22:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574278', 'tblTempUsageDetail_20' ) start [2025-02-28 05:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574278', 'tblTempUsageDetail_20' ) end [2025-02-28 05:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:22:20] Production.INFO: ==13985== Releasing lock... [2025-02-28 05:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:22:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:23:05 [end_date_ymd] => 2025-02-28 05:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:23:05' and `end` < '2025-02-28 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-02-28 05:23:17] Production.INFO: count ==155 [2025-02-28 05:23:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:23:05 - End Time 2025-02-28 05:23:05 [2025-02-28 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574283', 'tblTempUsageDetail_20' ) start [2025-02-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574283', 'tblTempUsageDetail_20' ) end [2025-02-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574283', 'tblTempVendorCDR_20' ) start [2025-02-28 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574283', 'tblTempVendorCDR_20' ) end [2025-02-28 05:23:17] Production.INFO: ProcessCDR(1,14574283,1,1,2) [2025-02-28 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574283', 'tblTempUsageDetail_20' ) start [2025-02-28 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574283', 'tblTempUsageDetail_20' ) end [2025-02-28 05:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:23:20] Production.INFO: ==14087== Releasing lock... [2025-02-28 05:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:23:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:24:05 [end_date_ymd] => 2025-02-28 05:24:05 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:24:05' and `end` < '2025-02-28 05: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-02-28 05:24:17] Production.INFO: count ==155 [2025-02-28 05:24:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:24:05 - End Time 2025-02-28 05:24:05 [2025-02-28 05:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574288', 'tblTempUsageDetail_20' ) start [2025-02-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574288', 'tblTempUsageDetail_20' ) end [2025-02-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574288', 'tblTempVendorCDR_20' ) start [2025-02-28 05:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574288', 'tblTempVendorCDR_20' ) end [2025-02-28 05:24:17] Production.INFO: ProcessCDR(1,14574288,1,1,2) [2025-02-28 05:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574288', 'tblTempUsageDetail_20' ) start [2025-02-28 05:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574288', 'tblTempUsageDetail_20' ) end [2025-02-28 05:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:24:20] Production.INFO: ==14180== Releasing lock... [2025-02-28 05:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:24:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:25:05 [end_date_ymd] => 2025-02-28 05:25:05 [RateCDR] => 1 ) [2025-02-28 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:25:05' and `end` < '2025-02-28 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:25:17] Production.INFO: count ==155 [2025-02-28 05:25:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:25:05 - End Time 2025-02-28 05:25:05 [2025-02-28 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574293', 'tblTempUsageDetail_20' ) start [2025-02-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574293', 'tblTempUsageDetail_20' ) end [2025-02-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574293', 'tblTempVendorCDR_20' ) start [2025-02-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574293', 'tblTempVendorCDR_20' ) end [2025-02-28 05:25:17] Production.INFO: ProcessCDR(1,14574293,1,1,2) [2025-02-28 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574293', 'tblTempUsageDetail_20' ) start [2025-02-28 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574293', 'tblTempUsageDetail_20' ) end [2025-02-28 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:25:20] Production.INFO: ==14278== Releasing lock... [2025-02-28 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:26:05 [end_date_ymd] => 2025-02-28 05:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:26:05' and `end` < '2025-02-28 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-02-28 05:26:17] Production.INFO: count ==155 [2025-02-28 05:26:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:26:05 - End Time 2025-02-28 05:26:05 [2025-02-28 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574298', 'tblTempUsageDetail_20' ) start [2025-02-28 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574298', 'tblTempUsageDetail_20' ) end [2025-02-28 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574298', 'tblTempVendorCDR_20' ) start [2025-02-28 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574298', 'tblTempVendorCDR_20' ) end [2025-02-28 05:26:17] Production.INFO: ProcessCDR(1,14574298,1,1,2) [2025-02-28 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574298', 'tblTempUsageDetail_20' ) start [2025-02-28 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574298', 'tblTempUsageDetail_20' ) end [2025-02-28 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:26:20] Production.INFO: ==14376== Releasing lock... [2025-02-28 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:27:05 [end_date_ymd] => 2025-02-28 05:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:27:05' and `end` < '2025-02-28 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-02-28 05:27:17] Production.INFO: count ==155 [2025-02-28 05:27:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:27:05 - End Time 2025-02-28 05:27:05 [2025-02-28 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574303', 'tblTempUsageDetail_20' ) start [2025-02-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574303', 'tblTempUsageDetail_20' ) end [2025-02-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574303', 'tblTempVendorCDR_20' ) start [2025-02-28 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574303', 'tblTempVendorCDR_20' ) end [2025-02-28 05:27:17] Production.INFO: ProcessCDR(1,14574303,1,1,2) [2025-02-28 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574303', 'tblTempUsageDetail_20' ) start [2025-02-28 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574303', 'tblTempUsageDetail_20' ) end [2025-02-28 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:27:20] Production.INFO: ==14472== Releasing lock... [2025-02-28 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:27:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:28:05 [end_date_ymd] => 2025-02-28 05:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:28:05' and `end` < '2025-02-28 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-02-28 05:28:17] Production.INFO: count ==156 [2025-02-28 05:28:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:28:05 - End Time 2025-02-28 05:28:05 [2025-02-28 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574308', 'tblTempUsageDetail_20' ) start [2025-02-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574308', 'tblTempUsageDetail_20' ) end [2025-02-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574308', 'tblTempVendorCDR_20' ) start [2025-02-28 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574308', 'tblTempVendorCDR_20' ) end [2025-02-28 05:28:17] Production.INFO: ProcessCDR(1,14574308,1,1,2) [2025-02-28 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574308', 'tblTempUsageDetail_20' ) start [2025-02-28 05:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574308', 'tblTempUsageDetail_20' ) end [2025-02-28 05:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:28:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:28:22] Production.INFO: ==14570== Releasing lock... [2025-02-28 05:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:29:05 [end_date_ymd] => 2025-02-28 05:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:29:05' and `end` < '2025-02-28 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-02-28 05:29:17] Production.INFO: count ==156 [2025-02-28 05:29:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:29:05 - End Time 2025-02-28 05:29:05 [2025-02-28 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574313', 'tblTempUsageDetail_20' ) start [2025-02-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574313', 'tblTempUsageDetail_20' ) end [2025-02-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574313', 'tblTempVendorCDR_20' ) start [2025-02-28 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574313', 'tblTempVendorCDR_20' ) end [2025-02-28 05:29:17] Production.INFO: ProcessCDR(1,14574313,1,1,2) [2025-02-28 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574313', 'tblTempUsageDetail_20' ) start [2025-02-28 05:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574313', 'tblTempUsageDetail_20' ) end [2025-02-28 05:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:29:20] Production.INFO: ==14664== Releasing lock... [2025-02-28 05:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:29:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:30:06 [end_date_ymd] => 2025-02-28 05:30:06 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:30:06' and `end` < '2025-02-28 05: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-02-28 05:30:18] Production.INFO: count ==151 [2025-02-28 05:30:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:30:06 - End Time 2025-02-28 05:30:06 [2025-02-28 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574319', 'tblTempUsageDetail_20' ) start [2025-02-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574319', 'tblTempUsageDetail_20' ) end [2025-02-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574319', 'tblTempVendorCDR_20' ) start [2025-02-28 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574319', 'tblTempVendorCDR_20' ) end [2025-02-28 05:30:18] Production.INFO: ProcessCDR(1,14574319,1,1,2) [2025-02-28 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574319', 'tblTempUsageDetail_20' ) start [2025-02-28 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574319', 'tblTempUsageDetail_20' ) end [2025-02-28 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:30:21] Production.INFO: ==14767== Releasing lock... [2025-02-28 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:31:05 [end_date_ymd] => 2025-02-28 05:31:05 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:31:05' and `end` < '2025-02-28 05: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-02-28 05:31:17] Production.INFO: count ==151 [2025-02-28 05:31:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:31:05 - End Time 2025-02-28 05:31:05 [2025-02-28 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574324', 'tblTempUsageDetail_20' ) start [2025-02-28 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574324', 'tblTempUsageDetail_20' ) end [2025-02-28 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574324', 'tblTempVendorCDR_20' ) start [2025-02-28 05:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574324', 'tblTempVendorCDR_20' ) end [2025-02-28 05:31:17] Production.INFO: ProcessCDR(1,14574324,1,1,2) [2025-02-28 05:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574324', 'tblTempUsageDetail_20' ) start [2025-02-28 05:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574324', 'tblTempUsageDetail_20' ) end [2025-02-28 05:31:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:31:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:31:20] Production.INFO: ==14865== Releasing lock... [2025-02-28 05:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:32:05 [end_date_ymd] => 2025-02-28 05:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:32:05' and `end` < '2025-02-28 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-02-28 05:32:17] Production.INFO: count ==151 [2025-02-28 05:32:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:32:05 - End Time 2025-02-28 05:32:05 [2025-02-28 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574329', 'tblTempUsageDetail_20' ) start [2025-02-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574329', 'tblTempUsageDetail_20' ) end [2025-02-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574329', 'tblTempVendorCDR_20' ) start [2025-02-28 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574329', 'tblTempVendorCDR_20' ) end [2025-02-28 05:32:17] Production.INFO: ProcessCDR(1,14574329,1,1,2) [2025-02-28 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574329', 'tblTempUsageDetail_20' ) start [2025-02-28 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574329', 'tblTempUsageDetail_20' ) end [2025-02-28 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:32:20] Production.INFO: ==14956== Releasing lock... [2025-02-28 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:33:05 [end_date_ymd] => 2025-02-28 05:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:33:05' and `end` < '2025-02-28 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-02-28 05:33:17] Production.INFO: count ==152 [2025-02-28 05:33:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:33:05 - End Time 2025-02-28 05:33:05 [2025-02-28 05:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574334', 'tblTempUsageDetail_20' ) start [2025-02-28 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574334', 'tblTempUsageDetail_20' ) end [2025-02-28 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574334', 'tblTempVendorCDR_20' ) start [2025-02-28 05:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574334', 'tblTempVendorCDR_20' ) end [2025-02-28 05:33:17] Production.INFO: ProcessCDR(1,14574334,1,1,2) [2025-02-28 05:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574334', 'tblTempUsageDetail_20' ) start [2025-02-28 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574334', 'tblTempUsageDetail_20' ) end [2025-02-28 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:33:21] Production.INFO: ==15050== Releasing lock... [2025-02-28 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:34:05 [end_date_ymd] => 2025-02-28 05:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:34:05' and `end` < '2025-02-28 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-02-28 05:34:17] Production.INFO: count ==153 [2025-02-28 05:34:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:34:05 - End Time 2025-02-28 05:34:05 [2025-02-28 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574339', 'tblTempUsageDetail_20' ) start [2025-02-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574339', 'tblTempUsageDetail_20' ) end [2025-02-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574339', 'tblTempVendorCDR_20' ) start [2025-02-28 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574339', 'tblTempVendorCDR_20' ) end [2025-02-28 05:34:17] Production.INFO: ProcessCDR(1,14574339,1,1,2) [2025-02-28 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574339', 'tblTempUsageDetail_20' ) start [2025-02-28 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574339', 'tblTempUsageDetail_20' ) end [2025-02-28 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:34:21] Production.INFO: ==15141== Releasing lock... [2025-02-28 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:34:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:35:05 [end_date_ymd] => 2025-02-28 05:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:35:05' and `end` < '2025-02-28 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-02-28 05:35:17] Production.INFO: count ==150 [2025-02-28 05:35:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:35:05 - End Time 2025-02-28 05:35:05 [2025-02-28 05:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574344', 'tblTempUsageDetail_20' ) start [2025-02-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574344', 'tblTempUsageDetail_20' ) end [2025-02-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574344', 'tblTempVendorCDR_20' ) start [2025-02-28 05:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574344', 'tblTempVendorCDR_20' ) end [2025-02-28 05:35:17] Production.INFO: ProcessCDR(1,14574344,1,1,2) [2025-02-28 05:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574344', 'tblTempUsageDetail_20' ) start [2025-02-28 05:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574344', 'tblTempUsageDetail_20' ) end [2025-02-28 05:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:35:20] Production.INFO: ==15242== Releasing lock... [2025-02-28 05:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:35:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:36:05 [end_date_ymd] => 2025-02-28 05:36:05 [RateCDR] => 1 ) [2025-02-28 05:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:36:05' and `end` < '2025-02-28 05:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:36:17] Production.INFO: count ==149 [2025-02-28 05:36:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:36:05 - End Time 2025-02-28 05:36:05 [2025-02-28 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574349', 'tblTempUsageDetail_20' ) start [2025-02-28 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574349', 'tblTempUsageDetail_20' ) end [2025-02-28 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574349', 'tblTempVendorCDR_20' ) start [2025-02-28 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574349', 'tblTempVendorCDR_20' ) end [2025-02-28 05:36:17] Production.INFO: ProcessCDR(1,14574349,1,1,2) [2025-02-28 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574349', 'tblTempUsageDetail_20' ) start [2025-02-28 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574349', 'tblTempUsageDetail_20' ) end [2025-02-28 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:36:20] Production.INFO: ==15338== Releasing lock... [2025-02-28 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:37:05 [end_date_ymd] => 2025-02-28 05:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:37:05' and `end` < '2025-02-28 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-02-28 05:37:17] Production.INFO: count ==149 [2025-02-28 05:37:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:37:05 - End Time 2025-02-28 05:37:05 [2025-02-28 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574354', 'tblTempUsageDetail_20' ) start [2025-02-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574354', 'tblTempUsageDetail_20' ) end [2025-02-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574354', 'tblTempVendorCDR_20' ) start [2025-02-28 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574354', 'tblTempVendorCDR_20' ) end [2025-02-28 05:37:17] Production.INFO: ProcessCDR(1,14574354,1,1,2) [2025-02-28 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574354', 'tblTempUsageDetail_20' ) start [2025-02-28 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574354', 'tblTempUsageDetail_20' ) end [2025-02-28 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:37:20] Production.INFO: ==15450== Releasing lock... [2025-02-28 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:38:05 [end_date_ymd] => 2025-02-28 05:38:05 [RateCDR] => 1 ) [2025-02-28 05:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:38:05' and `end` < '2025-02-28 05:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:38:17] Production.INFO: count ==150 [2025-02-28 05:38:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:38:05 - End Time 2025-02-28 05:38:05 [2025-02-28 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574359', 'tblTempUsageDetail_20' ) start [2025-02-28 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574359', 'tblTempUsageDetail_20' ) end [2025-02-28 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574359', 'tblTempVendorCDR_20' ) start [2025-02-28 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574359', 'tblTempVendorCDR_20' ) end [2025-02-28 05:38:17] Production.INFO: ProcessCDR(1,14574359,1,1,2) [2025-02-28 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574359', 'tblTempUsageDetail_20' ) start [2025-02-28 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574359', 'tblTempUsageDetail_20' ) end [2025-02-28 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:38:21] Production.INFO: ==15522== Releasing lock... [2025-02-28 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:39:05 [end_date_ymd] => 2025-02-28 05:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:39:05' and `end` < '2025-02-28 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-02-28 05:39:17] Production.INFO: count ==151 [2025-02-28 05:39:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:39:05 - End Time 2025-02-28 05:39:05 [2025-02-28 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574364', 'tblTempUsageDetail_20' ) start [2025-02-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574364', 'tblTempUsageDetail_20' ) end [2025-02-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574364', 'tblTempVendorCDR_20' ) start [2025-02-28 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574364', 'tblTempVendorCDR_20' ) end [2025-02-28 05:39:17] Production.INFO: ProcessCDR(1,14574364,1,1,2) [2025-02-28 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574364', 'tblTempUsageDetail_20' ) start [2025-02-28 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574364', 'tblTempUsageDetail_20' ) end [2025-02-28 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:39:22] Production.INFO: ==15595== Releasing lock... [2025-02-28 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:40:06 [end_date_ymd] => 2025-02-28 05:40:06 [RateCDR] => 1 ) [2025-02-28 05:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:40:06' and `end` < '2025-02-28 05:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:40:18] Production.INFO: count ==146 [2025-02-28 05:40:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:40:06 - End Time 2025-02-28 05:40:06 [2025-02-28 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574370', 'tblTempUsageDetail_20' ) start [2025-02-28 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574370', 'tblTempUsageDetail_20' ) end [2025-02-28 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574370', 'tblTempVendorCDR_20' ) start [2025-02-28 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574370', 'tblTempVendorCDR_20' ) end [2025-02-28 05:40:18] Production.INFO: ProcessCDR(1,14574370,1,1,2) [2025-02-28 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574370', 'tblTempUsageDetail_20' ) start [2025-02-28 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574370', 'tblTempUsageDetail_20' ) end [2025-02-28 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:40:21] Production.INFO: ==15669== Releasing lock... [2025-02-28 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:41:05 [end_date_ymd] => 2025-02-28 05:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:41:05' and `end` < '2025-02-28 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-02-28 05:41:16] Production.INFO: count ==144 [2025-02-28 05:41:16] Production.ERROR: pbx CDR StartTime 2025-02-28 02:41:05 - End Time 2025-02-28 05:41:05 [2025-02-28 05:41:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574375', 'tblTempUsageDetail_20' ) start [2025-02-28 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574375', 'tblTempUsageDetail_20' ) end [2025-02-28 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574375', 'tblTempVendorCDR_20' ) start [2025-02-28 05:41:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574375', 'tblTempVendorCDR_20' ) end [2025-02-28 05:41:16] Production.INFO: ProcessCDR(1,14574375,1,1,2) [2025-02-28 05:41:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574375', 'tblTempUsageDetail_20' ) start [2025-02-28 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574375', 'tblTempUsageDetail_20' ) end [2025-02-28 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:41:20] Production.INFO: ==15744== Releasing lock... [2025-02-28 05:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:42:05 [end_date_ymd] => 2025-02-28 05:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:42:05' and `end` < '2025-02-28 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-02-28 05:42:17] Production.INFO: count ==144 [2025-02-28 05:42:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:42:05 - End Time 2025-02-28 05:42:05 [2025-02-28 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574380', 'tblTempUsageDetail_20' ) start [2025-02-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574380', 'tblTempUsageDetail_20' ) end [2025-02-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574380', 'tblTempVendorCDR_20' ) start [2025-02-28 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574380', 'tblTempVendorCDR_20' ) end [2025-02-28 05:42:17] Production.INFO: ProcessCDR(1,14574380,1,1,2) [2025-02-28 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574380', 'tblTempUsageDetail_20' ) start [2025-02-28 05:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574380', 'tblTempUsageDetail_20' ) end [2025-02-28 05:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:42:20] Production.INFO: ==15817== Releasing lock... [2025-02-28 05:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:43:05 [end_date_ymd] => 2025-02-28 05:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:43:05' and `end` < '2025-02-28 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-02-28 05:43:17] Production.INFO: count ==144 [2025-02-28 05:43:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:43:05 - End Time 2025-02-28 05:43:05 [2025-02-28 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574385', 'tblTempUsageDetail_20' ) start [2025-02-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574385', 'tblTempUsageDetail_20' ) end [2025-02-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574385', 'tblTempVendorCDR_20' ) start [2025-02-28 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574385', 'tblTempVendorCDR_20' ) end [2025-02-28 05:43:17] Production.INFO: ProcessCDR(1,14574385,1,1,2) [2025-02-28 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574385', 'tblTempUsageDetail_20' ) start [2025-02-28 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574385', 'tblTempUsageDetail_20' ) end [2025-02-28 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:43:20] Production.INFO: ==15887== Releasing lock... [2025-02-28 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:44:04 [end_date_ymd] => 2025-02-28 05:44:04 [RateCDR] => 1 ) [2025-02-28 05:44:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:44:04' and `end` < '2025-02-28 05:44:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:44:16] Production.INFO: count ==144 [2025-02-28 05:44:16] Production.ERROR: pbx CDR StartTime 2025-02-28 02:44:04 - End Time 2025-02-28 05:44:04 [2025-02-28 05:44:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574390', 'tblTempUsageDetail_20' ) start [2025-02-28 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574390', 'tblTempUsageDetail_20' ) end [2025-02-28 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574390', 'tblTempVendorCDR_20' ) start [2025-02-28 05:44:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574390', 'tblTempVendorCDR_20' ) end [2025-02-28 05:44:16] Production.INFO: ProcessCDR(1,14574390,1,1,2) [2025-02-28 05:44:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:44:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:44:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574390', 'tblTempUsageDetail_20' ) start [2025-02-28 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574390', 'tblTempUsageDetail_20' ) end [2025-02-28 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:44:20] Production.INFO: ==15959== Releasing lock... [2025-02-28 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:45:06 [end_date_ymd] => 2025-02-28 05:45:06 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:45:06' and `end` < '2025-02-28 05: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-02-28 05:45:17] Production.INFO: count ==144 [2025-02-28 05:45:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:45:06 - End Time 2025-02-28 05:45:06 [2025-02-28 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574395', 'tblTempUsageDetail_20' ) start [2025-02-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574395', 'tblTempUsageDetail_20' ) end [2025-02-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574395', 'tblTempVendorCDR_20' ) start [2025-02-28 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574395', 'tblTempVendorCDR_20' ) end [2025-02-28 05:45:18] Production.INFO: ProcessCDR(1,14574395,1,1,2) [2025-02-28 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574395', 'tblTempUsageDetail_20' ) start [2025-02-28 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574395', 'tblTempUsageDetail_20' ) end [2025-02-28 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:45:21] Production.INFO: ==16033== Releasing lock... [2025-02-28 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:46:05 [end_date_ymd] => 2025-02-28 05:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:46:05' and `end` < '2025-02-28 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-02-28 05:46:17] Production.INFO: count ==144 [2025-02-28 05:46:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:46:05 - End Time 2025-02-28 05:46:05 [2025-02-28 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574400', 'tblTempUsageDetail_20' ) start [2025-02-28 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574400', 'tblTempUsageDetail_20' ) end [2025-02-28 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574400', 'tblTempVendorCDR_20' ) start [2025-02-28 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574400', 'tblTempVendorCDR_20' ) end [2025-02-28 05:46:17] Production.INFO: ProcessCDR(1,14574400,1,1,2) [2025-02-28 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574400', 'tblTempUsageDetail_20' ) start [2025-02-28 05:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574400', 'tblTempUsageDetail_20' ) end [2025-02-28 05:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:46:20] Production.INFO: ==16105== Releasing lock... [2025-02-28 05:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:47:06 [end_date_ymd] => 2025-02-28 05:47:06 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:47:06' and `end` < '2025-02-28 05: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-02-28 05:47:18] Production.INFO: count ==145 [2025-02-28 05:47:18] Production.ERROR: pbx CDR StartTime 2025-02-28 02:47:06 - End Time 2025-02-28 05:47:06 [2025-02-28 05:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574405', 'tblTempUsageDetail_20' ) start [2025-02-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574405', 'tblTempUsageDetail_20' ) end [2025-02-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574405', 'tblTempVendorCDR_20' ) start [2025-02-28 05:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574405', 'tblTempVendorCDR_20' ) end [2025-02-28 05:47:18] Production.INFO: ProcessCDR(1,14574405,1,1,2) [2025-02-28 05:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574405', 'tblTempUsageDetail_20' ) start [2025-02-28 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574405', 'tblTempUsageDetail_20' ) end [2025-02-28 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:47:22] Production.INFO: ==16176== Releasing lock... [2025-02-28 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:47:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:48:05 [end_date_ymd] => 2025-02-28 05:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:48:05' and `end` < '2025-02-28 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-02-28 05:48:17] Production.INFO: count ==142 [2025-02-28 05:48:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:48:05 - End Time 2025-02-28 05:48:05 [2025-02-28 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574410', 'tblTempUsageDetail_20' ) start [2025-02-28 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574410', 'tblTempUsageDetail_20' ) end [2025-02-28 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574410', 'tblTempVendorCDR_20' ) start [2025-02-28 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574410', 'tblTempVendorCDR_20' ) end [2025-02-28 05:48:17] Production.INFO: ProcessCDR(1,14574410,1,1,2) [2025-02-28 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574410', 'tblTempUsageDetail_20' ) start [2025-02-28 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574410', 'tblTempUsageDetail_20' ) end [2025-02-28 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:48:21] Production.INFO: ==16248== Releasing lock... [2025-02-28 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:49:05 [end_date_ymd] => 2025-02-28 05:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:49:05' and `end` < '2025-02-28 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-02-28 05:49:17] Production.INFO: count ==139 [2025-02-28 05:49:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:49:05 - End Time 2025-02-28 05:49:05 [2025-02-28 05:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574415', 'tblTempUsageDetail_20' ) start [2025-02-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574415', 'tblTempUsageDetail_20' ) end [2025-02-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574415', 'tblTempVendorCDR_20' ) start [2025-02-28 05:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574415', 'tblTempVendorCDR_20' ) end [2025-02-28 05:49:17] Production.INFO: ProcessCDR(1,14574415,1,1,2) [2025-02-28 05:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574415', 'tblTempUsageDetail_20' ) start [2025-02-28 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574415', 'tblTempUsageDetail_20' ) end [2025-02-28 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:49:20] Production.INFO: ==16326== Releasing lock... [2025-02-28 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:49:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-28 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:50:06 [end_date_ymd] => 2025-02-28 05:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:50:06' and `end` < '2025-02-28 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-02-28 05:50:17] Production.INFO: count ==137 [2025-02-28 05:50:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:50:06 - End Time 2025-02-28 05:50:06 [2025-02-28 05:50:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574421', 'tblTempUsageDetail_20' ) start [2025-02-28 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574421', 'tblTempUsageDetail_20' ) end [2025-02-28 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574421', 'tblTempVendorCDR_20' ) start [2025-02-28 05:50:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574421', 'tblTempVendorCDR_20' ) end [2025-02-28 05:50:17] Production.INFO: ProcessCDR(1,14574421,1,1,2) [2025-02-28 05:50:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574421', 'tblTempUsageDetail_20' ) start [2025-02-28 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574421', 'tblTempUsageDetail_20' ) end [2025-02-28 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:50:22] Production.INFO: ==16398== Releasing lock... [2025-02-28 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-02-28 05:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:51:06 [end_date_ymd] => 2025-02-28 05:51:06 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:51:06' and `end` < '2025-02-28 05: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-02-28 05:51:17] Production.INFO: count ==137 [2025-02-28 05:51:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:51:06 - End Time 2025-02-28 05:51:06 [2025-02-28 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574426', 'tblTempUsageDetail_20' ) start [2025-02-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574426', 'tblTempUsageDetail_20' ) end [2025-02-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574426', 'tblTempVendorCDR_20' ) start [2025-02-28 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574426', 'tblTempVendorCDR_20' ) end [2025-02-28 05:51:17] Production.INFO: ProcessCDR(1,14574426,1,1,2) [2025-02-28 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574426', 'tblTempUsageDetail_20' ) start [2025-02-28 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574426', 'tblTempUsageDetail_20' ) end [2025-02-28 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:51:21] Production.INFO: ==16472== Releasing lock... [2025-02-28 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-28 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:52:05 [end_date_ymd] => 2025-02-28 05:52:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:52:05' and `end` < '2025-02-28 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-02-28 05:52:17] Production.INFO: count ==137 [2025-02-28 05:52:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:52:05 - End Time 2025-02-28 05:52:05 [2025-02-28 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574431', 'tblTempUsageDetail_20' ) start [2025-02-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574431', 'tblTempUsageDetail_20' ) end [2025-02-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574431', 'tblTempVendorCDR_20' ) start [2025-02-28 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574431', 'tblTempVendorCDR_20' ) end [2025-02-28 05:52:17] Production.INFO: ProcessCDR(1,14574431,1,1,2) [2025-02-28 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574431', 'tblTempUsageDetail_20' ) start [2025-02-28 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574431', 'tblTempUsageDetail_20' ) end [2025-02-28 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:52:20] Production.INFO: ==16584== Releasing lock... [2025-02-28 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:52:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-28 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:53:05 [end_date_ymd] => 2025-02-28 05:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:53:05' and `end` < '2025-02-28 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-02-28 05:53:17] Production.INFO: count ==137 [2025-02-28 05:53:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:53:05 - End Time 2025-02-28 05:53:05 [2025-02-28 05:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574436', 'tblTempUsageDetail_20' ) start [2025-02-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574436', 'tblTempUsageDetail_20' ) end [2025-02-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574436', 'tblTempVendorCDR_20' ) start [2025-02-28 05:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574436', 'tblTempVendorCDR_20' ) end [2025-02-28 05:53:17] Production.INFO: ProcessCDR(1,14574436,1,1,2) [2025-02-28 05:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574436', 'tblTempUsageDetail_20' ) start [2025-02-28 05:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574436', 'tblTempUsageDetail_20' ) end [2025-02-28 05:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:53:21] Production.INFO: ==16658== Releasing lock... [2025-02-28 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-02-28 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:54:05 [end_date_ymd] => 2025-02-28 05:54:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:54:05' and `end` < '2025-02-28 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-02-28 05:54:17] Production.INFO: count ==137 [2025-02-28 05:54:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:54:05 - End Time 2025-02-28 05:54:05 [2025-02-28 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574441', 'tblTempUsageDetail_20' ) start [2025-02-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574441', 'tblTempUsageDetail_20' ) end [2025-02-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574441', 'tblTempVendorCDR_20' ) start [2025-02-28 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574441', 'tblTempVendorCDR_20' ) end [2025-02-28 05:54:17] Production.INFO: ProcessCDR(1,14574441,1,1,2) [2025-02-28 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574441', 'tblTempUsageDetail_20' ) start [2025-02-28 05:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574441', 'tblTempUsageDetail_20' ) end [2025-02-28 05:54:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:54:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:54:20] Production.INFO: ==16734== Releasing lock... [2025-02-28 05:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:54:20] Production.INFO: 28.5 MB #Memory Used# [2025-02-28 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:55:05 [end_date_ymd] => 2025-02-28 05:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:55:05' and `end` < '2025-02-28 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-02-28 05:55:17] Production.INFO: count ==138 [2025-02-28 05:55:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:55:05 - End Time 2025-02-28 05:55:05 [2025-02-28 05:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574446', 'tblTempUsageDetail_20' ) start [2025-02-28 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574446', 'tblTempUsageDetail_20' ) end [2025-02-28 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574446', 'tblTempVendorCDR_20' ) start [2025-02-28 05:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574446', 'tblTempVendorCDR_20' ) end [2025-02-28 05:55:17] Production.INFO: ProcessCDR(1,14574446,1,1,2) [2025-02-28 05:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574446', 'tblTempUsageDetail_20' ) start [2025-02-28 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574446', 'tblTempUsageDetail_20' ) end [2025-02-28 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:55:21] Production.INFO: ==16803== Releasing lock... [2025-02-28 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:56:06 [end_date_ymd] => 2025-02-28 05:56:06 [RateCDR] => 1 ) [2025-02-28 05: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-02-28 02:56:06' and `end` < '2025-02-28 05: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-02-28 05:56:17] Production.INFO: count ==140 [2025-02-28 05:56:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:56:06 - End Time 2025-02-28 05:56:06 [2025-02-28 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574451', 'tblTempUsageDetail_20' ) start [2025-02-28 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574451', 'tblTempUsageDetail_20' ) end [2025-02-28 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574451', 'tblTempVendorCDR_20' ) start [2025-02-28 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574451', 'tblTempVendorCDR_20' ) end [2025-02-28 05:56:18] Production.INFO: ProcessCDR(1,14574451,1,1,2) [2025-02-28 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574451', 'tblTempUsageDetail_20' ) start [2025-02-28 05:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574451', 'tblTempUsageDetail_20' ) end [2025-02-28 05:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:56:22] Production.INFO: ==16878== Releasing lock... [2025-02-28 05:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:56:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:57:05 [end_date_ymd] => 2025-02-28 05:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:57:05' and `end` < '2025-02-28 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-02-28 05:57:17] Production.INFO: count ==140 [2025-02-28 05:57:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:57:05 - End Time 2025-02-28 05:57:05 [2025-02-28 05:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574456', 'tblTempUsageDetail_20' ) start [2025-02-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574456', 'tblTempUsageDetail_20' ) end [2025-02-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574456', 'tblTempVendorCDR_20' ) start [2025-02-28 05:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574456', 'tblTempVendorCDR_20' ) end [2025-02-28 05:57:17] Production.INFO: ProcessCDR(1,14574456,1,1,2) [2025-02-28 05:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574456', 'tblTempUsageDetail_20' ) start [2025-02-28 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574456', 'tblTempUsageDetail_20' ) end [2025-02-28 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:57:21] Production.INFO: ==16948== Releasing lock... [2025-02-28 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:58:05 [end_date_ymd] => 2025-02-28 05:58:05 [RateCDR] => 1 ) [2025-02-28 05:58:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 02:58:05' and `end` < '2025-02-28 05:58:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 05:58:17] Production.INFO: count ==141 [2025-02-28 05:58:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:58:05 - End Time 2025-02-28 05:58:05 [2025-02-28 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574461', 'tblTempUsageDetail_20' ) start [2025-02-28 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574461', 'tblTempUsageDetail_20' ) end [2025-02-28 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574461', 'tblTempVendorCDR_20' ) start [2025-02-28 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574461', 'tblTempVendorCDR_20' ) end [2025-02-28 05:58:17] Production.INFO: ProcessCDR(1,14574461,1,1,2) [2025-02-28 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574461', 'tblTempUsageDetail_20' ) start [2025-02-28 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574461', 'tblTempUsageDetail_20' ) end [2025-02-28 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:58:22] Production.INFO: ==17018== Releasing lock... [2025-02-28 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 02:59:05 [end_date_ymd] => 2025-02-28 05:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 02:59:05' and `end` < '2025-02-28 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-02-28 05:59:17] Production.INFO: count ==142 [2025-02-28 05:59:17] Production.ERROR: pbx CDR StartTime 2025-02-28 02:59:05 - End Time 2025-02-28 05:59:05 [2025-02-28 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574466', 'tblTempUsageDetail_20' ) start [2025-02-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574466', 'tblTempUsageDetail_20' ) end [2025-02-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574466', 'tblTempVendorCDR_20' ) start [2025-02-28 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574466', 'tblTempVendorCDR_20' ) end [2025-02-28 05:59:17] Production.INFO: ProcessCDR(1,14574466,1,1,2) [2025-02-28 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574466', 'tblTempUsageDetail_20' ) start [2025-02-28 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574466', 'tblTempUsageDetail_20' ) end [2025-02-28 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 05:59:22] Production.INFO: ==17089== Releasing lock... [2025-02-28 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 05:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:00:06 [end_date_ymd] => 2025-02-28 06:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:00:06' and `end` < '2025-02-28 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-02-28 06:00:18] Production.INFO: count ==140 [2025-02-28 06:00:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:00:06 - End Time 2025-02-28 06:00:06 [2025-02-28 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574471', 'tblTempUsageDetail_20' ) start [2025-02-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574471', 'tblTempUsageDetail_20' ) end [2025-02-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574471', 'tblTempVendorCDR_20' ) start [2025-02-28 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574471', 'tblTempVendorCDR_20' ) end [2025-02-28 06:00:18] Production.INFO: ProcessCDR(1,14574471,1,1,2) [2025-02-28 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574471', 'tblTempUsageDetail_20' ) start [2025-02-28 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574471', 'tblTempUsageDetail_20' ) end [2025-02-28 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:00:21] Production.INFO: ==17164== Releasing lock... [2025-02-28 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:01:05 [end_date_ymd] => 2025-02-28 06:01:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:01:05' and `end` < '2025-02-28 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-02-28 06:01:17] Production.INFO: count ==140 [2025-02-28 06:01:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:01:05 - End Time 2025-02-28 06:01:05 [2025-02-28 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574477', 'tblTempUsageDetail_20' ) start [2025-02-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574477', 'tblTempUsageDetail_20' ) end [2025-02-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574477', 'tblTempVendorCDR_20' ) start [2025-02-28 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574477', 'tblTempVendorCDR_20' ) end [2025-02-28 06:01:17] Production.INFO: ProcessCDR(1,14574477,1,1,2) [2025-02-28 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574477', 'tblTempUsageDetail_20' ) start [2025-02-28 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574477', 'tblTempUsageDetail_20' ) end [2025-02-28 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:01:21] Production.INFO: ==17248== Releasing lock... [2025-02-28 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:01:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:02:06 [end_date_ymd] => 2025-02-28 06:02:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:02:06' and `end` < '2025-02-28 06: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-02-28 06:02:17] Production.INFO: count ==141 [2025-02-28 06:02:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:02:06 - End Time 2025-02-28 06:02:06 [2025-02-28 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574482', 'tblTempUsageDetail_20' ) start [2025-02-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574482', 'tblTempUsageDetail_20' ) end [2025-02-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574482', 'tblTempVendorCDR_20' ) start [2025-02-28 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574482', 'tblTempVendorCDR_20' ) end [2025-02-28 06:02:18] Production.INFO: ProcessCDR(1,14574482,1,1,2) [2025-02-28 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574482', 'tblTempUsageDetail_20' ) start [2025-02-28 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574482', 'tblTempUsageDetail_20' ) end [2025-02-28 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:02:22] Production.INFO: ==17324== Releasing lock... [2025-02-28 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:03:05 [end_date_ymd] => 2025-02-28 06:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:03:05' and `end` < '2025-02-28 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-02-28 06:03:17] Production.INFO: count ==139 [2025-02-28 06:03:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:03:05 - End Time 2025-02-28 06:03:05 [2025-02-28 06:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574487', 'tblTempUsageDetail_20' ) start [2025-02-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574487', 'tblTempUsageDetail_20' ) end [2025-02-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574487', 'tblTempVendorCDR_20' ) start [2025-02-28 06:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574487', 'tblTempVendorCDR_20' ) end [2025-02-28 06:03:17] Production.INFO: ProcessCDR(1,14574487,1,1,2) [2025-02-28 06:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574487', 'tblTempUsageDetail_20' ) start [2025-02-28 06:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574487', 'tblTempUsageDetail_20' ) end [2025-02-28 06:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:03:22] Production.INFO: ==17395== Releasing lock... [2025-02-28 06:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:03:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:04:06 [end_date_ymd] => 2025-02-28 06:04:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:04:06' and `end` < '2025-02-28 06: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-02-28 06:04:17] Production.INFO: count ==139 [2025-02-28 06:04:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:04:06 - End Time 2025-02-28 06:04:06 [2025-02-28 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574492', 'tblTempUsageDetail_20' ) start [2025-02-28 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574492', 'tblTempUsageDetail_20' ) end [2025-02-28 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574492', 'tblTempVendorCDR_20' ) start [2025-02-28 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574492', 'tblTempVendorCDR_20' ) end [2025-02-28 06:04:17] Production.INFO: ProcessCDR(1,14574492,1,1,2) [2025-02-28 06:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574492', 'tblTempUsageDetail_20' ) start [2025-02-28 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574492', 'tblTempUsageDetail_20' ) end [2025-02-28 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:04:21] Production.INFO: ==17469== Releasing lock... [2025-02-28 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:05:05 [end_date_ymd] => 2025-02-28 06:05:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:05:05' and `end` < '2025-02-28 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-02-28 06:05:17] Production.INFO: count ==139 [2025-02-28 06:05:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:05:05 - End Time 2025-02-28 06:05:05 [2025-02-28 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574497', 'tblTempUsageDetail_20' ) start [2025-02-28 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574497', 'tblTempUsageDetail_20' ) end [2025-02-28 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574497', 'tblTempVendorCDR_20' ) start [2025-02-28 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574497', 'tblTempVendorCDR_20' ) end [2025-02-28 06:05:17] Production.INFO: ProcessCDR(1,14574497,1,1,2) [2025-02-28 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574497', 'tblTempUsageDetail_20' ) start [2025-02-28 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574497', 'tblTempUsageDetail_20' ) end [2025-02-28 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:05:20] Production.INFO: ==17539== Releasing lock... [2025-02-28 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:05:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:06:05 [end_date_ymd] => 2025-02-28 06:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:06:05' and `end` < '2025-02-28 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-02-28 06:06:17] Production.INFO: count ==139 [2025-02-28 06:06:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:06:05 - End Time 2025-02-28 06:06:05 [2025-02-28 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574502', 'tblTempUsageDetail_20' ) start [2025-02-28 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574502', 'tblTempUsageDetail_20' ) end [2025-02-28 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574502', 'tblTempVendorCDR_20' ) start [2025-02-28 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574502', 'tblTempVendorCDR_20' ) end [2025-02-28 06:06:17] Production.INFO: ProcessCDR(1,14574502,1,1,2) [2025-02-28 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574502', 'tblTempUsageDetail_20' ) start [2025-02-28 06:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574502', 'tblTempUsageDetail_20' ) end [2025-02-28 06:06:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:06:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:06:21] Production.INFO: ==17621== Releasing lock... [2025-02-28 06:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:06:21] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:07:05 [end_date_ymd] => 2025-02-28 06:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:07:05' and `end` < '2025-02-28 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-02-28 06:07:17] Production.INFO: count ==140 [2025-02-28 06:07:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:07:05 - End Time 2025-02-28 06:07:05 [2025-02-28 06:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574507', 'tblTempUsageDetail_20' ) start [2025-02-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574507', 'tblTempUsageDetail_20' ) end [2025-02-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574507', 'tblTempVendorCDR_20' ) start [2025-02-28 06:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574507', 'tblTempVendorCDR_20' ) end [2025-02-28 06:07:17] Production.INFO: ProcessCDR(1,14574507,1,1,2) [2025-02-28 06:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574507', 'tblTempUsageDetail_20' ) start [2025-02-28 06:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574507', 'tblTempUsageDetail_20' ) end [2025-02-28 06:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:07:22] Production.INFO: ==17705== Releasing lock... [2025-02-28 06:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:07:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:08:05 [end_date_ymd] => 2025-02-28 06:08:05 [RateCDR] => 1 ) [2025-02-28 06:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 03:08:05' and `end` < '2025-02-28 06:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 06:08:17] Production.INFO: count ==143 [2025-02-28 06:08:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:08:05 - End Time 2025-02-28 06:08:05 [2025-02-28 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574512', 'tblTempUsageDetail_20' ) start [2025-02-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574512', 'tblTempUsageDetail_20' ) end [2025-02-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574512', 'tblTempVendorCDR_20' ) start [2025-02-28 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574512', 'tblTempVendorCDR_20' ) end [2025-02-28 06:08:17] Production.INFO: ProcessCDR(1,14574512,1,1,2) [2025-02-28 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574512', 'tblTempUsageDetail_20' ) start [2025-02-28 06:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574512', 'tblTempUsageDetail_20' ) end [2025-02-28 06:08:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:08:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:08:22] Production.INFO: ==17816== Releasing lock... [2025-02-28 06:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:08:22] Production.INFO: 28.75 MB #Memory Used# [2025-02-28 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:09:05 [end_date_ymd] => 2025-02-28 06:09:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:09:05' and `end` < '2025-02-28 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-02-28 06:09:17] Production.INFO: count ==147 [2025-02-28 06:09:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:09:05 - End Time 2025-02-28 06:09:05 [2025-02-28 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574517', 'tblTempUsageDetail_20' ) start [2025-02-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574517', 'tblTempUsageDetail_20' ) end [2025-02-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574517', 'tblTempVendorCDR_20' ) start [2025-02-28 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574517', 'tblTempVendorCDR_20' ) end [2025-02-28 06:09:17] Production.INFO: ProcessCDR(1,14574517,1,1,2) [2025-02-28 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574517', 'tblTempUsageDetail_20' ) start [2025-02-28 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574517', 'tblTempUsageDetail_20' ) end [2025-02-28 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:09:21] Production.INFO: ==17888== Releasing lock... [2025-02-28 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:09:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:10:06 [end_date_ymd] => 2025-02-28 06:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:10:06' and `end` < '2025-02-28 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-02-28 06:10:18] Production.INFO: count ==147 [2025-02-28 06:10:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:10:06 - End Time 2025-02-28 06:10:06 [2025-02-28 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574523', 'tblTempUsageDetail_20' ) start [2025-02-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574523', 'tblTempUsageDetail_20' ) end [2025-02-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574523', 'tblTempVendorCDR_20' ) start [2025-02-28 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574523', 'tblTempVendorCDR_20' ) end [2025-02-28 06:10:18] Production.INFO: ProcessCDR(1,14574523,1,1,2) [2025-02-28 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574523', 'tblTempUsageDetail_20' ) start [2025-02-28 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574523', 'tblTempUsageDetail_20' ) end [2025-02-28 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:10:21] Production.INFO: ==17962== Releasing lock... [2025-02-28 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:10:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:11:06 [end_date_ymd] => 2025-02-28 06:11:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:11:06' and `end` < '2025-02-28 06: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-02-28 06:11:17] Production.INFO: count ==147 [2025-02-28 06:11:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:11:06 - End Time 2025-02-28 06:11:06 [2025-02-28 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574528', 'tblTempUsageDetail_20' ) start [2025-02-28 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574528', 'tblTempUsageDetail_20' ) end [2025-02-28 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574528', 'tblTempVendorCDR_20' ) start [2025-02-28 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574528', 'tblTempVendorCDR_20' ) end [2025-02-28 06:11:17] Production.INFO: ProcessCDR(1,14574528,1,1,2) [2025-02-28 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574528', 'tblTempUsageDetail_20' ) start [2025-02-28 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574528', 'tblTempUsageDetail_20' ) end [2025-02-28 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:11:21] Production.INFO: ==18036== Releasing lock... [2025-02-28 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:11:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:12:05 [end_date_ymd] => 2025-02-28 06:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:12:05' and `end` < '2025-02-28 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-02-28 06:12:17] Production.INFO: count ==147 [2025-02-28 06:12:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:12:05 - End Time 2025-02-28 06:12:05 [2025-02-28 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574533', 'tblTempUsageDetail_20' ) start [2025-02-28 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574533', 'tblTempUsageDetail_20' ) end [2025-02-28 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574533', 'tblTempVendorCDR_20' ) start [2025-02-28 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574533', 'tblTempVendorCDR_20' ) end [2025-02-28 06:12:17] Production.INFO: ProcessCDR(1,14574533,1,1,2) [2025-02-28 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:12:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574533', 'tblTempUsageDetail_20' ) start [2025-02-28 06:12:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574533', 'tblTempUsageDetail_20' ) end [2025-02-28 06:12:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:12:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:12:20] Production.INFO: ==18106== Releasing lock... [2025-02-28 06:12:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:12:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:13:06 [end_date_ymd] => 2025-02-28 06:13:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:13:06' and `end` < '2025-02-28 06: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-02-28 06:13:17] Production.INFO: count ==152 [2025-02-28 06:13:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:13:06 - End Time 2025-02-28 06:13:06 [2025-02-28 06:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574538', 'tblTempUsageDetail_20' ) start [2025-02-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574538', 'tblTempUsageDetail_20' ) end [2025-02-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574538', 'tblTempVendorCDR_20' ) start [2025-02-28 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574538', 'tblTempVendorCDR_20' ) end [2025-02-28 06:13:18] Production.INFO: ProcessCDR(1,14574538,1,1,2) [2025-02-28 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574538', 'tblTempUsageDetail_20' ) start [2025-02-28 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574538', 'tblTempUsageDetail_20' ) end [2025-02-28 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:13:21] Production.INFO: ==18176== Releasing lock... [2025-02-28 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:13:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:14:06 [end_date_ymd] => 2025-02-28 06:14:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:14:06' and `end` < '2025-02-28 06: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-02-28 06:14:18] Production.INFO: count ==152 [2025-02-28 06:14:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:14:06 - End Time 2025-02-28 06:14:06 [2025-02-28 06:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574543', 'tblTempUsageDetail_20' ) start [2025-02-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574543', 'tblTempUsageDetail_20' ) end [2025-02-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574543', 'tblTempVendorCDR_20' ) start [2025-02-28 06:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574543', 'tblTempVendorCDR_20' ) end [2025-02-28 06:14:18] Production.INFO: ProcessCDR(1,14574543,1,1,2) [2025-02-28 06:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574543', 'tblTempUsageDetail_20' ) start [2025-02-28 06:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574543', 'tblTempUsageDetail_20' ) end [2025-02-28 06:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:14:21] Production.INFO: ==18253== Releasing lock... [2025-02-28 06:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:14:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:15:06 [end_date_ymd] => 2025-02-28 06:15:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:15:06' and `end` < '2025-02-28 06: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-02-28 06:15:18] Production.INFO: count ==150 [2025-02-28 06:15:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:15:06 - End Time 2025-02-28 06:15:06 [2025-02-28 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574548', 'tblTempUsageDetail_20' ) start [2025-02-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574548', 'tblTempUsageDetail_20' ) end [2025-02-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574548', 'tblTempVendorCDR_20' ) start [2025-02-28 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574548', 'tblTempVendorCDR_20' ) end [2025-02-28 06:15:18] Production.INFO: ProcessCDR(1,14574548,1,1,2) [2025-02-28 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574548', 'tblTempUsageDetail_20' ) start [2025-02-28 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574548', 'tblTempUsageDetail_20' ) end [2025-02-28 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:15:21] Production.INFO: ==18333== Releasing lock... [2025-02-28 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:15:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:16:05 [end_date_ymd] => 2025-02-28 06:16:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:16:05' and `end` < '2025-02-28 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-02-28 06:16:17] Production.INFO: count ==155 [2025-02-28 06:16:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:16:05 - End Time 2025-02-28 06:16:05 [2025-02-28 06:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574553', 'tblTempUsageDetail_20' ) start [2025-02-28 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574553', 'tblTempUsageDetail_20' ) end [2025-02-28 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574553', 'tblTempVendorCDR_20' ) start [2025-02-28 06:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574553', 'tblTempVendorCDR_20' ) end [2025-02-28 06:16:17] Production.INFO: ProcessCDR(1,14574553,1,1,2) [2025-02-28 06:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574553', 'tblTempUsageDetail_20' ) start [2025-02-28 06:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574553', 'tblTempUsageDetail_20' ) end [2025-02-28 06:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:16:20] Production.INFO: ==18407== Releasing lock... [2025-02-28 06:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:16:20] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:17:06 [end_date_ymd] => 2025-02-28 06:17:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:17:06' and `end` < '2025-02-28 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-02-28 06:17:18] Production.INFO: count ==160 [2025-02-28 06:17:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:17:06 - End Time 2025-02-28 06:17:06 [2025-02-28 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574558', 'tblTempUsageDetail_20' ) start [2025-02-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574558', 'tblTempUsageDetail_20' ) end [2025-02-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574558', 'tblTempVendorCDR_20' ) start [2025-02-28 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574558', 'tblTempVendorCDR_20' ) end [2025-02-28 06:17:18] Production.INFO: ProcessCDR(1,14574558,1,1,2) [2025-02-28 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574558', 'tblTempUsageDetail_20' ) start [2025-02-28 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574558', 'tblTempUsageDetail_20' ) end [2025-02-28 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:17:21] Production.INFO: ==18477== Releasing lock... [2025-02-28 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:17:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:18:06 [end_date_ymd] => 2025-02-28 06:18:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:18:06' and `end` < '2025-02-28 06: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-02-28 06:18:17] Production.INFO: count ==160 [2025-02-28 06:18:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:18:06 - End Time 2025-02-28 06:18:06 [2025-02-28 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574563', 'tblTempUsageDetail_20' ) start [2025-02-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574563', 'tblTempUsageDetail_20' ) end [2025-02-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574563', 'tblTempVendorCDR_20' ) start [2025-02-28 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574563', 'tblTempVendorCDR_20' ) end [2025-02-28 06:18:18] Production.INFO: ProcessCDR(1,14574563,1,1,2) [2025-02-28 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574563', 'tblTempUsageDetail_20' ) start [2025-02-28 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574563', 'tblTempUsageDetail_20' ) end [2025-02-28 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:18:21] Production.INFO: ==18547== Releasing lock... [2025-02-28 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:18:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:19:05 [end_date_ymd] => 2025-02-28 06:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:19:05' and `end` < '2025-02-28 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-02-28 06:19:17] Production.INFO: count ==160 [2025-02-28 06:19:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:19:05 - End Time 2025-02-28 06:19:05 [2025-02-28 06:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574568', 'tblTempUsageDetail_20' ) start [2025-02-28 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574568', 'tblTempUsageDetail_20' ) end [2025-02-28 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574568', 'tblTempVendorCDR_20' ) start [2025-02-28 06:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574568', 'tblTempVendorCDR_20' ) end [2025-02-28 06:19:17] Production.INFO: ProcessCDR(1,14574568,1,1,2) [2025-02-28 06:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574568', 'tblTempUsageDetail_20' ) start [2025-02-28 06:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574568', 'tblTempUsageDetail_20' ) end [2025-02-28 06:19:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:19:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:19:20] Production.INFO: ==18621== Releasing lock... [2025-02-28 06:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:19:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:20:06 [end_date_ymd] => 2025-02-28 06:20:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:20:06' and `end` < '2025-02-28 06: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-02-28 06:20:18] Production.INFO: count ==165 [2025-02-28 06:20:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:20:06 - End Time 2025-02-28 06:20:06 [2025-02-28 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574573', 'tblTempUsageDetail_20' ) start [2025-02-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574573', 'tblTempUsageDetail_20' ) end [2025-02-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574573', 'tblTempVendorCDR_20' ) start [2025-02-28 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574573', 'tblTempVendorCDR_20' ) end [2025-02-28 06:20:18] Production.INFO: ProcessCDR(1,14574573,1,1,2) [2025-02-28 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574573', 'tblTempUsageDetail_20' ) start [2025-02-28 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574573', 'tblTempUsageDetail_20' ) end [2025-02-28 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:20:21] Production.INFO: ==18693== Releasing lock... [2025-02-28 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:20:21] Production.INFO: 29 MB #Memory Used# [2025-02-28 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:21:06 [end_date_ymd] => 2025-02-28 06:21:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:21:06' and `end` < '2025-02-28 06: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-02-28 06:21:17] Production.INFO: count ==171 [2025-02-28 06:21:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:21:06 - End Time 2025-02-28 06:21:06 [2025-02-28 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574579', 'tblTempUsageDetail_20' ) start [2025-02-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574579', 'tblTempUsageDetail_20' ) end [2025-02-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574579', 'tblTempVendorCDR_20' ) start [2025-02-28 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574579', 'tblTempVendorCDR_20' ) end [2025-02-28 06:21:17] Production.INFO: ProcessCDR(1,14574579,1,1,2) [2025-02-28 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574579', 'tblTempUsageDetail_20' ) start [2025-02-28 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574579', 'tblTempUsageDetail_20' ) end [2025-02-28 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:21:21] Production.INFO: ==18766== Releasing lock... [2025-02-28 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:21:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:22:05 [end_date_ymd] => 2025-02-28 06:22:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:22:05' and `end` < '2025-02-28 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-02-28 06:22:17] Production.INFO: count ==171 [2025-02-28 06:22:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:22:05 - End Time 2025-02-28 06:22:05 [2025-02-28 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574584', 'tblTempUsageDetail_20' ) start [2025-02-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574584', 'tblTempUsageDetail_20' ) end [2025-02-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574584', 'tblTempVendorCDR_20' ) start [2025-02-28 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574584', 'tblTempVendorCDR_20' ) end [2025-02-28 06:22:17] Production.INFO: ProcessCDR(1,14574584,1,1,2) [2025-02-28 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:22:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574584', 'tblTempUsageDetail_20' ) start [2025-02-28 06:22:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574584', 'tblTempUsageDetail_20' ) end [2025-02-28 06:22:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:22:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:22:20] Production.INFO: ==18840== Releasing lock... [2025-02-28 06:22:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:22:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:23:05 [end_date_ymd] => 2025-02-28 06:23:05 [RateCDR] => 1 ) [2025-02-28 06:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 03:23:05' and `end` < '2025-02-28 06:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 06:23:17] Production.INFO: count ==171 [2025-02-28 06:23:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:23:05 - End Time 2025-02-28 06:23:05 [2025-02-28 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574589', 'tblTempUsageDetail_20' ) start [2025-02-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574589', 'tblTempUsageDetail_20' ) end [2025-02-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574589', 'tblTempVendorCDR_20' ) start [2025-02-28 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574589', 'tblTempVendorCDR_20' ) end [2025-02-28 06:23:17] Production.INFO: ProcessCDR(1,14574589,1,1,2) [2025-02-28 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574589', 'tblTempUsageDetail_20' ) start [2025-02-28 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574589', 'tblTempUsageDetail_20' ) end [2025-02-28 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:23:21] Production.INFO: ==18951== Releasing lock... [2025-02-28 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:23:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:24:05 [end_date_ymd] => 2025-02-28 06:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:24:05' and `end` < '2025-02-28 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-02-28 06:24:17] Production.INFO: count ==171 [2025-02-28 06:24:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:24:05 - End Time 2025-02-28 06:24:05 [2025-02-28 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574594', 'tblTempUsageDetail_20' ) start [2025-02-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574594', 'tblTempUsageDetail_20' ) end [2025-02-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574594', 'tblTempVendorCDR_20' ) start [2025-02-28 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574594', 'tblTempVendorCDR_20' ) end [2025-02-28 06:24:17] Production.INFO: ProcessCDR(1,14574594,1,1,2) [2025-02-28 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574594', 'tblTempUsageDetail_20' ) start [2025-02-28 06:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574594', 'tblTempUsageDetail_20' ) end [2025-02-28 06:24:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:24:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:24:20] Production.INFO: ==19020== Releasing lock... [2025-02-28 06:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:24:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:25:06 [end_date_ymd] => 2025-02-28 06:25:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:25:06' and `end` < '2025-02-28 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-02-28 06:25:17] Production.INFO: count ==171 [2025-02-28 06:25:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:25:06 - End Time 2025-02-28 06:25:06 [2025-02-28 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574599', 'tblTempUsageDetail_20' ) start [2025-02-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574599', 'tblTempUsageDetail_20' ) end [2025-02-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574599', 'tblTempVendorCDR_20' ) start [2025-02-28 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574599', 'tblTempVendorCDR_20' ) end [2025-02-28 06:25:17] Production.INFO: ProcessCDR(1,14574599,1,1,2) [2025-02-28 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574599', 'tblTempUsageDetail_20' ) start [2025-02-28 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574599', 'tblTempUsageDetail_20' ) end [2025-02-28 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:25:21] Production.INFO: ==19096== Releasing lock... [2025-02-28 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:25:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:26:05 [end_date_ymd] => 2025-02-28 06:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:26:05' and `end` < '2025-02-28 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-02-28 06:26:17] Production.INFO: count ==181 [2025-02-28 06:26:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:26:05 - End Time 2025-02-28 06:26:05 [2025-02-28 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574604', 'tblTempUsageDetail_20' ) start [2025-02-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574604', 'tblTempUsageDetail_20' ) end [2025-02-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574604', 'tblTempVendorCDR_20' ) start [2025-02-28 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574604', 'tblTempVendorCDR_20' ) end [2025-02-28 06:26:17] Production.INFO: ProcessCDR(1,14574604,1,1,2) [2025-02-28 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574604', 'tblTempUsageDetail_20' ) start [2025-02-28 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574604', 'tblTempUsageDetail_20' ) end [2025-02-28 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:26:20] Production.INFO: ==19167== Releasing lock... [2025-02-28 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:26:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:27:05 [end_date_ymd] => 2025-02-28 06:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:27:05' and `end` < '2025-02-28 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-02-28 06:27:17] Production.INFO: count ==183 [2025-02-28 06:27:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:27:05 - End Time 2025-02-28 06:27:05 [2025-02-28 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574609', 'tblTempUsageDetail_20' ) start [2025-02-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574609', 'tblTempUsageDetail_20' ) end [2025-02-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574609', 'tblTempVendorCDR_20' ) start [2025-02-28 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574609', 'tblTempVendorCDR_20' ) end [2025-02-28 06:27:17] Production.INFO: ProcessCDR(1,14574609,1,1,2) [2025-02-28 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574609', 'tblTempUsageDetail_20' ) start [2025-02-28 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574609', 'tblTempUsageDetail_20' ) end [2025-02-28 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:27:21] Production.INFO: ==19239== Releasing lock... [2025-02-28 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:27:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:28:05 [end_date_ymd] => 2025-02-28 06:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:28:05' and `end` < '2025-02-28 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-02-28 06:28:17] Production.INFO: count ==184 [2025-02-28 06:28:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:28:05 - End Time 2025-02-28 06:28:05 [2025-02-28 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574614', 'tblTempUsageDetail_20' ) start [2025-02-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574614', 'tblTempUsageDetail_20' ) end [2025-02-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574614', 'tblTempVendorCDR_20' ) start [2025-02-28 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574614', 'tblTempVendorCDR_20' ) end [2025-02-28 06:28:17] Production.INFO: ProcessCDR(1,14574614,1,1,2) [2025-02-28 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574614', 'tblTempUsageDetail_20' ) start [2025-02-28 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574614', 'tblTempUsageDetail_20' ) end [2025-02-28 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:28:20] Production.INFO: ==19316== Releasing lock... [2025-02-28 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:28:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:29:05 [end_date_ymd] => 2025-02-28 06:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:29:05' and `end` < '2025-02-28 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-02-28 06:29:17] Production.INFO: count ==186 [2025-02-28 06:29:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:29:05 - End Time 2025-02-28 06:29:05 [2025-02-28 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574619', 'tblTempUsageDetail_20' ) start [2025-02-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574619', 'tblTempUsageDetail_20' ) end [2025-02-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574619', 'tblTempVendorCDR_20' ) start [2025-02-28 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574619', 'tblTempVendorCDR_20' ) end [2025-02-28 06:29:17] Production.INFO: ProcessCDR(1,14574619,1,1,2) [2025-02-28 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574619', 'tblTempUsageDetail_20' ) start [2025-02-28 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574619', 'tblTempUsageDetail_20' ) end [2025-02-28 06:29:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:29:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:29:20] Production.INFO: ==19386== Releasing lock... [2025-02-28 06:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:29:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:30:06 [end_date_ymd] => 2025-02-28 06:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:30:06' and `end` < '2025-02-28 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-02-28 06:30:18] Production.INFO: count ==192 [2025-02-28 06:30:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:30:06 - End Time 2025-02-28 06:30:06 [2025-02-28 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574625', 'tblTempUsageDetail_20' ) start [2025-02-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574625', 'tblTempUsageDetail_20' ) end [2025-02-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574625', 'tblTempVendorCDR_20' ) start [2025-02-28 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574625', 'tblTempVendorCDR_20' ) end [2025-02-28 06:30:18] Production.INFO: ProcessCDR(1,14574625,1,1,2) [2025-02-28 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574625', 'tblTempUsageDetail_20' ) start [2025-02-28 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574625', 'tblTempUsageDetail_20' ) end [2025-02-28 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:30:21] Production.INFO: ==19461== Releasing lock... [2025-02-28 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:30:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:31:05 [end_date_ymd] => 2025-02-28 06:31:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:31:05' and `end` < '2025-02-28 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-02-28 06:31:17] Production.INFO: count ==196 [2025-02-28 06:31:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:31:05 - End Time 2025-02-28 06:31:05 [2025-02-28 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574630', 'tblTempUsageDetail_20' ) start [2025-02-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574630', 'tblTempUsageDetail_20' ) end [2025-02-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574630', 'tblTempVendorCDR_20' ) start [2025-02-28 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574630', 'tblTempVendorCDR_20' ) end [2025-02-28 06:31:17] Production.INFO: ProcessCDR(1,14574630,1,1,2) [2025-02-28 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574630', 'tblTempUsageDetail_20' ) start [2025-02-28 06:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574630', 'tblTempUsageDetail_20' ) end [2025-02-28 06:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:31:22] Production.INFO: ==19534== Releasing lock... [2025-02-28 06:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:31:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:32:06 [end_date_ymd] => 2025-02-28 06:32:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:32:06' and `end` < '2025-02-28 06: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-02-28 06:32:18] Production.INFO: count ==196 [2025-02-28 06:32:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:32:06 - End Time 2025-02-28 06:32:06 [2025-02-28 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574635', 'tblTempUsageDetail_20' ) start [2025-02-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574635', 'tblTempUsageDetail_20' ) end [2025-02-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574635', 'tblTempVendorCDR_20' ) start [2025-02-28 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574635', 'tblTempVendorCDR_20' ) end [2025-02-28 06:32:18] Production.INFO: ProcessCDR(1,14574635,1,1,2) [2025-02-28 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574635', 'tblTempUsageDetail_20' ) start [2025-02-28 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574635', 'tblTempUsageDetail_20' ) end [2025-02-28 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:32:21] Production.INFO: ==19605== Releasing lock... [2025-02-28 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:33:05 [end_date_ymd] => 2025-02-28 06:33:05 [RateCDR] => 1 ) [2025-02-28 06:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 03:33:05' and `end` < '2025-02-28 06:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 06:33:17] Production.INFO: count ==196 [2025-02-28 06:33:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:33:05 - End Time 2025-02-28 06:33:05 [2025-02-28 06:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574640', 'tblTempUsageDetail_20' ) start [2025-02-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574640', 'tblTempUsageDetail_20' ) end [2025-02-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574640', 'tblTempVendorCDR_20' ) start [2025-02-28 06:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574640', 'tblTempVendorCDR_20' ) end [2025-02-28 06:33:17] Production.INFO: ProcessCDR(1,14574640,1,1,2) [2025-02-28 06:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574640', 'tblTempUsageDetail_20' ) start [2025-02-28 06:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574640', 'tblTempUsageDetail_20' ) end [2025-02-28 06:33:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:33:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:33:20] Production.INFO: ==19682== Releasing lock... [2025-02-28 06:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:33:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:34:06 [end_date_ymd] => 2025-02-28 06:34:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:34:06' and `end` < '2025-02-28 06: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-02-28 06:34:18] Production.INFO: count ==196 [2025-02-28 06:34:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:34:06 - End Time 2025-02-28 06:34:06 [2025-02-28 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574645', 'tblTempUsageDetail_20' ) start [2025-02-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574645', 'tblTempUsageDetail_20' ) end [2025-02-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574645', 'tblTempVendorCDR_20' ) start [2025-02-28 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574645', 'tblTempVendorCDR_20' ) end [2025-02-28 06:34:18] Production.INFO: ProcessCDR(1,14574645,1,1,2) [2025-02-28 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574645', 'tblTempUsageDetail_20' ) start [2025-02-28 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574645', 'tblTempUsageDetail_20' ) end [2025-02-28 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:34:21] Production.INFO: ==19753== Releasing lock... [2025-02-28 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:34:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:35:05 [end_date_ymd] => 2025-02-28 06:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:35:05' and `end` < '2025-02-28 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-02-28 06:35:17] Production.INFO: count ==196 [2025-02-28 06:35:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:35:05 - End Time 2025-02-28 06:35:05 [2025-02-28 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574650', 'tblTempUsageDetail_20' ) start [2025-02-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574650', 'tblTempUsageDetail_20' ) end [2025-02-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574650', 'tblTempVendorCDR_20' ) start [2025-02-28 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574650', 'tblTempVendorCDR_20' ) end [2025-02-28 06:35:17] Production.INFO: ProcessCDR(1,14574650,1,1,2) [2025-02-28 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574650', 'tblTempUsageDetail_20' ) start [2025-02-28 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574650', 'tblTempUsageDetail_20' ) end [2025-02-28 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:35:20] Production.INFO: ==19825== Releasing lock... [2025-02-28 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:35:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:36:05 [end_date_ymd] => 2025-02-28 06:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:36:05' and `end` < '2025-02-28 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-02-28 06:36:17] Production.INFO: count ==200 [2025-02-28 06:36:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:36:05 - End Time 2025-02-28 06:36:05 [2025-02-28 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574655', 'tblTempUsageDetail_20' ) start [2025-02-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574655', 'tblTempUsageDetail_20' ) end [2025-02-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574655', 'tblTempVendorCDR_20' ) start [2025-02-28 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574655', 'tblTempVendorCDR_20' ) end [2025-02-28 06:36:17] Production.INFO: ProcessCDR(1,14574655,1,1,2) [2025-02-28 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574655', 'tblTempUsageDetail_20' ) start [2025-02-28 06:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574655', 'tblTempUsageDetail_20' ) end [2025-02-28 06:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:36:20] Production.INFO: ==19896== Releasing lock... [2025-02-28 06:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:36:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:37:05 [end_date_ymd] => 2025-02-28 06:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:37:05' and `end` < '2025-02-28 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-02-28 06:37:17] Production.INFO: count ==200 [2025-02-28 06:37:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:37:05 - End Time 2025-02-28 06:37:05 [2025-02-28 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574660', 'tblTempUsageDetail_20' ) start [2025-02-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574660', 'tblTempUsageDetail_20' ) end [2025-02-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574660', 'tblTempVendorCDR_20' ) start [2025-02-28 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574660', 'tblTempVendorCDR_20' ) end [2025-02-28 06:37:17] Production.INFO: ProcessCDR(1,14574660,1,1,2) [2025-02-28 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574660', 'tblTempUsageDetail_20' ) start [2025-02-28 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574660', 'tblTempUsageDetail_20' ) end [2025-02-28 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:37:20] Production.INFO: ==19970== Releasing lock... [2025-02-28 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:37:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:38:06 [end_date_ymd] => 2025-02-28 06:38:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:38:06' and `end` < '2025-02-28 06: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-02-28 06:38:18] Production.INFO: count ==200 [2025-02-28 06:38:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:38:06 - End Time 2025-02-28 06:38:06 [2025-02-28 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574665', 'tblTempUsageDetail_20' ) start [2025-02-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574665', 'tblTempUsageDetail_20' ) end [2025-02-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574665', 'tblTempVendorCDR_20' ) start [2025-02-28 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574665', 'tblTempVendorCDR_20' ) end [2025-02-28 06:38:18] Production.INFO: ProcessCDR(1,14574665,1,1,2) [2025-02-28 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574665', 'tblTempUsageDetail_20' ) start [2025-02-28 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574665', 'tblTempUsageDetail_20' ) end [2025-02-28 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:38:21] Production.INFO: ==20041== Releasing lock... [2025-02-28 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:39:05 [end_date_ymd] => 2025-02-28 06:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:39:05' and `end` < '2025-02-28 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-02-28 06:39:16] Production.INFO: count ==200 [2025-02-28 06:39:16] Production.ERROR: pbx CDR StartTime 2025-02-28 03:39:05 - End Time 2025-02-28 06:39:05 [2025-02-28 06:39:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:39:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574670', 'tblTempUsageDetail_20' ) start [2025-02-28 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574670', 'tblTempUsageDetail_20' ) end [2025-02-28 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574670', 'tblTempVendorCDR_20' ) start [2025-02-28 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574670', 'tblTempVendorCDR_20' ) end [2025-02-28 06:39:17] Production.INFO: ProcessCDR(1,14574670,1,1,2) [2025-02-28 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574670', 'tblTempUsageDetail_20' ) start [2025-02-28 06:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574670', 'tblTempUsageDetail_20' ) end [2025-02-28 06:39:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:39:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:39:20] Production.INFO: ==20151== Releasing lock... [2025-02-28 06:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:39:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:40:06 [end_date_ymd] => 2025-02-28 06:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:40:06' and `end` < '2025-02-28 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-02-28 06:40:18] Production.INFO: count ==205 [2025-02-28 06:40:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:40:06 - End Time 2025-02-28 06:40:06 [2025-02-28 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574676', 'tblTempUsageDetail_20' ) start [2025-02-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574676', 'tblTempUsageDetail_20' ) end [2025-02-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574676', 'tblTempVendorCDR_20' ) start [2025-02-28 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574676', 'tblTempVendorCDR_20' ) end [2025-02-28 06:40:18] Production.INFO: ProcessCDR(1,14574676,1,1,2) [2025-02-28 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574676', 'tblTempUsageDetail_20' ) start [2025-02-28 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574676', 'tblTempUsageDetail_20' ) end [2025-02-28 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:40:21] Production.INFO: ==20227== Releasing lock... [2025-02-28 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:40:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:41:05 [end_date_ymd] => 2025-02-28 06:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:41:05' and `end` < '2025-02-28 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-02-28 06:41:17] Production.INFO: count ==205 [2025-02-28 06:41:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:41:05 - End Time 2025-02-28 06:41:05 [2025-02-28 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574681', 'tblTempUsageDetail_20' ) start [2025-02-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574681', 'tblTempUsageDetail_20' ) end [2025-02-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574681', 'tblTempVendorCDR_20' ) start [2025-02-28 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574681', 'tblTempVendorCDR_20' ) end [2025-02-28 06:41:17] Production.INFO: ProcessCDR(1,14574681,1,1,2) [2025-02-28 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574681', 'tblTempUsageDetail_20' ) start [2025-02-28 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574681', 'tblTempUsageDetail_20' ) end [2025-02-28 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:41:21] Production.INFO: ==20303== Releasing lock... [2025-02-28 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:42:05 [end_date_ymd] => 2025-02-28 06:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:42:05' and `end` < '2025-02-28 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-02-28 06:42:17] Production.INFO: count ==206 [2025-02-28 06:42:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:42:05 - End Time 2025-02-28 06:42:05 [2025-02-28 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574686', 'tblTempUsageDetail_20' ) start [2025-02-28 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574686', 'tblTempUsageDetail_20' ) end [2025-02-28 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574686', 'tblTempVendorCDR_20' ) start [2025-02-28 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574686', 'tblTempVendorCDR_20' ) end [2025-02-28 06:42:17] Production.INFO: ProcessCDR(1,14574686,1,1,2) [2025-02-28 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574686', 'tblTempUsageDetail_20' ) start [2025-02-28 06:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574686', 'tblTempUsageDetail_20' ) end [2025-02-28 06:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:42:22] Production.INFO: ==20372== Releasing lock... [2025-02-28 06:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:42:22] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:43:05 [end_date_ymd] => 2025-02-28 06:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:43:05' and `end` < '2025-02-28 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-02-28 06:43:17] Production.INFO: count ==206 [2025-02-28 06:43:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:43:05 - End Time 2025-02-28 06:43:05 [2025-02-28 06:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574691', 'tblTempUsageDetail_20' ) start [2025-02-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574691', 'tblTempUsageDetail_20' ) end [2025-02-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574691', 'tblTempVendorCDR_20' ) start [2025-02-28 06:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574691', 'tblTempVendorCDR_20' ) end [2025-02-28 06:43:17] Production.INFO: ProcessCDR(1,14574691,1,1,2) [2025-02-28 06:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574691', 'tblTempUsageDetail_20' ) start [2025-02-28 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574691', 'tblTempUsageDetail_20' ) end [2025-02-28 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:43:21] Production.INFO: ==20445== Releasing lock... [2025-02-28 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:44:05 [end_date_ymd] => 2025-02-28 06:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:44:05' and `end` < '2025-02-28 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-02-28 06:44:17] Production.INFO: count ==206 [2025-02-28 06:44:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:44:05 - End Time 2025-02-28 06:44:05 [2025-02-28 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574696', 'tblTempUsageDetail_20' ) start [2025-02-28 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574696', 'tblTempUsageDetail_20' ) end [2025-02-28 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574696', 'tblTempVendorCDR_20' ) start [2025-02-28 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574696', 'tblTempVendorCDR_20' ) end [2025-02-28 06:44:17] Production.INFO: ProcessCDR(1,14574696,1,1,2) [2025-02-28 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574696', 'tblTempUsageDetail_20' ) start [2025-02-28 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574696', 'tblTempUsageDetail_20' ) end [2025-02-28 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:44:20] Production.INFO: ==20514== Releasing lock... [2025-02-28 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:44:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:45:05 [end_date_ymd] => 2025-02-28 06:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:45:05' and `end` < '2025-02-28 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-02-28 06:45:17] Production.INFO: count ==206 [2025-02-28 06:45:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:45:05 - End Time 2025-02-28 06:45:05 [2025-02-28 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574701', 'tblTempUsageDetail_20' ) start [2025-02-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574701', 'tblTempUsageDetail_20' ) end [2025-02-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574701', 'tblTempVendorCDR_20' ) start [2025-02-28 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574701', 'tblTempVendorCDR_20' ) end [2025-02-28 06:45:17] Production.INFO: ProcessCDR(1,14574701,1,1,2) [2025-02-28 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574701', 'tblTempUsageDetail_20' ) start [2025-02-28 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574701', 'tblTempUsageDetail_20' ) end [2025-02-28 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:45:20] Production.INFO: ==20586== Releasing lock... [2025-02-28 06:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:46:06 [end_date_ymd] => 2025-02-28 06:46:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:46:06' and `end` < '2025-02-28 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-02-28 06:46:17] Production.INFO: count ==206 [2025-02-28 06:46:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:46:06 - End Time 2025-02-28 06:46:06 [2025-02-28 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574706', 'tblTempUsageDetail_20' ) start [2025-02-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574706', 'tblTempUsageDetail_20' ) end [2025-02-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574706', 'tblTempVendorCDR_20' ) start [2025-02-28 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574706', 'tblTempVendorCDR_20' ) end [2025-02-28 06:46:17] Production.INFO: ProcessCDR(1,14574706,1,1,2) [2025-02-28 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574706', 'tblTempUsageDetail_20' ) start [2025-02-28 06:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574706', 'tblTempUsageDetail_20' ) end [2025-02-28 06:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:46:21] Production.INFO: ==20657== Releasing lock... [2025-02-28 06:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:46:21] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:47:05 [end_date_ymd] => 2025-02-28 06:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:47:05' and `end` < '2025-02-28 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-02-28 06:47:16] Production.INFO: count ==206 [2025-02-28 06:47:16] Production.ERROR: pbx CDR StartTime 2025-02-28 03:47:05 - End Time 2025-02-28 06:47:05 [2025-02-28 06:47:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574711', 'tblTempUsageDetail_20' ) start [2025-02-28 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574711', 'tblTempUsageDetail_20' ) end [2025-02-28 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574711', 'tblTempVendorCDR_20' ) start [2025-02-28 06:47:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574711', 'tblTempVendorCDR_20' ) end [2025-02-28 06:47:16] Production.INFO: ProcessCDR(1,14574711,1,1,2) [2025-02-28 06:47:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574711', 'tblTempUsageDetail_20' ) start [2025-02-28 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574711', 'tblTempUsageDetail_20' ) end [2025-02-28 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:47:20] Production.INFO: ==20729== Releasing lock... [2025-02-28 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:47:20] Production.INFO: 29.25 MB #Memory Used# [2025-02-28 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:48:05 [end_date_ymd] => 2025-02-28 06:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:48:05' and `end` < '2025-02-28 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-02-28 06:48:17] Production.INFO: count ==207 [2025-02-28 06:48:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:48:05 - End Time 2025-02-28 06:48:05 [2025-02-28 06:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574716', 'tblTempUsageDetail_20' ) start [2025-02-28 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574716', 'tblTempUsageDetail_20' ) end [2025-02-28 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574716', 'tblTempVendorCDR_20' ) start [2025-02-28 06:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574716', 'tblTempVendorCDR_20' ) end [2025-02-28 06:48:17] Production.INFO: ProcessCDR(1,14574716,1,1,2) [2025-02-28 06:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574716', 'tblTempUsageDetail_20' ) start [2025-02-28 06:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574716', 'tblTempUsageDetail_20' ) end [2025-02-28 06:48:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:48:22] Production.INFO: ==20802== Releasing lock... [2025-02-28 06:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:48:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:49:05 [end_date_ymd] => 2025-02-28 06:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:49:05' and `end` < '2025-02-28 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-02-28 06:49:16] Production.INFO: count ==209 [2025-02-28 06:49:16] Production.ERROR: pbx CDR StartTime 2025-02-28 03:49:05 - End Time 2025-02-28 06:49:05 [2025-02-28 06:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574721', 'tblTempUsageDetail_20' ) start [2025-02-28 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574721', 'tblTempUsageDetail_20' ) end [2025-02-28 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574721', 'tblTempVendorCDR_20' ) start [2025-02-28 06:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574721', 'tblTempVendorCDR_20' ) end [2025-02-28 06:49:16] Production.INFO: ProcessCDR(1,14574721,1,1,2) [2025-02-28 06:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574721', 'tblTempUsageDetail_20' ) start [2025-02-28 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574721', 'tblTempUsageDetail_20' ) end [2025-02-28 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:49:20] Production.INFO: ==20905== Releasing lock... [2025-02-28 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:49:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:50:06 [end_date_ymd] => 2025-02-28 06:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:50:06' and `end` < '2025-02-28 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-02-28 06:50:18] Production.INFO: count ==213 [2025-02-28 06:50:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:50:06 - End Time 2025-02-28 06:50:06 [2025-02-28 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574727', 'tblTempUsageDetail_20' ) start [2025-02-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574727', 'tblTempUsageDetail_20' ) end [2025-02-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574727', 'tblTempVendorCDR_20' ) start [2025-02-28 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574727', 'tblTempVendorCDR_20' ) end [2025-02-28 06:50:18] Production.INFO: ProcessCDR(1,14574727,1,1,2) [2025-02-28 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574727', 'tblTempUsageDetail_20' ) start [2025-02-28 06:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574727', 'tblTempUsageDetail_20' ) end [2025-02-28 06:50:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:50:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:50:23] Production.INFO: ==21009== Releasing lock... [2025-02-28 06:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:50:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:51:06 [end_date_ymd] => 2025-02-28 06:51:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:51:06' and `end` < '2025-02-28 06: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-02-28 06:51:17] Production.INFO: count ==213 [2025-02-28 06:51:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:51:06 - End Time 2025-02-28 06:51:06 [2025-02-28 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574732', 'tblTempUsageDetail_20' ) start [2025-02-28 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574732', 'tblTempUsageDetail_20' ) end [2025-02-28 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574732', 'tblTempVendorCDR_20' ) start [2025-02-28 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574732', 'tblTempVendorCDR_20' ) end [2025-02-28 06:51:18] Production.INFO: ProcessCDR(1,14574732,1,1,2) [2025-02-28 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574732', 'tblTempUsageDetail_20' ) start [2025-02-28 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574732', 'tblTempUsageDetail_20' ) end [2025-02-28 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:51:21] Production.INFO: ==21103== Releasing lock... [2025-02-28 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:51:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:52:06 [end_date_ymd] => 2025-02-28 06:52:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:52:06' and `end` < '2025-02-28 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-02-28 06:52:18] Production.INFO: count ==213 [2025-02-28 06:52:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:52:06 - End Time 2025-02-28 06:52:06 [2025-02-28 06:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574737', 'tblTempUsageDetail_20' ) start [2025-02-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574737', 'tblTempUsageDetail_20' ) end [2025-02-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574737', 'tblTempVendorCDR_20' ) start [2025-02-28 06:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574737', 'tblTempVendorCDR_20' ) end [2025-02-28 06:52:18] Production.INFO: ProcessCDR(1,14574737,1,1,2) [2025-02-28 06:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574737', 'tblTempUsageDetail_20' ) start [2025-02-28 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574737', 'tblTempUsageDetail_20' ) end [2025-02-28 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:52:21] Production.INFO: ==21207== Releasing lock... [2025-02-28 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:52:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:53:06 [end_date_ymd] => 2025-02-28 06:53:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:53:06' and `end` < '2025-02-28 06: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-02-28 06:53:18] Production.INFO: count ==213 [2025-02-28 06:53:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:53:06 - End Time 2025-02-28 06:53:06 [2025-02-28 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574742', 'tblTempUsageDetail_20' ) start [2025-02-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574742', 'tblTempUsageDetail_20' ) end [2025-02-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574742', 'tblTempVendorCDR_20' ) start [2025-02-28 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574742', 'tblTempVendorCDR_20' ) end [2025-02-28 06:53:18] Production.INFO: ProcessCDR(1,14574742,1,1,2) [2025-02-28 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574742', 'tblTempUsageDetail_20' ) start [2025-02-28 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574742', 'tblTempUsageDetail_20' ) end [2025-02-28 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:53:21] Production.INFO: ==21315== Releasing lock... [2025-02-28 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:53:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:54:06 [end_date_ymd] => 2025-02-28 06:54:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:54:06' and `end` < '2025-02-28 06: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-02-28 06:54:17] Production.INFO: count ==213 [2025-02-28 06:54:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:54:06 - End Time 2025-02-28 06:54:06 [2025-02-28 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574747', 'tblTempUsageDetail_20' ) start [2025-02-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574747', 'tblTempUsageDetail_20' ) end [2025-02-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574747', 'tblTempVendorCDR_20' ) start [2025-02-28 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574747', 'tblTempVendorCDR_20' ) end [2025-02-28 06:54:17] Production.INFO: ProcessCDR(1,14574747,1,1,2) [2025-02-28 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574747', 'tblTempUsageDetail_20' ) start [2025-02-28 06:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574747', 'tblTempUsageDetail_20' ) end [2025-02-28 06:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:54:21] Production.INFO: ==21452== Releasing lock... [2025-02-28 06:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:54:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 06:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:55:06 [end_date_ymd] => 2025-02-28 06:55:06 [RateCDR] => 1 ) [2025-02-28 06: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-02-28 03:55:06' and `end` < '2025-02-28 06: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-02-28 06:55:18] Production.INFO: count ==209 [2025-02-28 06:55:18] Production.ERROR: pbx CDR StartTime 2025-02-28 03:55:06 - End Time 2025-02-28 06:55:06 [2025-02-28 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574752', 'tblTempUsageDetail_20' ) start [2025-02-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574752', 'tblTempUsageDetail_20' ) end [2025-02-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574752', 'tblTempVendorCDR_20' ) start [2025-02-28 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574752', 'tblTempVendorCDR_20' ) end [2025-02-28 06:55:18] Production.INFO: ProcessCDR(1,14574752,1,1,2) [2025-02-28 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574752', 'tblTempUsageDetail_20' ) start [2025-02-28 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574752', 'tblTempUsageDetail_20' ) end [2025-02-28 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:55:21] Production.INFO: ==21555== Releasing lock... [2025-02-28 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:56:05 [end_date_ymd] => 2025-02-28 06:56:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:56:05' and `end` < '2025-02-28 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-02-28 06:56:17] Production.INFO: count ==209 [2025-02-28 06:56:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:56:05 - End Time 2025-02-28 06:56:05 [2025-02-28 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574757', 'tblTempUsageDetail_20' ) start [2025-02-28 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574757', 'tblTempUsageDetail_20' ) end [2025-02-28 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574757', 'tblTempVendorCDR_20' ) start [2025-02-28 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574757', 'tblTempVendorCDR_20' ) end [2025-02-28 06:56:17] Production.INFO: ProcessCDR(1,14574757,1,1,2) [2025-02-28 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574757', 'tblTempUsageDetail_20' ) start [2025-02-28 06:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574757', 'tblTempUsageDetail_20' ) end [2025-02-28 06:56:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:56:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:56:20] Production.INFO: ==21637== Releasing lock... [2025-02-28 06:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:56:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:57:05 [end_date_ymd] => 2025-02-28 06:57:05 [RateCDR] => 1 ) [2025-02-28 06:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 03:57:05' and `end` < '2025-02-28 06:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 06:57:17] Production.INFO: count ==209 [2025-02-28 06:57:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:57:05 - End Time 2025-02-28 06:57:05 [2025-02-28 06:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574762', 'tblTempUsageDetail_20' ) start [2025-02-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574762', 'tblTempUsageDetail_20' ) end [2025-02-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574762', 'tblTempVendorCDR_20' ) start [2025-02-28 06:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574762', 'tblTempVendorCDR_20' ) end [2025-02-28 06:57:17] Production.INFO: ProcessCDR(1,14574762,1,1,2) [2025-02-28 06:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574762', 'tblTempUsageDetail_20' ) start [2025-02-28 06:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574762', 'tblTempUsageDetail_20' ) end [2025-02-28 06:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:57:20] Production.INFO: ==21736== Releasing lock... [2025-02-28 06:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:57:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:58:05 [end_date_ymd] => 2025-02-28 06:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 03:58:05' and `end` < '2025-02-28 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-02-28 06:58:17] Production.INFO: count ==209 [2025-02-28 06:58:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:58:05 - End Time 2025-02-28 06:58:05 [2025-02-28 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574767', 'tblTempUsageDetail_20' ) start [2025-02-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574767', 'tblTempUsageDetail_20' ) end [2025-02-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574767', 'tblTempVendorCDR_20' ) start [2025-02-28 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574767', 'tblTempVendorCDR_20' ) end [2025-02-28 06:58:17] Production.INFO: ProcessCDR(1,14574767,1,1,2) [2025-02-28 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574767', 'tblTempUsageDetail_20' ) start [2025-02-28 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574767', 'tblTempUsageDetail_20' ) end [2025-02-28 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:58:20] Production.INFO: ==21834== Releasing lock... [2025-02-28 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:58:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 03:59:05 [end_date_ymd] => 2025-02-28 06:59:05 [RateCDR] => 1 ) [2025-02-28 06:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 03:59:05' and `end` < '2025-02-28 06:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 06:59:17] Production.INFO: count ==209 [2025-02-28 06:59:17] Production.ERROR: pbx CDR StartTime 2025-02-28 03:59:05 - End Time 2025-02-28 06:59:05 [2025-02-28 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574772', 'tblTempUsageDetail_20' ) start [2025-02-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574772', 'tblTempUsageDetail_20' ) end [2025-02-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574772', 'tblTempVendorCDR_20' ) start [2025-02-28 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574772', 'tblTempVendorCDR_20' ) end [2025-02-28 06:59:17] Production.INFO: ProcessCDR(1,14574772,1,1,2) [2025-02-28 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574772', 'tblTempUsageDetail_20' ) start [2025-02-28 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574772', 'tblTempUsageDetail_20' ) end [2025-02-28 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 06:59:20] Production.INFO: ==21909== Releasing lock... [2025-02-28 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 06:59:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:00:05 [end_date_ymd] => 2025-02-28 07:00:05 [RateCDR] => 1 ) [2025-02-28 07:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:00:05' and `end` < '2025-02-28 07:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:00:17] Production.INFO: count ==207 [2025-02-28 07:00:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:00:05 - End Time 2025-02-28 07:00:05 [2025-02-28 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574777', 'tblTempUsageDetail_20' ) start [2025-02-28 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574777', 'tblTempUsageDetail_20' ) end [2025-02-28 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574777', 'tblTempVendorCDR_20' ) start [2025-02-28 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574777', 'tblTempVendorCDR_20' ) end [2025-02-28 07:00:17] Production.INFO: ProcessCDR(1,14574777,1,1,2) [2025-02-28 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:00:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574777', 'tblTempUsageDetail_20' ) start [2025-02-28 07:00:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574777', 'tblTempUsageDetail_20' ) end [2025-02-28 07:00:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:00:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:00:20] Production.INFO: ==21982== Releasing lock... [2025-02-28 07:00:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:00:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:01:05 [end_date_ymd] => 2025-02-28 07:01:05 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:01:05' and `end` < '2025-02-28 07: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-02-28 07:01:17] Production.INFO: count ==207 [2025-02-28 07:01:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:01:05 - End Time 2025-02-28 07:01:05 [2025-02-28 07:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574783', 'tblTempUsageDetail_20' ) start [2025-02-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574783', 'tblTempUsageDetail_20' ) end [2025-02-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574783', 'tblTempVendorCDR_20' ) start [2025-02-28 07:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574783', 'tblTempVendorCDR_20' ) end [2025-02-28 07:01:17] Production.INFO: ProcessCDR(1,14574783,1,1,2) [2025-02-28 07:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574783', 'tblTempUsageDetail_20' ) start [2025-02-28 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574783', 'tblTempUsageDetail_20' ) end [2025-02-28 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:01:21] Production.INFO: ==22068== Releasing lock... [2025-02-28 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:02:05 [end_date_ymd] => 2025-02-28 07:02:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:02:05' and `end` < '2025-02-28 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-02-28 07:02:17] Production.INFO: count ==207 [2025-02-28 07:02:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:02:05 - End Time 2025-02-28 07:02:05 [2025-02-28 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574788', 'tblTempUsageDetail_20' ) start [2025-02-28 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574788', 'tblTempUsageDetail_20' ) end [2025-02-28 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574788', 'tblTempVendorCDR_20' ) start [2025-02-28 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574788', 'tblTempVendorCDR_20' ) end [2025-02-28 07:02:17] Production.INFO: ProcessCDR(1,14574788,1,1,2) [2025-02-28 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574788', 'tblTempUsageDetail_20' ) start [2025-02-28 07:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574788', 'tblTempUsageDetail_20' ) end [2025-02-28 07:02:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:02:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:02:20] Production.INFO: ==22215== Releasing lock... [2025-02-28 07:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:02:20] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:03:06 [end_date_ymd] => 2025-02-28 07:03:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:03:06' and `end` < '2025-02-28 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-02-28 07:03:18] Production.INFO: count ==207 [2025-02-28 07:03:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:03:06 - End Time 2025-02-28 07:03:06 [2025-02-28 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574793', 'tblTempUsageDetail_20' ) start [2025-02-28 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574793', 'tblTempUsageDetail_20' ) end [2025-02-28 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574793', 'tblTempVendorCDR_20' ) start [2025-02-28 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574793', 'tblTempVendorCDR_20' ) end [2025-02-28 07:03:18] Production.INFO: ProcessCDR(1,14574793,1,1,2) [2025-02-28 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574793', 'tblTempUsageDetail_20' ) start [2025-02-28 07:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574793', 'tblTempUsageDetail_20' ) end [2025-02-28 07:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:03:22] Production.INFO: ==22288== Releasing lock... [2025-02-28 07:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:03:22] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:04:05 [end_date_ymd] => 2025-02-28 07:04:05 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:04:05' and `end` < '2025-02-28 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-02-28 07:04:18] Production.INFO: count ==212 [2025-02-28 07:04:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:04:05 - End Time 2025-02-28 07:04:05 [2025-02-28 07:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574798', 'tblTempUsageDetail_20' ) start [2025-02-28 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574798', 'tblTempUsageDetail_20' ) end [2025-02-28 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574798', 'tblTempVendorCDR_20' ) start [2025-02-28 07:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574798', 'tblTempVendorCDR_20' ) end [2025-02-28 07:04:18] Production.INFO: ProcessCDR(1,14574798,1,1,2) [2025-02-28 07:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574798', 'tblTempUsageDetail_20' ) start [2025-02-28 07:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574798', 'tblTempUsageDetail_20' ) end [2025-02-28 07:04:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:04:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:04:21] Production.INFO: ==22361== Releasing lock... [2025-02-28 07:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:05:06 [end_date_ymd] => 2025-02-28 07:05:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:05:06' and `end` < '2025-02-28 07: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-02-28 07:05:18] Production.INFO: count ==212 [2025-02-28 07:05:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:05:06 - End Time 2025-02-28 07:05:06 [2025-02-28 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574803', 'tblTempUsageDetail_20' ) start [2025-02-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574803', 'tblTempUsageDetail_20' ) end [2025-02-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574803', 'tblTempVendorCDR_20' ) start [2025-02-28 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574803', 'tblTempVendorCDR_20' ) end [2025-02-28 07:05:18] Production.INFO: ProcessCDR(1,14574803,1,1,2) [2025-02-28 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574803', 'tblTempUsageDetail_20' ) start [2025-02-28 07:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574803', 'tblTempUsageDetail_20' ) end [2025-02-28 07:05:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:05:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:05:22] Production.INFO: ==22515== Releasing lock... [2025-02-28 07:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:05:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:06:05 [end_date_ymd] => 2025-02-28 07:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:06:05' and `end` < '2025-02-28 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-02-28 07:06:18] Production.INFO: count ==212 [2025-02-28 07:06:19] Production.ERROR: pbx CDR StartTime 2025-02-28 04:06:05 - End Time 2025-02-28 07:06:05 [2025-02-28 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574808', 'tblTempUsageDetail_20' ) start [2025-02-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574808', 'tblTempUsageDetail_20' ) end [2025-02-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574808', 'tblTempVendorCDR_20' ) start [2025-02-28 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574808', 'tblTempVendorCDR_20' ) end [2025-02-28 07:06:19] Production.INFO: ProcessCDR(1,14574808,1,1,2) [2025-02-28 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574808', 'tblTempUsageDetail_20' ) start [2025-02-28 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574808', 'tblTempUsageDetail_20' ) end [2025-02-28 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:06:22] Production.INFO: ==22587== Releasing lock... [2025-02-28 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:06:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:07:06 [end_date_ymd] => 2025-02-28 07:07:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:07:06' and `end` < '2025-02-28 07: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-02-28 07:07:20] Production.INFO: count ==207 [2025-02-28 07:07:20] Production.ERROR: pbx CDR StartTime 2025-02-28 04:07:06 - End Time 2025-02-28 07:07:06 [2025-02-28 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574813', 'tblTempUsageDetail_20' ) start [2025-02-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574813', 'tblTempUsageDetail_20' ) end [2025-02-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574813', 'tblTempVendorCDR_20' ) start [2025-02-28 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574813', 'tblTempVendorCDR_20' ) end [2025-02-28 07:07:20] Production.INFO: ProcessCDR(1,14574813,1,1,2) [2025-02-28 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574813', 'tblTempUsageDetail_20' ) start [2025-02-28 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574813', 'tblTempUsageDetail_20' ) end [2025-02-28 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:07:23] Production.INFO: ==22671== Releasing lock... [2025-02-28 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:07:23] Production.INFO: 29.5 MB #Memory Used# [2025-02-28 07:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:08:06 [end_date_ymd] => 2025-02-28 07:08:06 [RateCDR] => 1 ) [2025-02-28 07:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:08:06' and `end` < '2025-02-28 07:08:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:08:18] Production.INFO: count ==210 [2025-02-28 07:08:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:08:06 - End Time 2025-02-28 07:08:06 [2025-02-28 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574818', 'tblTempUsageDetail_20' ) start [2025-02-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574818', 'tblTempUsageDetail_20' ) end [2025-02-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574818', 'tblTempVendorCDR_20' ) start [2025-02-28 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574818', 'tblTempVendorCDR_20' ) end [2025-02-28 07:08:18] Production.INFO: ProcessCDR(1,14574818,1,1,2) [2025-02-28 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574818', 'tblTempUsageDetail_20' ) start [2025-02-28 07:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574818', 'tblTempUsageDetail_20' ) end [2025-02-28 07:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:08:24] Production.INFO: ==22814== Releasing lock... [2025-02-28 07:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:08:24] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:09:06 [end_date_ymd] => 2025-02-28 07:09:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:09:06' and `end` < '2025-02-28 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-02-28 07:09:20] Production.INFO: count ==213 [2025-02-28 07:09:20] Production.ERROR: pbx CDR StartTime 2025-02-28 04:09:06 - End Time 2025-02-28 07:09:06 [2025-02-28 07:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574823', 'tblTempUsageDetail_20' ) start [2025-02-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574823', 'tblTempUsageDetail_20' ) end [2025-02-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574823', 'tblTempVendorCDR_20' ) start [2025-02-28 07:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574823', 'tblTempVendorCDR_20' ) end [2025-02-28 07:09:20] Production.INFO: ProcessCDR(1,14574823,1,1,2) [2025-02-28 07:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574823', 'tblTempUsageDetail_20' ) start [2025-02-28 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574823', 'tblTempUsageDetail_20' ) end [2025-02-28 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:09:23] Production.INFO: ==22951== Releasing lock... [2025-02-28 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:09:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:10:05 [end_date_ymd] => 2025-02-28 07:10:05 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:10:05' and `end` < '2025-02-28 07: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-02-28 07:10:18] Production.INFO: count ==211 [2025-02-28 07:10:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:10:05 - End Time 2025-02-28 07:10:05 [2025-02-28 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574829', 'tblTempUsageDetail_20' ) start [2025-02-28 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574829', 'tblTempUsageDetail_20' ) end [2025-02-28 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574829', 'tblTempVendorCDR_20' ) start [2025-02-28 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574829', 'tblTempVendorCDR_20' ) end [2025-02-28 07:10:18] Production.INFO: ProcessCDR(1,14574829,1,1,2) [2025-02-28 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574829', 'tblTempUsageDetail_20' ) start [2025-02-28 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574829', 'tblTempUsageDetail_20' ) end [2025-02-28 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:10:21] Production.INFO: ==23089== Releasing lock... [2025-02-28 07:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:10:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:11:05 [end_date_ymd] => 2025-02-28 07:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:11:05' and `end` < '2025-02-28 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-02-28 07:11:18] Production.INFO: count ==211 [2025-02-28 07:11:19] Production.ERROR: pbx CDR StartTime 2025-02-28 04:11:05 - End Time 2025-02-28 07:11:05 [2025-02-28 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574834', 'tblTempUsageDetail_20' ) start [2025-02-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574834', 'tblTempUsageDetail_20' ) end [2025-02-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574834', 'tblTempVendorCDR_20' ) start [2025-02-28 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574834', 'tblTempVendorCDR_20' ) end [2025-02-28 07:11:19] Production.INFO: ProcessCDR(1,14574834,1,1,2) [2025-02-28 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574834', 'tblTempUsageDetail_20' ) start [2025-02-28 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574834', 'tblTempUsageDetail_20' ) end [2025-02-28 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:11:22] Production.INFO: ==23164== Releasing lock... [2025-02-28 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:11:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:12:05 [end_date_ymd] => 2025-02-28 07:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:12:05' and `end` < '2025-02-28 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-02-28 07:12:17] Production.INFO: count ==212 [2025-02-28 07:12:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:12:05 - End Time 2025-02-28 07:12:05 [2025-02-28 07:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574839', 'tblTempUsageDetail_20' ) start [2025-02-28 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574839', 'tblTempUsageDetail_20' ) end [2025-02-28 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574839', 'tblTempVendorCDR_20' ) start [2025-02-28 07:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574839', 'tblTempVendorCDR_20' ) end [2025-02-28 07:12:17] Production.INFO: ProcessCDR(1,14574839,1,1,2) [2025-02-28 07:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574839', 'tblTempUsageDetail_20' ) start [2025-02-28 07:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574839', 'tblTempUsageDetail_20' ) end [2025-02-28 07:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:12:22] Production.INFO: ==23318== Releasing lock... [2025-02-28 07:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:12:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:13:05 [end_date_ymd] => 2025-02-28 07:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:13:05' and `end` < '2025-02-28 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-02-28 07:13:17] Production.INFO: count ==212 [2025-02-28 07:13:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:13:05 - End Time 2025-02-28 07:13:05 [2025-02-28 07:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574844', 'tblTempUsageDetail_20' ) start [2025-02-28 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574844', 'tblTempUsageDetail_20' ) end [2025-02-28 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574844', 'tblTempVendorCDR_20' ) start [2025-02-28 07:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574844', 'tblTempVendorCDR_20' ) end [2025-02-28 07:13:17] Production.INFO: ProcessCDR(1,14574844,1,1,2) [2025-02-28 07:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574844', 'tblTempUsageDetail_20' ) start [2025-02-28 07:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574844', 'tblTempUsageDetail_20' ) end [2025-02-28 07:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:13:21] Production.INFO: ==23388== Releasing lock... [2025-02-28 07:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:14:05 [end_date_ymd] => 2025-02-28 07:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:14:05' and `end` < '2025-02-28 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-02-28 07:14:18] Production.INFO: count ==212 [2025-02-28 07:14:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:14:05 - End Time 2025-02-28 07:14:05 [2025-02-28 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574849', 'tblTempUsageDetail_20' ) start [2025-02-28 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574849', 'tblTempUsageDetail_20' ) end [2025-02-28 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574849', 'tblTempVendorCDR_20' ) start [2025-02-28 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574849', 'tblTempVendorCDR_20' ) end [2025-02-28 07:14:18] Production.INFO: ProcessCDR(1,14574849,1,1,2) [2025-02-28 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574849', 'tblTempUsageDetail_20' ) start [2025-02-28 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574849', 'tblTempUsageDetail_20' ) end [2025-02-28 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:14:21] Production.INFO: ==23457== Releasing lock... [2025-02-28 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:14:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:15:05 [end_date_ymd] => 2025-02-28 07:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:15:05' and `end` < '2025-02-28 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-02-28 07:15:17] Production.INFO: count ==212 [2025-02-28 07:15:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:15:05 - End Time 2025-02-28 07:15:05 [2025-02-28 07:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574854', 'tblTempUsageDetail_20' ) start [2025-02-28 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574854', 'tblTempUsageDetail_20' ) end [2025-02-28 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574854', 'tblTempVendorCDR_20' ) start [2025-02-28 07:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574854', 'tblTempVendorCDR_20' ) end [2025-02-28 07:15:17] Production.INFO: ProcessCDR(1,14574854,1,1,2) [2025-02-28 07:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574854', 'tblTempUsageDetail_20' ) start [2025-02-28 07:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574854', 'tblTempUsageDetail_20' ) end [2025-02-28 07:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:15:21] Production.INFO: ==23607== Releasing lock... [2025-02-28 07:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:16:05 [end_date_ymd] => 2025-02-28 07:16:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:16:05' and `end` < '2025-02-28 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-02-28 07:16:17] Production.INFO: count ==212 [2025-02-28 07:16:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:16:05 - End Time 2025-02-28 07:16:05 [2025-02-28 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574859', 'tblTempUsageDetail_20' ) start [2025-02-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574859', 'tblTempUsageDetail_20' ) end [2025-02-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574859', 'tblTempVendorCDR_20' ) start [2025-02-28 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574859', 'tblTempVendorCDR_20' ) end [2025-02-28 07:16:17] Production.INFO: ProcessCDR(1,14574859,1,1,2) [2025-02-28 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574859', 'tblTempUsageDetail_20' ) start [2025-02-28 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574859', 'tblTempUsageDetail_20' ) end [2025-02-28 07:16:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:16:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:16:20] Production.INFO: ==23686== Releasing lock... [2025-02-28 07:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:16:20] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:17:06 [end_date_ymd] => 2025-02-28 07:17:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:17:06' and `end` < '2025-02-28 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-02-28 07:17:19] Production.INFO: count ==212 [2025-02-28 07:17:19] Production.ERROR: pbx CDR StartTime 2025-02-28 04:17:06 - End Time 2025-02-28 07:17:06 [2025-02-28 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574864', 'tblTempUsageDetail_20' ) start [2025-02-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574864', 'tblTempUsageDetail_20' ) end [2025-02-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574864', 'tblTempVendorCDR_20' ) start [2025-02-28 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574864', 'tblTempVendorCDR_20' ) end [2025-02-28 07:17:19] Production.INFO: ProcessCDR(1,14574864,1,1,2) [2025-02-28 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574864', 'tblTempUsageDetail_20' ) start [2025-02-28 07:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574864', 'tblTempUsageDetail_20' ) end [2025-02-28 07:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:17:23] Production.INFO: ==23761== Releasing lock... [2025-02-28 07:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:17:23] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:18:05 [end_date_ymd] => 2025-02-28 07:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:18:05' and `end` < '2025-02-28 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-02-28 07:18:17] Production.INFO: count ==212 [2025-02-28 07:18:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:18:05 - End Time 2025-02-28 07:18:05 [2025-02-28 07:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574869', 'tblTempUsageDetail_20' ) start [2025-02-28 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574869', 'tblTempUsageDetail_20' ) end [2025-02-28 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574869', 'tblTempVendorCDR_20' ) start [2025-02-28 07:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574869', 'tblTempVendorCDR_20' ) end [2025-02-28 07:18:17] Production.INFO: ProcessCDR(1,14574869,1,1,2) [2025-02-28 07:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574869', 'tblTempUsageDetail_20' ) start [2025-02-28 07:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574869', 'tblTempUsageDetail_20' ) end [2025-02-28 07:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:18:21] Production.INFO: ==23832== Releasing lock... [2025-02-28 07:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:18:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:19:05 [end_date_ymd] => 2025-02-28 07:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:19:05' and `end` < '2025-02-28 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-02-28 07:19:17] Production.INFO: count ==217 [2025-02-28 07:19:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:19:05 - End Time 2025-02-28 07:19:05 [2025-02-28 07:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574874', 'tblTempUsageDetail_20' ) start [2025-02-28 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574874', 'tblTempUsageDetail_20' ) end [2025-02-28 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574874', 'tblTempVendorCDR_20' ) start [2025-02-28 07:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574874', 'tblTempVendorCDR_20' ) end [2025-02-28 07:19:17] Production.INFO: ProcessCDR(1,14574874,1,1,2) [2025-02-28 07:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574874', 'tblTempUsageDetail_20' ) start [2025-02-28 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574874', 'tblTempUsageDetail_20' ) end [2025-02-28 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:19:21] Production.INFO: ==23904== Releasing lock... [2025-02-28 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:19:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:20:06 [end_date_ymd] => 2025-02-28 07:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:20:06' and `end` < '2025-02-28 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-02-28 07:20:18] Production.INFO: count ==221 [2025-02-28 07:20:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:20:06 - End Time 2025-02-28 07:20:06 [2025-02-28 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574880', 'tblTempUsageDetail_20' ) start [2025-02-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574880', 'tblTempUsageDetail_20' ) end [2025-02-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574880', 'tblTempVendorCDR_20' ) start [2025-02-28 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574880', 'tblTempVendorCDR_20' ) end [2025-02-28 07:20:18] Production.INFO: ProcessCDR(1,14574880,1,1,2) [2025-02-28 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574880', 'tblTempUsageDetail_20' ) start [2025-02-28 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574880', 'tblTempUsageDetail_20' ) end [2025-02-28 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:20:22] Production.INFO: ==23977== Releasing lock... [2025-02-28 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:20:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:21:06 [end_date_ymd] => 2025-02-28 07:21:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:21:06' and `end` < '2025-02-28 07: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-02-28 07:21:18] Production.INFO: count ==235 [2025-02-28 07:21:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:21:06 - End Time 2025-02-28 07:21:06 [2025-02-28 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574885', 'tblTempUsageDetail_20' ) start [2025-02-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574885', 'tblTempUsageDetail_20' ) end [2025-02-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574885', 'tblTempVendorCDR_20' ) start [2025-02-28 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574885', 'tblTempVendorCDR_20' ) end [2025-02-28 07:21:18] Production.INFO: ProcessCDR(1,14574885,1,1,2) [2025-02-28 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574885', 'tblTempUsageDetail_20' ) start [2025-02-28 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574885', 'tblTempUsageDetail_20' ) end [2025-02-28 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:21:21] Production.INFO: ==24060== Releasing lock... [2025-02-28 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:21:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:22:05 [end_date_ymd] => 2025-02-28 07:22:05 [RateCDR] => 1 ) [2025-02-28 07:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:22:05' and `end` < '2025-02-28 07:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:22:18] Production.INFO: count ==235 [2025-02-28 07:22:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:22:05 - End Time 2025-02-28 07:22:05 [2025-02-28 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574890', 'tblTempUsageDetail_20' ) start [2025-02-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574890', 'tblTempUsageDetail_20' ) end [2025-02-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574890', 'tblTempVendorCDR_20' ) start [2025-02-28 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574890', 'tblTempVendorCDR_20' ) end [2025-02-28 07:22:18] Production.INFO: ProcessCDR(1,14574890,1,1,2) [2025-02-28 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574890', 'tblTempUsageDetail_20' ) start [2025-02-28 07:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574890', 'tblTempUsageDetail_20' ) end [2025-02-28 07:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:22:22] Production.INFO: ==24132== Releasing lock... [2025-02-28 07:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:22:22] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:23:06 [end_date_ymd] => 2025-02-28 07:23:06 [RateCDR] => 1 ) [2025-02-28 07:23:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:23:06' and `end` < '2025-02-28 07:23:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:23:18] Production.INFO: count ==235 [2025-02-28 07:23:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:23:06 - End Time 2025-02-28 07:23:06 [2025-02-28 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574895', 'tblTempUsageDetail_20' ) start [2025-02-28 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574895', 'tblTempUsageDetail_20' ) end [2025-02-28 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574895', 'tblTempVendorCDR_20' ) start [2025-02-28 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574895', 'tblTempVendorCDR_20' ) end [2025-02-28 07:23:18] Production.INFO: ProcessCDR(1,14574895,1,1,2) [2025-02-28 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574895', 'tblTempUsageDetail_20' ) start [2025-02-28 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574895', 'tblTempUsageDetail_20' ) end [2025-02-28 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:23:21] Production.INFO: ==24203== Releasing lock... [2025-02-28 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:23:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:24:05 [end_date_ymd] => 2025-02-28 07:24:05 [RateCDR] => 1 ) [2025-02-28 07:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:24:05' and `end` < '2025-02-28 07:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:24:17] Production.INFO: count ==235 [2025-02-28 07:24:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:24:05 - End Time 2025-02-28 07:24:05 [2025-02-28 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574900', 'tblTempUsageDetail_20' ) start [2025-02-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574900', 'tblTempUsageDetail_20' ) end [2025-02-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574900', 'tblTempVendorCDR_20' ) start [2025-02-28 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574900', 'tblTempVendorCDR_20' ) end [2025-02-28 07:24:17] Production.INFO: ProcessCDR(1,14574900,1,1,2) [2025-02-28 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574900', 'tblTempUsageDetail_20' ) start [2025-02-28 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574900', 'tblTempUsageDetail_20' ) end [2025-02-28 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:24:21] Production.INFO: ==24275== Releasing lock... [2025-02-28 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-02-28 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:25:06 [end_date_ymd] => 2025-02-28 07:25:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:25:06' and `end` < '2025-02-28 07: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-02-28 07:25:18] Production.INFO: count ==240 [2025-02-28 07:25:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:25:06 - End Time 2025-02-28 07:25:06 [2025-02-28 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574905', 'tblTempUsageDetail_20' ) start [2025-02-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574905', 'tblTempUsageDetail_20' ) end [2025-02-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574905', 'tblTempVendorCDR_20' ) start [2025-02-28 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574905', 'tblTempVendorCDR_20' ) end [2025-02-28 07:25:18] Production.INFO: ProcessCDR(1,14574905,1,1,2) [2025-02-28 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574905', 'tblTempUsageDetail_20' ) start [2025-02-28 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574905', 'tblTempUsageDetail_20' ) end [2025-02-28 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:25:22] Production.INFO: ==24389== Releasing lock... [2025-02-28 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:26:05 [end_date_ymd] => 2025-02-28 07:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:26:05' and `end` < '2025-02-28 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-02-28 07:26:17] Production.INFO: count ==240 [2025-02-28 07:26:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:26:05 - End Time 2025-02-28 07:26:05 [2025-02-28 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574910', 'tblTempUsageDetail_20' ) start [2025-02-28 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574910', 'tblTempUsageDetail_20' ) end [2025-02-28 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574910', 'tblTempVendorCDR_20' ) start [2025-02-28 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574910', 'tblTempVendorCDR_20' ) end [2025-02-28 07:26:17] Production.INFO: ProcessCDR(1,14574910,1,1,2) [2025-02-28 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574910', 'tblTempUsageDetail_20' ) start [2025-02-28 07:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574910', 'tblTempUsageDetail_20' ) end [2025-02-28 07:26:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:26:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:26:20] Production.INFO: ==24460== Releasing lock... [2025-02-28 07:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:26:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:27:06 [end_date_ymd] => 2025-02-28 07:27:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:27:06' and `end` < '2025-02-28 07: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-02-28 07:27:18] Production.INFO: count ==240 [2025-02-28 07:27:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:27:06 - End Time 2025-02-28 07:27:06 [2025-02-28 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574915', 'tblTempUsageDetail_20' ) start [2025-02-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574915', 'tblTempUsageDetail_20' ) end [2025-02-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574915', 'tblTempVendorCDR_20' ) start [2025-02-28 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574915', 'tblTempVendorCDR_20' ) end [2025-02-28 07:27:18] Production.INFO: ProcessCDR(1,14574915,1,1,2) [2025-02-28 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574915', 'tblTempUsageDetail_20' ) start [2025-02-28 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574915', 'tblTempUsageDetail_20' ) end [2025-02-28 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:27:22] Production.INFO: ==24534== Releasing lock... [2025-02-28 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:27:22] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:28:06 [end_date_ymd] => 2025-02-28 07:28:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:28:06' and `end` < '2025-02-28 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-02-28 07:28:17] Production.INFO: count ==240 [2025-02-28 07:28:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:28:06 - End Time 2025-02-28 07:28:06 [2025-02-28 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574920', 'tblTempUsageDetail_20' ) start [2025-02-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574920', 'tblTempUsageDetail_20' ) end [2025-02-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574920', 'tblTempVendorCDR_20' ) start [2025-02-28 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574920', 'tblTempVendorCDR_20' ) end [2025-02-28 07:28:18] Production.INFO: ProcessCDR(1,14574920,1,1,2) [2025-02-28 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574920', 'tblTempUsageDetail_20' ) start [2025-02-28 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574920', 'tblTempUsageDetail_20' ) end [2025-02-28 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:28:21] Production.INFO: ==24605== Releasing lock... [2025-02-28 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:28:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:29:06 [end_date_ymd] => 2025-02-28 07:29:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:29:06' and `end` < '2025-02-28 07: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-02-28 07:29:18] Production.INFO: count ==240 [2025-02-28 07:29:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:29:06 - End Time 2025-02-28 07:29:06 [2025-02-28 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574925', 'tblTempUsageDetail_20' ) start [2025-02-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574925', 'tblTempUsageDetail_20' ) end [2025-02-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574925', 'tblTempVendorCDR_20' ) start [2025-02-28 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574925', 'tblTempVendorCDR_20' ) end [2025-02-28 07:29:18] Production.INFO: ProcessCDR(1,14574925,1,1,2) [2025-02-28 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574925', 'tblTempUsageDetail_20' ) start [2025-02-28 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574925', 'tblTempUsageDetail_20' ) end [2025-02-28 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:29:21] Production.INFO: ==24679== Releasing lock... [2025-02-28 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:30:06 [end_date_ymd] => 2025-02-28 07:30:06 [RateCDR] => 1 ) [2025-02-28 07:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:30:06' and `end` < '2025-02-28 07:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:30:18] Production.INFO: count ==237 [2025-02-28 07:30:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:30:06 - End Time 2025-02-28 07:30:06 [2025-02-28 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574931', 'tblTempUsageDetail_20' ) start [2025-02-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574931', 'tblTempUsageDetail_20' ) end [2025-02-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574931', 'tblTempVendorCDR_20' ) start [2025-02-28 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574931', 'tblTempVendorCDR_20' ) end [2025-02-28 07:30:18] Production.INFO: ProcessCDR(1,14574931,1,1,2) [2025-02-28 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574931', 'tblTempUsageDetail_20' ) start [2025-02-28 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574931', 'tblTempUsageDetail_20' ) end [2025-02-28 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:30:22] Production.INFO: ==24755== Releasing lock... [2025-02-28 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:30:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:31:06 [end_date_ymd] => 2025-02-28 07:31:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:31:06' and `end` < '2025-02-28 07: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-02-28 07:31:18] Production.INFO: count ==237 [2025-02-28 07:31:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:31:06 - End Time 2025-02-28 07:31:06 [2025-02-28 07:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574936', 'tblTempUsageDetail_20' ) start [2025-02-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574936', 'tblTempUsageDetail_20' ) end [2025-02-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574936', 'tblTempVendorCDR_20' ) start [2025-02-28 07:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574936', 'tblTempVendorCDR_20' ) end [2025-02-28 07:31:18] Production.INFO: ProcessCDR(1,14574936,1,1,2) [2025-02-28 07:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574936', 'tblTempUsageDetail_20' ) start [2025-02-28 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574936', 'tblTempUsageDetail_20' ) end [2025-02-28 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:31:22] Production.INFO: ==24834== Releasing lock... [2025-02-28 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:31:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:32:06 [end_date_ymd] => 2025-02-28 07:32:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:32:06' and `end` < '2025-02-28 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-02-28 07:32:18] Production.INFO: count ==237 [2025-02-28 07:32:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:32:06 - End Time 2025-02-28 07:32:06 [2025-02-28 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574941', 'tblTempUsageDetail_20' ) start [2025-02-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574941', 'tblTempUsageDetail_20' ) end [2025-02-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574941', 'tblTempVendorCDR_20' ) start [2025-02-28 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574941', 'tblTempVendorCDR_20' ) end [2025-02-28 07:32:18] Production.INFO: ProcessCDR(1,14574941,1,1,2) [2025-02-28 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574941', 'tblTempUsageDetail_20' ) start [2025-02-28 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574941', 'tblTempUsageDetail_20' ) end [2025-02-28 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:32:21] Production.INFO: ==24907== Releasing lock... [2025-02-28 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:32:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:33:06 [end_date_ymd] => 2025-02-28 07:33:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:33:06' and `end` < '2025-02-28 07: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-02-28 07:33:18] Production.INFO: count ==237 [2025-02-28 07:33:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:33:06 - End Time 2025-02-28 07:33:06 [2025-02-28 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574946', 'tblTempUsageDetail_20' ) start [2025-02-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574946', 'tblTempUsageDetail_20' ) end [2025-02-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574946', 'tblTempVendorCDR_20' ) start [2025-02-28 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574946', 'tblTempVendorCDR_20' ) end [2025-02-28 07:33:18] Production.INFO: ProcessCDR(1,14574946,1,1,2) [2025-02-28 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574946', 'tblTempUsageDetail_20' ) start [2025-02-28 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574946', 'tblTempUsageDetail_20' ) end [2025-02-28 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:33:22] Production.INFO: ==24978== Releasing lock... [2025-02-28 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:33:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:34:05 [end_date_ymd] => 2025-02-28 07:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:34:05' and `end` < '2025-02-28 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-02-28 07:34:17] Production.INFO: count ==237 [2025-02-28 07:34:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:34:05 - End Time 2025-02-28 07:34:05 [2025-02-28 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574951', 'tblTempUsageDetail_20' ) start [2025-02-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574951', 'tblTempUsageDetail_20' ) end [2025-02-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574951', 'tblTempVendorCDR_20' ) start [2025-02-28 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574951', 'tblTempVendorCDR_20' ) end [2025-02-28 07:34:17] Production.INFO: ProcessCDR(1,14574951,1,1,2) [2025-02-28 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574951', 'tblTempUsageDetail_20' ) start [2025-02-28 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574951', 'tblTempUsageDetail_20' ) end [2025-02-28 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:34:21] Production.INFO: ==25055== Releasing lock... [2025-02-28 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:34:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:35:06 [end_date_ymd] => 2025-02-28 07:35:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:35:06' and `end` < '2025-02-28 07: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-02-28 07:35:18] Production.INFO: count ==237 [2025-02-28 07:35:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:35:06 - End Time 2025-02-28 07:35:06 [2025-02-28 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574956', 'tblTempUsageDetail_20' ) start [2025-02-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574956', 'tblTempUsageDetail_20' ) end [2025-02-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574956', 'tblTempVendorCDR_20' ) start [2025-02-28 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574956', 'tblTempVendorCDR_20' ) end [2025-02-28 07:35:18] Production.INFO: ProcessCDR(1,14574956,1,1,2) [2025-02-28 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574956', 'tblTempUsageDetail_20' ) start [2025-02-28 07:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574956', 'tblTempUsageDetail_20' ) end [2025-02-28 07:35:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:35:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:35:22] Production.INFO: ==25127== Releasing lock... [2025-02-28 07:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:35:22] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:36:05 [end_date_ymd] => 2025-02-28 07:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:36:05' and `end` < '2025-02-28 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-02-28 07:36:17] Production.INFO: count ==237 [2025-02-28 07:36:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:36:05 - End Time 2025-02-28 07:36:05 [2025-02-28 07:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574961', 'tblTempUsageDetail_20' ) start [2025-02-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574961', 'tblTempUsageDetail_20' ) end [2025-02-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574961', 'tblTempVendorCDR_20' ) start [2025-02-28 07:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574961', 'tblTempVendorCDR_20' ) end [2025-02-28 07:36:17] Production.INFO: ProcessCDR(1,14574961,1,1,2) [2025-02-28 07:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574961', 'tblTempUsageDetail_20' ) start [2025-02-28 07:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574961', 'tblTempUsageDetail_20' ) end [2025-02-28 07:36:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:36:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:36:20] Production.INFO: ==25199== Releasing lock... [2025-02-28 07:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:36:20] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:37:05 [end_date_ymd] => 2025-02-28 07:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:37:05' and `end` < '2025-02-28 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-02-28 07:37:17] Production.INFO: count ==238 [2025-02-28 07:37:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:37:05 - End Time 2025-02-28 07:37:05 [2025-02-28 07:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574966', 'tblTempUsageDetail_20' ) start [2025-02-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574966', 'tblTempUsageDetail_20' ) end [2025-02-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574966', 'tblTempVendorCDR_20' ) start [2025-02-28 07:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574966', 'tblTempVendorCDR_20' ) end [2025-02-28 07:37:17] Production.INFO: ProcessCDR(1,14574966,1,1,2) [2025-02-28 07:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574966', 'tblTempUsageDetail_20' ) start [2025-02-28 07:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574966', 'tblTempUsageDetail_20' ) end [2025-02-28 07:37:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:37:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:37:21] Production.INFO: ==25272== Releasing lock... [2025-02-28 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:38:05 [end_date_ymd] => 2025-02-28 07:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:38:05' and `end` < '2025-02-28 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-02-28 07:38:16] Production.INFO: count ==243 [2025-02-28 07:38:16] Production.ERROR: pbx CDR StartTime 2025-02-28 04:38:05 - End Time 2025-02-28 07:38:05 [2025-02-28 07:38:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574971', 'tblTempUsageDetail_20' ) start [2025-02-28 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574971', 'tblTempUsageDetail_20' ) end [2025-02-28 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574971', 'tblTempVendorCDR_20' ) start [2025-02-28 07:38:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574971', 'tblTempVendorCDR_20' ) end [2025-02-28 07:38:16] Production.INFO: ProcessCDR(1,14574971,1,1,2) [2025-02-28 07:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:38:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:38:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574971', 'tblTempUsageDetail_20' ) start [2025-02-28 07:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574971', 'tblTempUsageDetail_20' ) end [2025-02-28 07:38:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:38:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:38:20] Production.INFO: ==25346== Releasing lock... [2025-02-28 07:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:38:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:39:06 [end_date_ymd] => 2025-02-28 07:39:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:39:06' and `end` < '2025-02-28 07: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-02-28 07:39:18] Production.INFO: count ==243 [2025-02-28 07:39:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:39:06 - End Time 2025-02-28 07:39:06 [2025-02-28 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574976', 'tblTempUsageDetail_20' ) start [2025-02-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574976', 'tblTempUsageDetail_20' ) end [2025-02-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574976', 'tblTempVendorCDR_20' ) start [2025-02-28 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574976', 'tblTempVendorCDR_20' ) end [2025-02-28 07:39:18] Production.INFO: ProcessCDR(1,14574976,1,1,2) [2025-02-28 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574976', 'tblTempUsageDetail_20' ) start [2025-02-28 07:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574976', 'tblTempUsageDetail_20' ) end [2025-02-28 07:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:39:21] Production.INFO: ==25418== Releasing lock... [2025-02-28 07:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:40:06 [end_date_ymd] => 2025-02-28 07:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:40:06' and `end` < '2025-02-28 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-02-28 07:40:18] Production.INFO: count ==251 [2025-02-28 07:40:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:40:06 - End Time 2025-02-28 07:40:06 [2025-02-28 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574982', 'tblTempUsageDetail_20' ) start [2025-02-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574982', 'tblTempUsageDetail_20' ) end [2025-02-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574982', 'tblTempVendorCDR_20' ) start [2025-02-28 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574982', 'tblTempVendorCDR_20' ) end [2025-02-28 07:40:18] Production.INFO: ProcessCDR(1,14574982,1,1,2) [2025-02-28 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574982', 'tblTempUsageDetail_20' ) start [2025-02-28 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574982', 'tblTempUsageDetail_20' ) end [2025-02-28 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:40:21] Production.INFO: ==25491== Releasing lock... [2025-02-28 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:40:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:41:05 [end_date_ymd] => 2025-02-28 07:41:05 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:41:05' and `end` < '2025-02-28 07: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-02-28 07:41:17] Production.INFO: count ==254 [2025-02-28 07:41:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:41:05 - End Time 2025-02-28 07:41:05 [2025-02-28 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574987', 'tblTempUsageDetail_20' ) start [2025-02-28 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574987', 'tblTempUsageDetail_20' ) end [2025-02-28 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574987', 'tblTempVendorCDR_20' ) start [2025-02-28 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574987', 'tblTempVendorCDR_20' ) end [2025-02-28 07:41:17] Production.INFO: ProcessCDR(1,14574987,1,1,2) [2025-02-28 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574987', 'tblTempUsageDetail_20' ) start [2025-02-28 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574987', 'tblTempUsageDetail_20' ) end [2025-02-28 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:41:20] Production.INFO: ==25606== Releasing lock... [2025-02-28 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:41:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:42:05 [end_date_ymd] => 2025-02-28 07:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:42:05' and `end` < '2025-02-28 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-02-28 07:42:17] Production.INFO: count ==262 [2025-02-28 07:42:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:42:05 - End Time 2025-02-28 07:42:05 [2025-02-28 07:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574992', 'tblTempUsageDetail_20' ) start [2025-02-28 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574992', 'tblTempUsageDetail_20' ) end [2025-02-28 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574992', 'tblTempVendorCDR_20' ) start [2025-02-28 07:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574992', 'tblTempVendorCDR_20' ) end [2025-02-28 07:42:17] Production.INFO: ProcessCDR(1,14574992,1,1,2) [2025-02-28 07:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574992', 'tblTempUsageDetail_20' ) start [2025-02-28 07:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574992', 'tblTempUsageDetail_20' ) end [2025-02-28 07:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:42:20] Production.INFO: ==25678== Releasing lock... [2025-02-28 07:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:42:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:43:05 [end_date_ymd] => 2025-02-28 07:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:43:05' and `end` < '2025-02-28 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-02-28 07:43:17] Production.INFO: count ==262 [2025-02-28 07:43:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:43:05 - End Time 2025-02-28 07:43:05 [2025-02-28 07:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574997', 'tblTempUsageDetail_20' ) start [2025-02-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14574997', 'tblTempUsageDetail_20' ) end [2025-02-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574997', 'tblTempVendorCDR_20' ) start [2025-02-28 07:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14574997', 'tblTempVendorCDR_20' ) end [2025-02-28 07:43:17] Production.INFO: ProcessCDR(1,14574997,1,1,2) [2025-02-28 07:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14574997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14574997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14574997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14574997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574997', 'tblTempUsageDetail_20' ) start [2025-02-28 07:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14574997', 'tblTempUsageDetail_20' ) end [2025-02-28 07:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:43:20] Production.INFO: ==25748== Releasing lock... [2025-02-28 07:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:43:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:44:05 [end_date_ymd] => 2025-02-28 07:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:44:05' and `end` < '2025-02-28 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-02-28 07:44:17] Production.INFO: count ==263 [2025-02-28 07:44:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:44:05 - End Time 2025-02-28 07:44:05 [2025-02-28 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575002', 'tblTempUsageDetail_20' ) start [2025-02-28 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575002', 'tblTempUsageDetail_20' ) end [2025-02-28 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575002', 'tblTempVendorCDR_20' ) start [2025-02-28 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575002', 'tblTempVendorCDR_20' ) end [2025-02-28 07:44:17] Production.INFO: ProcessCDR(1,14575002,1,1,2) [2025-02-28 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575002', 'tblTempUsageDetail_20' ) start [2025-02-28 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575002', 'tblTempUsageDetail_20' ) end [2025-02-28 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:44:21] Production.INFO: ==25824== Releasing lock... [2025-02-28 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:44:21] Production.INFO: 30 MB #Memory Used# [2025-02-28 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:45:05 [end_date_ymd] => 2025-02-28 07:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:45:05' and `end` < '2025-02-28 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-02-28 07:45:17] Production.INFO: count ==264 [2025-02-28 07:45:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:45:05 - End Time 2025-02-28 07:45:05 [2025-02-28 07:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575007', 'tblTempUsageDetail_20' ) start [2025-02-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575007', 'tblTempUsageDetail_20' ) end [2025-02-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575007', 'tblTempVendorCDR_20' ) start [2025-02-28 07:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575007', 'tblTempVendorCDR_20' ) end [2025-02-28 07:45:17] Production.INFO: ProcessCDR(1,14575007,1,1,2) [2025-02-28 07:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575007', 'tblTempUsageDetail_20' ) start [2025-02-28 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575007', 'tblTempUsageDetail_20' ) end [2025-02-28 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:45:21] Production.INFO: ==25896== Releasing lock... [2025-02-28 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:46:05 [end_date_ymd] => 2025-02-28 07:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:46:05' and `end` < '2025-02-28 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-02-28 07:46:17] Production.INFO: count ==267 [2025-02-28 07:46:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:46:05 - End Time 2025-02-28 07:46:05 [2025-02-28 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575012', 'tblTempUsageDetail_20' ) start [2025-02-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575012', 'tblTempUsageDetail_20' ) end [2025-02-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575012', 'tblTempVendorCDR_20' ) start [2025-02-28 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575012', 'tblTempVendorCDR_20' ) end [2025-02-28 07:46:17] Production.INFO: ProcessCDR(1,14575012,1,1,2) [2025-02-28 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575012', 'tblTempUsageDetail_20' ) start [2025-02-28 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575012', 'tblTempUsageDetail_20' ) end [2025-02-28 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:46:20] Production.INFO: ==25969== Releasing lock... [2025-02-28 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:46:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:47:05 [end_date_ymd] => 2025-02-28 07:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:47:05' and `end` < '2025-02-28 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-02-28 07:47:17] Production.INFO: count ==268 [2025-02-28 07:47:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:47:05 - End Time 2025-02-28 07:47:05 [2025-02-28 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575017', 'tblTempUsageDetail_20' ) start [2025-02-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575017', 'tblTempUsageDetail_20' ) end [2025-02-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575017', 'tblTempVendorCDR_20' ) start [2025-02-28 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575017', 'tblTempVendorCDR_20' ) end [2025-02-28 07:47:17] Production.INFO: ProcessCDR(1,14575017,1,1,2) [2025-02-28 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575017', 'tblTempUsageDetail_20' ) start [2025-02-28 07:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575017', 'tblTempUsageDetail_20' ) end [2025-02-28 07:47:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:47:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:47:20] Production.INFO: ==26043== Releasing lock... [2025-02-28 07:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:47:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:48:05 [end_date_ymd] => 2025-02-28 07:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:48:05' and `end` < '2025-02-28 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-02-28 07:48:17] Production.INFO: count ==269 [2025-02-28 07:48:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:48:05 - End Time 2025-02-28 07:48:05 [2025-02-28 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575022', 'tblTempUsageDetail_20' ) start [2025-02-28 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575022', 'tblTempUsageDetail_20' ) end [2025-02-28 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575022', 'tblTempVendorCDR_20' ) start [2025-02-28 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575022', 'tblTempVendorCDR_20' ) end [2025-02-28 07:48:17] Production.INFO: ProcessCDR(1,14575022,1,1,2) [2025-02-28 07:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575022', 'tblTempUsageDetail_20' ) start [2025-02-28 07:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575022', 'tblTempUsageDetail_20' ) end [2025-02-28 07:48:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:48:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:48:20] Production.INFO: ==26117== Releasing lock... [2025-02-28 07:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:48:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:49:05 [end_date_ymd] => 2025-02-28 07:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:49:05' and `end` < '2025-02-28 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-02-28 07:49:17] Production.INFO: count ==274 [2025-02-28 07:49:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:49:05 - End Time 2025-02-28 07:49:05 [2025-02-28 07:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575027', 'tblTempUsageDetail_20' ) start [2025-02-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575027', 'tblTempUsageDetail_20' ) end [2025-02-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575027', 'tblTempVendorCDR_20' ) start [2025-02-28 07:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575027', 'tblTempVendorCDR_20' ) end [2025-02-28 07:49:17] Production.INFO: ProcessCDR(1,14575027,1,1,2) [2025-02-28 07:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575027', 'tblTempUsageDetail_20' ) start [2025-02-28 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575027', 'tblTempUsageDetail_20' ) end [2025-02-28 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:49:21] Production.INFO: ==26191== Releasing lock... [2025-02-28 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:50:06 [end_date_ymd] => 2025-02-28 07:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:50:06' and `end` < '2025-02-28 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-02-28 07:50:17] Production.INFO: count ==274 [2025-02-28 07:50:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:50:06 - End Time 2025-02-28 07:50:06 [2025-02-28 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575033', 'tblTempUsageDetail_20' ) start [2025-02-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575033', 'tblTempUsageDetail_20' ) end [2025-02-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575033', 'tblTempVendorCDR_20' ) start [2025-02-28 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575033', 'tblTempVendorCDR_20' ) end [2025-02-28 07:50:18] Production.INFO: ProcessCDR(1,14575033,1,1,2) [2025-02-28 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575033', 'tblTempUsageDetail_20' ) start [2025-02-28 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575033', 'tblTempUsageDetail_20' ) end [2025-02-28 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:50:21] Production.INFO: ==26263== Releasing lock... [2025-02-28 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:50:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:51:05 [end_date_ymd] => 2025-02-28 07:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:51:05' and `end` < '2025-02-28 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-02-28 07:51:17] Production.INFO: count ==274 [2025-02-28 07:51:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:51:05 - End Time 2025-02-28 07:51:05 [2025-02-28 07:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575038', 'tblTempUsageDetail_20' ) start [2025-02-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575038', 'tblTempUsageDetail_20' ) end [2025-02-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575038', 'tblTempVendorCDR_20' ) start [2025-02-28 07:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575038', 'tblTempVendorCDR_20' ) end [2025-02-28 07:51:17] Production.INFO: ProcessCDR(1,14575038,1,1,2) [2025-02-28 07:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575038', 'tblTempUsageDetail_20' ) start [2025-02-28 07:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575038', 'tblTempUsageDetail_20' ) end [2025-02-28 07:51:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:51:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:51:20] Production.INFO: ==26343== Releasing lock... [2025-02-28 07:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:51:20] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:52:06 [end_date_ymd] => 2025-02-28 07:52:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:52:06' and `end` < '2025-02-28 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-02-28 07:52:17] Production.INFO: count ==274 [2025-02-28 07:52:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:52:06 - End Time 2025-02-28 07:52:06 [2025-02-28 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575043', 'tblTempUsageDetail_20' ) start [2025-02-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575043', 'tblTempUsageDetail_20' ) end [2025-02-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575043', 'tblTempVendorCDR_20' ) start [2025-02-28 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575043', 'tblTempVendorCDR_20' ) end [2025-02-28 07:52:18] Production.INFO: ProcessCDR(1,14575043,1,1,2) [2025-02-28 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575043', 'tblTempUsageDetail_20' ) start [2025-02-28 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575043', 'tblTempUsageDetail_20' ) end [2025-02-28 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:52:21] Production.INFO: ==26417== Releasing lock... [2025-02-28 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:52:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:53:05 [end_date_ymd] => 2025-02-28 07:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:53:05' and `end` < '2025-02-28 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-02-28 07:53:17] Production.INFO: count ==269 [2025-02-28 07:53:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:53:05 - End Time 2025-02-28 07:53:05 [2025-02-28 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575048', 'tblTempUsageDetail_20' ) start [2025-02-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575048', 'tblTempUsageDetail_20' ) end [2025-02-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575048', 'tblTempVendorCDR_20' ) start [2025-02-28 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575048', 'tblTempVendorCDR_20' ) end [2025-02-28 07:53:17] Production.INFO: ProcessCDR(1,14575048,1,1,2) [2025-02-28 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575048', 'tblTempUsageDetail_20' ) start [2025-02-28 07:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575048', 'tblTempUsageDetail_20' ) end [2025-02-28 07:53:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:53:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:53:20] Production.INFO: ==26488== Releasing lock... [2025-02-28 07:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:53:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:54:05 [end_date_ymd] => 2025-02-28 07:54:05 [RateCDR] => 1 ) [2025-02-28 07:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:54:05' and `end` < '2025-02-28 07:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:54:17] Production.INFO: count ==275 [2025-02-28 07:54:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:54:05 - End Time 2025-02-28 07:54:05 [2025-02-28 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575053', 'tblTempUsageDetail_20' ) start [2025-02-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575053', 'tblTempUsageDetail_20' ) end [2025-02-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575053', 'tblTempVendorCDR_20' ) start [2025-02-28 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575053', 'tblTempVendorCDR_20' ) end [2025-02-28 07:54:17] Production.INFO: ProcessCDR(1,14575053,1,1,2) [2025-02-28 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575053', 'tblTempUsageDetail_20' ) start [2025-02-28 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575053', 'tblTempUsageDetail_20' ) end [2025-02-28 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:54:21] Production.INFO: ==26562== Releasing lock... [2025-02-28 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:54:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:55:05 [end_date_ymd] => 2025-02-28 07:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:55:05' and `end` < '2025-02-28 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-02-28 07:55:17] Production.INFO: count ==282 [2025-02-28 07:55:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:55:05 - End Time 2025-02-28 07:55:05 [2025-02-28 07:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575058', 'tblTempUsageDetail_20' ) start [2025-02-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575058', 'tblTempUsageDetail_20' ) end [2025-02-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575058', 'tblTempVendorCDR_20' ) start [2025-02-28 07:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575058', 'tblTempVendorCDR_20' ) end [2025-02-28 07:55:17] Production.INFO: ProcessCDR(1,14575058,1,1,2) [2025-02-28 07:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575058', 'tblTempUsageDetail_20' ) start [2025-02-28 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575058', 'tblTempUsageDetail_20' ) end [2025-02-28 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:55:21] Production.INFO: ==26633== Releasing lock... [2025-02-28 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-02-28 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:56:05 [end_date_ymd] => 2025-02-28 07:56:05 [RateCDR] => 1 ) [2025-02-28 07:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 04:56:05' and `end` < '2025-02-28 07:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 07:56:17] Production.INFO: count ==285 [2025-02-28 07:56:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:56:05 - End Time 2025-02-28 07:56:05 [2025-02-28 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575063', 'tblTempUsageDetail_20' ) start [2025-02-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575063', 'tblTempUsageDetail_20' ) end [2025-02-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575063', 'tblTempVendorCDR_20' ) start [2025-02-28 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575063', 'tblTempVendorCDR_20' ) end [2025-02-28 07:56:17] Production.INFO: ProcessCDR(1,14575063,1,1,2) [2025-02-28 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575063', 'tblTempUsageDetail_20' ) start [2025-02-28 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575063', 'tblTempUsageDetail_20' ) end [2025-02-28 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:56:21] Production.INFO: ==26767== Releasing lock... [2025-02-28 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:56:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:57:05 [end_date_ymd] => 2025-02-28 07:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:57:05' and `end` < '2025-02-28 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-02-28 07:57:17] Production.INFO: count ==292 [2025-02-28 07:57:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:57:05 - End Time 2025-02-28 07:57:05 [2025-02-28 07:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575068', 'tblTempUsageDetail_20' ) start [2025-02-28 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575068', 'tblTempUsageDetail_20' ) end [2025-02-28 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575068', 'tblTempVendorCDR_20' ) start [2025-02-28 07:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575068', 'tblTempVendorCDR_20' ) end [2025-02-28 07:57:17] Production.INFO: ProcessCDR(1,14575068,1,1,2) [2025-02-28 07:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575068', 'tblTempUsageDetail_20' ) start [2025-02-28 07:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575068', 'tblTempUsageDetail_20' ) end [2025-02-28 07:57:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:57:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:57:20] Production.INFO: ==26840== Releasing lock... [2025-02-28 07:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:57:20] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:58:05 [end_date_ymd] => 2025-02-28 07:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 04:58:05' and `end` < '2025-02-28 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-02-28 07:58:17] Production.INFO: count ==294 [2025-02-28 07:58:17] Production.ERROR: pbx CDR StartTime 2025-02-28 04:58:05 - End Time 2025-02-28 07:58:05 [2025-02-28 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575073', 'tblTempUsageDetail_20' ) start [2025-02-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575073', 'tblTempUsageDetail_20' ) end [2025-02-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575073', 'tblTempVendorCDR_20' ) start [2025-02-28 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575073', 'tblTempVendorCDR_20' ) end [2025-02-28 07:58:17] Production.INFO: ProcessCDR(1,14575073,1,1,2) [2025-02-28 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575073', 'tblTempUsageDetail_20' ) start [2025-02-28 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575073', 'tblTempUsageDetail_20' ) end [2025-02-28 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:58:21] Production.INFO: ==26913== Releasing lock... [2025-02-28 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:58:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 07:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 04:59:06 [end_date_ymd] => 2025-02-28 07:59:06 [RateCDR] => 1 ) [2025-02-28 07: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-02-28 04:59:06' and `end` < '2025-02-28 07: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-02-28 07:59:18] Production.INFO: count ==294 [2025-02-28 07:59:18] Production.ERROR: pbx CDR StartTime 2025-02-28 04:59:06 - End Time 2025-02-28 07:59:06 [2025-02-28 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575078', 'tblTempUsageDetail_20' ) start [2025-02-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575078', 'tblTempUsageDetail_20' ) end [2025-02-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575078', 'tblTempVendorCDR_20' ) start [2025-02-28 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575078', 'tblTempVendorCDR_20' ) end [2025-02-28 07:59:18] Production.INFO: ProcessCDR(1,14575078,1,1,2) [2025-02-28 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575078', 'tblTempUsageDetail_20' ) start [2025-02-28 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575078', 'tblTempUsageDetail_20' ) end [2025-02-28 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 07:59:21] Production.INFO: ==26985== Releasing lock... [2025-02-28 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 07:59:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:00:06 [end_date_ymd] => 2025-02-28 08:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:00:06' and `end` < '2025-02-28 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-02-28 08:00:18] Production.INFO: count ==294 [2025-02-28 08:00:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:00:06 - End Time 2025-02-28 08:00:06 [2025-02-28 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575084', 'tblTempUsageDetail_20' ) start [2025-02-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575084', 'tblTempUsageDetail_20' ) end [2025-02-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575084', 'tblTempVendorCDR_20' ) start [2025-02-28 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575084', 'tblTempVendorCDR_20' ) end [2025-02-28 08:00:18] Production.INFO: ProcessCDR(1,14575084,1,1,2) [2025-02-28 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575084', 'tblTempUsageDetail_20' ) start [2025-02-28 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575084', 'tblTempUsageDetail_20' ) end [2025-02-28 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:00:21] Production.INFO: ==27060== Releasing lock... [2025-02-28 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:00:21] Production.INFO: 31 MB #Memory Used# [2025-02-28 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:01:06 [end_date_ymd] => 2025-02-28 08:01:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:01:06' and `end` < '2025-02-28 08: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-02-28 08:01:18] Production.INFO: count ==289 [2025-02-28 08:01:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:01:06 - End Time 2025-02-28 08:01:06 [2025-02-28 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575089', 'tblTempUsageDetail_20' ) start [2025-02-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575089', 'tblTempUsageDetail_20' ) end [2025-02-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575089', 'tblTempVendorCDR_20' ) start [2025-02-28 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575089', 'tblTempVendorCDR_20' ) end [2025-02-28 08:01:18] Production.INFO: ProcessCDR(1,14575089,1,1,2) [2025-02-28 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575089', 'tblTempUsageDetail_20' ) start [2025-02-28 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575089', 'tblTempUsageDetail_20' ) end [2025-02-28 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:01:21] Production.INFO: ==27150== Releasing lock... [2025-02-28 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:01:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:02:06 [end_date_ymd] => 2025-02-28 08:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:02:06' and `end` < '2025-02-28 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-02-28 08:02:18] Production.INFO: count ==290 [2025-02-28 08:02:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:02:06 - End Time 2025-02-28 08:02:06 [2025-02-28 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575094', 'tblTempUsageDetail_20' ) start [2025-02-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575094', 'tblTempUsageDetail_20' ) end [2025-02-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575094', 'tblTempVendorCDR_20' ) start [2025-02-28 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575094', 'tblTempVendorCDR_20' ) end [2025-02-28 08:02:18] Production.INFO: ProcessCDR(1,14575094,1,1,2) [2025-02-28 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575094', 'tblTempUsageDetail_20' ) start [2025-02-28 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575094', 'tblTempUsageDetail_20' ) end [2025-02-28 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:02:22] Production.INFO: ==27220== Releasing lock... [2025-02-28 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:03:05 [end_date_ymd] => 2025-02-28 08:03:05 [RateCDR] => 1 ) [2025-02-28 08:03:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:03:05' and `end` < '2025-02-28 08:03:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:03:17] Production.INFO: count ==291 [2025-02-28 08:03:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:03:05 - End Time 2025-02-28 08:03:05 [2025-02-28 08:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575099', 'tblTempUsageDetail_20' ) start [2025-02-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575099', 'tblTempUsageDetail_20' ) end [2025-02-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575099', 'tblTempVendorCDR_20' ) start [2025-02-28 08:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575099', 'tblTempVendorCDR_20' ) end [2025-02-28 08:03:17] Production.INFO: ProcessCDR(1,14575099,1,1,2) [2025-02-28 08:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575099', 'tblTempUsageDetail_20' ) start [2025-02-28 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575099', 'tblTempUsageDetail_20' ) end [2025-02-28 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:03:21] Production.INFO: ==27293== Releasing lock... [2025-02-28 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-02-28 08:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:04:06 [end_date_ymd] => 2025-02-28 08:04:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:04:06' and `end` < '2025-02-28 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-02-28 08:04:18] Production.INFO: count ==303 [2025-02-28 08:04:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:04:06 - End Time 2025-02-28 08:04:06 [2025-02-28 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575104', 'tblTempUsageDetail_20' ) start [2025-02-28 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575104', 'tblTempUsageDetail_20' ) end [2025-02-28 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575104', 'tblTempVendorCDR_20' ) start [2025-02-28 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575104', 'tblTempVendorCDR_20' ) end [2025-02-28 08:04:18] Production.INFO: ProcessCDR(1,14575104,1,1,2) [2025-02-28 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575104', 'tblTempUsageDetail_20' ) start [2025-02-28 08:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575104', 'tblTempUsageDetail_20' ) end [2025-02-28 08:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:04:23] Production.INFO: ==27366== Releasing lock... [2025-02-28 08:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:04:23] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:05:05 [end_date_ymd] => 2025-02-28 08:05:05 [RateCDR] => 1 ) [2025-02-28 08:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:05:05' and `end` < '2025-02-28 08:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:05:17] Production.INFO: count ==298 [2025-02-28 08:05:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:05:05 - End Time 2025-02-28 08:05:05 [2025-02-28 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575109', 'tblTempUsageDetail_20' ) start [2025-02-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575109', 'tblTempUsageDetail_20' ) end [2025-02-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575109', 'tblTempVendorCDR_20' ) start [2025-02-28 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575109', 'tblTempVendorCDR_20' ) end [2025-02-28 08:05:17] Production.INFO: ProcessCDR(1,14575109,1,1,2) [2025-02-28 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575109', 'tblTempUsageDetail_20' ) start [2025-02-28 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575109', 'tblTempUsageDetail_20' ) end [2025-02-28 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:05:21] Production.INFO: ==27437== Releasing lock... [2025-02-28 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 08:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:06:06 [end_date_ymd] => 2025-02-28 08:06:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:06:06' and `end` < '2025-02-28 08: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-02-28 08:06:18] Production.INFO: count ==303 [2025-02-28 08:06:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:06:06 - End Time 2025-02-28 08:06:06 [2025-02-28 08:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575114', 'tblTempUsageDetail_20' ) start [2025-02-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575114', 'tblTempUsageDetail_20' ) end [2025-02-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575114', 'tblTempVendorCDR_20' ) start [2025-02-28 08:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575114', 'tblTempVendorCDR_20' ) end [2025-02-28 08:06:18] Production.INFO: ProcessCDR(1,14575114,1,1,2) [2025-02-28 08:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575114', 'tblTempUsageDetail_20' ) start [2025-02-28 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575114', 'tblTempUsageDetail_20' ) end [2025-02-28 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:06:22] Production.INFO: ==27515== Releasing lock... [2025-02-28 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:07:06 [end_date_ymd] => 2025-02-28 08:07:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:07:06' and `end` < '2025-02-28 08: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-02-28 08:07:18] Production.INFO: count ==307 [2025-02-28 08:07:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:07:06 - End Time 2025-02-28 08:07:06 [2025-02-28 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575119', 'tblTempUsageDetail_20' ) start [2025-02-28 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575119', 'tblTempUsageDetail_20' ) end [2025-02-28 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575119', 'tblTempVendorCDR_20' ) start [2025-02-28 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575119', 'tblTempVendorCDR_20' ) end [2025-02-28 08:07:18] Production.INFO: ProcessCDR(1,14575119,1,1,2) [2025-02-28 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575119', 'tblTempUsageDetail_20' ) start [2025-02-28 08:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575119', 'tblTempUsageDetail_20' ) end [2025-02-28 08:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:07:24] Production.INFO: ==27585== Releasing lock... [2025-02-28 08:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:07:24] Production.INFO: 30.75 MB #Memory Used# [2025-02-28 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:08:06 [end_date_ymd] => 2025-02-28 08:08:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:08:06' and `end` < '2025-02-28 08: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-02-28 08:08:18] Production.INFO: count ==320 [2025-02-28 08:08:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:08:06 - End Time 2025-02-28 08:08:06 [2025-02-28 08:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575124', 'tblTempUsageDetail_20' ) start [2025-02-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575124', 'tblTempUsageDetail_20' ) end [2025-02-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575124', 'tblTempVendorCDR_20' ) start [2025-02-28 08:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575124', 'tblTempVendorCDR_20' ) end [2025-02-28 08:08:18] Production.INFO: ProcessCDR(1,14575124,1,1,2) [2025-02-28 08:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575124', 'tblTempUsageDetail_20' ) start [2025-02-28 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575124', 'tblTempUsageDetail_20' ) end [2025-02-28 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:08:23] Production.INFO: ==27664== Releasing lock... [2025-02-28 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:08:23] Production.INFO: 31 MB #Memory Used# [2025-02-28 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:09:05 [end_date_ymd] => 2025-02-28 08:09:05 [RateCDR] => 1 ) [2025-02-28 08:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:09:05' and `end` < '2025-02-28 08:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:09:17] Production.INFO: count ==332 [2025-02-28 08:09:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:09:05 - End Time 2025-02-28 08:09:05 [2025-02-28 08:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575129', 'tblTempUsageDetail_20' ) start [2025-02-28 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575129', 'tblTempUsageDetail_20' ) end [2025-02-28 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575129', 'tblTempVendorCDR_20' ) start [2025-02-28 08:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575129', 'tblTempVendorCDR_20' ) end [2025-02-28 08:09:17] Production.INFO: ProcessCDR(1,14575129,1,1,2) [2025-02-28 08:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575129', 'tblTempUsageDetail_20' ) start [2025-02-28 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575129', 'tblTempUsageDetail_20' ) end [2025-02-28 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:09:21] Production.INFO: ==27741== Releasing lock... [2025-02-28 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-02-28 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:10:06 [end_date_ymd] => 2025-02-28 08:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:10:06' and `end` < '2025-02-28 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-02-28 08:10:18] Production.INFO: count ==341 [2025-02-28 08:10:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:10:06 - End Time 2025-02-28 08:10:06 [2025-02-28 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575135', 'tblTempUsageDetail_20' ) start [2025-02-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575135', 'tblTempUsageDetail_20' ) end [2025-02-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575135', 'tblTempVendorCDR_20' ) start [2025-02-28 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575135', 'tblTempVendorCDR_20' ) end [2025-02-28 08:10:18] Production.INFO: ProcessCDR(1,14575135,1,1,2) [2025-02-28 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575135', 'tblTempUsageDetail_20' ) start [2025-02-28 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575135', 'tblTempUsageDetail_20' ) end [2025-02-28 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:10:23] Production.INFO: ==27829== Releasing lock... [2025-02-28 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:10:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-28 08:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:11:05 [end_date_ymd] => 2025-02-28 08:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:11:05' and `end` < '2025-02-28 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-02-28 08:11:17] Production.INFO: count ==373 [2025-02-28 08:11:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:11:05 - End Time 2025-02-28 08:11:05 [2025-02-28 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575140', 'tblTempUsageDetail_20' ) start [2025-02-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575140', 'tblTempUsageDetail_20' ) end [2025-02-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575140', 'tblTempVendorCDR_20' ) start [2025-02-28 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575140', 'tblTempVendorCDR_20' ) end [2025-02-28 08:11:17] Production.INFO: ProcessCDR(1,14575140,1,1,2) [2025-02-28 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575140', 'tblTempUsageDetail_20' ) start [2025-02-28 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575140', 'tblTempUsageDetail_20' ) end [2025-02-28 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:11:22] Production.INFO: ==27909== Releasing lock... [2025-02-28 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-02-28 08:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:12:06 [end_date_ymd] => 2025-02-28 08:12:06 [RateCDR] => 1 ) [2025-02-28 08:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:12:06' and `end` < '2025-02-28 08:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:12:18] Production.INFO: count ==383 [2025-02-28 08:12:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:12:06 - End Time 2025-02-28 08:12:06 [2025-02-28 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575145', 'tblTempUsageDetail_20' ) start [2025-02-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575145', 'tblTempUsageDetail_20' ) end [2025-02-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575145', 'tblTempVendorCDR_20' ) start [2025-02-28 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575145', 'tblTempVendorCDR_20' ) end [2025-02-28 08:12:18] Production.INFO: ProcessCDR(1,14575145,1,1,2) [2025-02-28 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575145', 'tblTempUsageDetail_20' ) start [2025-02-28 08:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575145', 'tblTempUsageDetail_20' ) end [2025-02-28 08:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:12:23] Production.INFO: ==28028== Releasing lock... [2025-02-28 08:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:12:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-28 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:13:05 [end_date_ymd] => 2025-02-28 08:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:13:05' and `end` < '2025-02-28 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-02-28 08:13:17] Production.INFO: count ==383 [2025-02-28 08:13:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:13:05 - End Time 2025-02-28 08:13:05 [2025-02-28 08:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575150', 'tblTempUsageDetail_20' ) start [2025-02-28 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575150', 'tblTempUsageDetail_20' ) end [2025-02-28 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575150', 'tblTempVendorCDR_20' ) start [2025-02-28 08:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575150', 'tblTempVendorCDR_20' ) end [2025-02-28 08:13:17] Production.INFO: ProcessCDR(1,14575150,1,1,2) [2025-02-28 08:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575150', 'tblTempUsageDetail_20' ) start [2025-02-28 08:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575150', 'tblTempUsageDetail_20' ) end [2025-02-28 08:13:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:13:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:13:21] Production.INFO: ==28107== Releasing lock... [2025-02-28 08:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:13:21] Production.INFO: 31.5 MB #Memory Used# [2025-02-28 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:14:05 [end_date_ymd] => 2025-02-28 08:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:14:05' and `end` < '2025-02-28 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-02-28 08:14:17] Production.INFO: count ==387 [2025-02-28 08:14:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:14:05 - End Time 2025-02-28 08:14:05 [2025-02-28 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575155', 'tblTempUsageDetail_20' ) start [2025-02-28 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575155', 'tblTempUsageDetail_20' ) end [2025-02-28 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575155', 'tblTempVendorCDR_20' ) start [2025-02-28 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575155', 'tblTempVendorCDR_20' ) end [2025-02-28 08:14:17] Production.INFO: ProcessCDR(1,14575155,1,1,2) [2025-02-28 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575155', 'tblTempUsageDetail_20' ) start [2025-02-28 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575155', 'tblTempUsageDetail_20' ) end [2025-02-28 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:14:21] Production.INFO: ==28190== Releasing lock... [2025-02-28 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-02-28 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:15:05 [end_date_ymd] => 2025-02-28 08:15:05 [RateCDR] => 1 ) [2025-02-28 08:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:15:05' and `end` < '2025-02-28 08:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:15:17] Production.INFO: count ==391 [2025-02-28 08:15:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:15:05 - End Time 2025-02-28 08:15:05 [2025-02-28 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575160', 'tblTempUsageDetail_20' ) start [2025-02-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575160', 'tblTempUsageDetail_20' ) end [2025-02-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575160', 'tblTempVendorCDR_20' ) start [2025-02-28 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575160', 'tblTempVendorCDR_20' ) end [2025-02-28 08:15:17] Production.INFO: ProcessCDR(1,14575160,1,1,2) [2025-02-28 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575160', 'tblTempUsageDetail_20' ) start [2025-02-28 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575160', 'tblTempUsageDetail_20' ) end [2025-02-28 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:15:20] Production.INFO: ==28275== Releasing lock... [2025-02-28 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:15:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-28 08:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:16:06 [end_date_ymd] => 2025-02-28 08:16:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:16:06' and `end` < '2025-02-28 08: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-02-28 08:16:18] Production.INFO: count ==393 [2025-02-28 08:16:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:16:06 - End Time 2025-02-28 08:16:06 [2025-02-28 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575165', 'tblTempUsageDetail_20' ) start [2025-02-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575165', 'tblTempUsageDetail_20' ) end [2025-02-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575165', 'tblTempVendorCDR_20' ) start [2025-02-28 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575165', 'tblTempVendorCDR_20' ) end [2025-02-28 08:16:18] Production.INFO: ProcessCDR(1,14575165,1,1,2) [2025-02-28 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575165', 'tblTempUsageDetail_20' ) start [2025-02-28 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575165', 'tblTempUsageDetail_20' ) end [2025-02-28 08:16:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:16:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:16:23] Production.INFO: ==28352== Releasing lock... [2025-02-28 08:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:16:23] Production.INFO: 31.25 MB #Memory Used# [2025-02-28 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:17:05 [end_date_ymd] => 2025-02-28 08:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:17:05' and `end` < '2025-02-28 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-02-28 08:17:17] Production.INFO: count ==408 [2025-02-28 08:17:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:17:05 - End Time 2025-02-28 08:17:05 [2025-02-28 08:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575170', 'tblTempUsageDetail_20' ) start [2025-02-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575170', 'tblTempUsageDetail_20' ) end [2025-02-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575170', 'tblTempVendorCDR_20' ) start [2025-02-28 08:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575170', 'tblTempVendorCDR_20' ) end [2025-02-28 08:17:17] Production.INFO: ProcessCDR(1,14575170,1,1,2) [2025-02-28 08:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575170', 'tblTempUsageDetail_20' ) start [2025-02-28 08:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575170', 'tblTempUsageDetail_20' ) end [2025-02-28 08:17:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:17:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:17:20] Production.INFO: ==28429== Releasing lock... [2025-02-28 08:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:17:20] Production.INFO: 31.25 MB #Memory Used# [2025-02-28 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:18:05 [end_date_ymd] => 2025-02-28 08:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:18:05' and `end` < '2025-02-28 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-02-28 08:18:17] Production.INFO: count ==409 [2025-02-28 08:18:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:18:05 - End Time 2025-02-28 08:18:05 [2025-02-28 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575175', 'tblTempUsageDetail_20' ) start [2025-02-28 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575175', 'tblTempUsageDetail_20' ) end [2025-02-28 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575175', 'tblTempVendorCDR_20' ) start [2025-02-28 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575175', 'tblTempVendorCDR_20' ) end [2025-02-28 08:18:17] Production.INFO: ProcessCDR(1,14575175,1,1,2) [2025-02-28 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575175', 'tblTempUsageDetail_20' ) start [2025-02-28 08:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575175', 'tblTempUsageDetail_20' ) end [2025-02-28 08:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:18:22] Production.INFO: ==28517== Releasing lock... [2025-02-28 08:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:18:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-28 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:19:05 [end_date_ymd] => 2025-02-28 08:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:19:05' and `end` < '2025-02-28 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-02-28 08:19:17] Production.INFO: count ==413 [2025-02-28 08:19:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:19:05 - End Time 2025-02-28 08:19:05 [2025-02-28 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575180', 'tblTempUsageDetail_20' ) start [2025-02-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575180', 'tblTempUsageDetail_20' ) end [2025-02-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575180', 'tblTempVendorCDR_20' ) start [2025-02-28 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575180', 'tblTempVendorCDR_20' ) end [2025-02-28 08:19:17] Production.INFO: ProcessCDR(1,14575180,1,1,2) [2025-02-28 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575180', 'tblTempUsageDetail_20' ) start [2025-02-28 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575180', 'tblTempUsageDetail_20' ) end [2025-02-28 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:19:22] Production.INFO: ==28595== Releasing lock... [2025-02-28 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:19:22] Production.INFO: 31.5 MB #Memory Used# [2025-02-28 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:20:06 [end_date_ymd] => 2025-02-28 08:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:20:06' and `end` < '2025-02-28 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-02-28 08:20:18] Production.INFO: count ==419 [2025-02-28 08:20:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:20:06 - End Time 2025-02-28 08:20:06 [2025-02-28 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575186', 'tblTempUsageDetail_20' ) start [2025-02-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575186', 'tblTempUsageDetail_20' ) end [2025-02-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575186', 'tblTempVendorCDR_20' ) start [2025-02-28 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575186', 'tblTempVendorCDR_20' ) end [2025-02-28 08:20:18] Production.INFO: ProcessCDR(1,14575186,1,1,2) [2025-02-28 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575186', 'tblTempUsageDetail_20' ) start [2025-02-28 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575186', 'tblTempUsageDetail_20' ) end [2025-02-28 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:20:23] Production.INFO: ==28674== Releasing lock... [2025-02-28 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:20:23] Production.INFO: 31.5 MB #Memory Used# [2025-02-28 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:21:05 [end_date_ymd] => 2025-02-28 08:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:21:05' and `end` < '2025-02-28 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-02-28 08:21:17] Production.INFO: count ==458 [2025-02-28 08:21:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:21:05 - End Time 2025-02-28 08:21:05 [2025-02-28 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575191', 'tblTempUsageDetail_20' ) start [2025-02-28 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575191', 'tblTempUsageDetail_20' ) end [2025-02-28 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575191', 'tblTempVendorCDR_20' ) start [2025-02-28 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575191', 'tblTempVendorCDR_20' ) end [2025-02-28 08:21:17] Production.INFO: ProcessCDR(1,14575191,1,1,2) [2025-02-28 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575191', 'tblTempUsageDetail_20' ) start [2025-02-28 08:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575191', 'tblTempUsageDetail_20' ) end [2025-02-28 08:21:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:21:23] Production.INFO: ==28748== Releasing lock... [2025-02-28 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:21:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:22:06 [end_date_ymd] => 2025-02-28 08:22:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:22:06' and `end` < '2025-02-28 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-02-28 08:22:18] Production.INFO: count ==466 [2025-02-28 08:22:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:22:06 - End Time 2025-02-28 08:22:06 [2025-02-28 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575196', 'tblTempUsageDetail_20' ) start [2025-02-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575196', 'tblTempUsageDetail_20' ) end [2025-02-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575196', 'tblTempVendorCDR_20' ) start [2025-02-28 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575196', 'tblTempVendorCDR_20' ) end [2025-02-28 08:22:18] Production.INFO: ProcessCDR(1,14575196,1,1,2) [2025-02-28 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575196', 'tblTempUsageDetail_20' ) start [2025-02-28 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575196', 'tblTempUsageDetail_20' ) end [2025-02-28 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:22:23] Production.INFO: ==28831== Releasing lock... [2025-02-28 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:22:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:23:06 [end_date_ymd] => 2025-02-28 08:23:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:23:06' and `end` < '2025-02-28 08: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-02-28 08:23:18] Production.INFO: count ==471 [2025-02-28 08:23:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:23:06 - End Time 2025-02-28 08:23:06 [2025-02-28 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575201', 'tblTempUsageDetail_20' ) start [2025-02-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575201', 'tblTempUsageDetail_20' ) end [2025-02-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575201', 'tblTempVendorCDR_20' ) start [2025-02-28 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575201', 'tblTempVendorCDR_20' ) end [2025-02-28 08:23:18] Production.INFO: ProcessCDR(1,14575201,1,1,2) [2025-02-28 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575201', 'tblTempUsageDetail_20' ) start [2025-02-28 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575201', 'tblTempUsageDetail_20' ) end [2025-02-28 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:23:21] Production.INFO: ==28909== Releasing lock... [2025-02-28 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:23:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:24:05 [end_date_ymd] => 2025-02-28 08:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:24:05' and `end` < '2025-02-28 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-02-28 08:24:17] Production.INFO: count ==476 [2025-02-28 08:24:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:24:05 - End Time 2025-02-28 08:24:05 [2025-02-28 08:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575206', 'tblTempUsageDetail_20' ) start [2025-02-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575206', 'tblTempUsageDetail_20' ) end [2025-02-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575206', 'tblTempVendorCDR_20' ) start [2025-02-28 08:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575206', 'tblTempVendorCDR_20' ) end [2025-02-28 08:24:17] Production.INFO: ProcessCDR(1,14575206,1,1,2) [2025-02-28 08:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575206', 'tblTempUsageDetail_20' ) start [2025-02-28 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575206', 'tblTempUsageDetail_20' ) end [2025-02-28 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:24:21] Production.INFO: ==28996== Releasing lock... [2025-02-28 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:24:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:25:06 [end_date_ymd] => 2025-02-28 08:25:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:25:06' and `end` < '2025-02-28 08: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-02-28 08:25:18] Production.INFO: count ==483 [2025-02-28 08:25:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:25:06 - End Time 2025-02-28 08:25:06 [2025-02-28 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575211', 'tblTempUsageDetail_20' ) start [2025-02-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575211', 'tblTempUsageDetail_20' ) end [2025-02-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575211', 'tblTempVendorCDR_20' ) start [2025-02-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575211', 'tblTempVendorCDR_20' ) end [2025-02-28 08:25:18] Production.INFO: ProcessCDR(1,14575211,1,1,2) [2025-02-28 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575211', 'tblTempUsageDetail_20' ) start [2025-02-28 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575211', 'tblTempUsageDetail_20' ) end [2025-02-28 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:25:23] Production.INFO: ==29086== Releasing lock... [2025-02-28 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:25:23] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:26:05 [end_date_ymd] => 2025-02-28 08:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:26:05' and `end` < '2025-02-28 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-02-28 08:26:17] Production.INFO: count ==503 [2025-02-28 08:26:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:26:05 - End Time 2025-02-28 08:26:05 [2025-02-28 08:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575216', 'tblTempUsageDetail_20' ) start [2025-02-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575216', 'tblTempUsageDetail_20' ) end [2025-02-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575216', 'tblTempVendorCDR_20' ) start [2025-02-28 08:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575216', 'tblTempVendorCDR_20' ) end [2025-02-28 08:26:17] Production.INFO: ProcessCDR(1,14575216,1,1,2) [2025-02-28 08:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575216', 'tblTempUsageDetail_20' ) start [2025-02-28 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575216', 'tblTempUsageDetail_20' ) end [2025-02-28 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:26:22] Production.INFO: ==29175== Releasing lock... [2025-02-28 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:26:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:27:06 [end_date_ymd] => 2025-02-28 08:27:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:27:06' and `end` < '2025-02-28 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-02-28 08:27:18] Production.INFO: count ==503 [2025-02-28 08:27:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:27:06 - End Time 2025-02-28 08:27:06 [2025-02-28 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575221', 'tblTempUsageDetail_20' ) start [2025-02-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575221', 'tblTempUsageDetail_20' ) end [2025-02-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575221', 'tblTempVendorCDR_20' ) start [2025-02-28 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575221', 'tblTempVendorCDR_20' ) end [2025-02-28 08:27:18] Production.INFO: ProcessCDR(1,14575221,1,1,2) [2025-02-28 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575221', 'tblTempUsageDetail_20' ) start [2025-02-28 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575221', 'tblTempUsageDetail_20' ) end [2025-02-28 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:27:21] Production.INFO: ==29299== Releasing lock... [2025-02-28 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:27:21] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:28:05 [end_date_ymd] => 2025-02-28 08:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:28:05' and `end` < '2025-02-28 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-02-28 08:28:16] Production.INFO: count ==508 [2025-02-28 08:28:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:28:05 - End Time 2025-02-28 08:28:05 [2025-02-28 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575226', 'tblTempUsageDetail_20' ) start [2025-02-28 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575226', 'tblTempUsageDetail_20' ) end [2025-02-28 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575226', 'tblTempVendorCDR_20' ) start [2025-02-28 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575226', 'tblTempVendorCDR_20' ) end [2025-02-28 08:28:17] Production.INFO: ProcessCDR(1,14575226,1,1,2) [2025-02-28 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575226', 'tblTempUsageDetail_20' ) start [2025-02-28 08:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575226', 'tblTempUsageDetail_20' ) end [2025-02-28 08:28:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:28:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:28:20] Production.INFO: ==29395== Releasing lock... [2025-02-28 08:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:28:20] Production.INFO: 32.75 MB #Memory Used# [2025-02-28 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:29:05 [end_date_ymd] => 2025-02-28 08:29:05 [RateCDR] => 1 ) [2025-02-28 08:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:29:05' and `end` < '2025-02-28 08:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:29:17] Production.INFO: count ==515 [2025-02-28 08:29:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:29:05 - End Time 2025-02-28 08:29:05 [2025-02-28 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575231', 'tblTempUsageDetail_20' ) start [2025-02-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575231', 'tblTempUsageDetail_20' ) end [2025-02-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575231', 'tblTempVendorCDR_20' ) start [2025-02-28 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575231', 'tblTempVendorCDR_20' ) end [2025-02-28 08:29:17] Production.INFO: ProcessCDR(1,14575231,1,1,2) [2025-02-28 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575231', 'tblTempUsageDetail_20' ) start [2025-02-28 08:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575231', 'tblTempUsageDetail_20' ) end [2025-02-28 08:29:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:29:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:29:22] Production.INFO: ==29481== Releasing lock... [2025-02-28 08:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:29:22] Production.INFO: 32.25 MB #Memory Used# [2025-02-28 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:30:06 [end_date_ymd] => 2025-02-28 08:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:30:06' and `end` < '2025-02-28 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-02-28 08:30:18] Production.INFO: count ==526 [2025-02-28 08:30:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:30:06 - End Time 2025-02-28 08:30:06 [2025-02-28 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575237', 'tblTempUsageDetail_20' ) start [2025-02-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575237', 'tblTempUsageDetail_20' ) end [2025-02-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575237', 'tblTempVendorCDR_20' ) start [2025-02-28 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575237', 'tblTempVendorCDR_20' ) end [2025-02-28 08:30:18] Production.INFO: ProcessCDR(1,14575237,1,1,2) [2025-02-28 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575237', 'tblTempUsageDetail_20' ) start [2025-02-28 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575237', 'tblTempUsageDetail_20' ) end [2025-02-28 08:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:30:23] Production.INFO: ==29568== Releasing lock... [2025-02-28 08:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-28 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:31:06 [end_date_ymd] => 2025-02-28 08:31:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:31:06' and `end` < '2025-02-28 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-02-28 08:31:17] Production.INFO: count ==538 [2025-02-28 08:31:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:31:06 - End Time 2025-02-28 08:31:06 [2025-02-28 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575242', 'tblTempUsageDetail_20' ) start [2025-02-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575242', 'tblTempUsageDetail_20' ) end [2025-02-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575242', 'tblTempVendorCDR_20' ) start [2025-02-28 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575242', 'tblTempVendorCDR_20' ) end [2025-02-28 08:31:18] Production.INFO: ProcessCDR(1,14575242,1,1,2) [2025-02-28 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575242', 'tblTempUsageDetail_20' ) start [2025-02-28 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575242', 'tblTempUsageDetail_20' ) end [2025-02-28 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:31:22] Production.INFO: ==29654== Releasing lock... [2025-02-28 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:31:22] Production.INFO: 33 MB #Memory Used# [2025-02-28 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:32:06 [end_date_ymd] => 2025-02-28 08:32:06 [RateCDR] => 1 ) [2025-02-28 08:32:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:32:06' and `end` < '2025-02-28 08:32:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:32:18] Production.INFO: count ==543 [2025-02-28 08:32:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:32:06 - End Time 2025-02-28 08:32:06 [2025-02-28 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575247', 'tblTempUsageDetail_20' ) start [2025-02-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575247', 'tblTempUsageDetail_20' ) end [2025-02-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575247', 'tblTempVendorCDR_20' ) start [2025-02-28 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575247', 'tblTempVendorCDR_20' ) end [2025-02-28 08:32:18] Production.INFO: ProcessCDR(1,14575247,1,1,2) [2025-02-28 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575247', 'tblTempUsageDetail_20' ) start [2025-02-28 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575247', 'tblTempUsageDetail_20' ) end [2025-02-28 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:32:22] Production.INFO: ==29742== Releasing lock... [2025-02-28 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:32:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-28 08:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:33:06 [end_date_ymd] => 2025-02-28 08:33:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:33:06' and `end` < '2025-02-28 08: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-02-28 08:33:18] Production.INFO: count ==545 [2025-02-28 08:33:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:33:06 - End Time 2025-02-28 08:33:06 [2025-02-28 08:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575252', 'tblTempUsageDetail_20' ) start [2025-02-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575252', 'tblTempUsageDetail_20' ) end [2025-02-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575252', 'tblTempVendorCDR_20' ) start [2025-02-28 08:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575252', 'tblTempVendorCDR_20' ) end [2025-02-28 08:33:18] Production.INFO: ProcessCDR(1,14575252,1,1,2) [2025-02-28 08:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575252', 'tblTempUsageDetail_20' ) start [2025-02-28 08:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575252', 'tblTempUsageDetail_20' ) end [2025-02-28 08:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:33:23] Production.INFO: ==29821== Releasing lock... [2025-02-28 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:33:23] Production.INFO: 32.5 MB #Memory Used# [2025-02-28 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:34:05 [end_date_ymd] => 2025-02-28 08:34:05 [RateCDR] => 1 ) [2025-02-28 08:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:34:05' and `end` < '2025-02-28 08:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:34:17] Production.INFO: count ==544 [2025-02-28 08:34:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:34:05 - End Time 2025-02-28 08:34:05 [2025-02-28 08:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575257', 'tblTempUsageDetail_20' ) start [2025-02-28 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575257', 'tblTempUsageDetail_20' ) end [2025-02-28 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575257', 'tblTempVendorCDR_20' ) start [2025-02-28 08:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575257', 'tblTempVendorCDR_20' ) end [2025-02-28 08:34:17] Production.INFO: ProcessCDR(1,14575257,1,1,2) [2025-02-28 08:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575257', 'tblTempUsageDetail_20' ) start [2025-02-28 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575257', 'tblTempUsageDetail_20' ) end [2025-02-28 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:34:21] Production.INFO: ==29899== Releasing lock... [2025-02-28 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-02-28 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:35:06 [end_date_ymd] => 2025-02-28 08:35:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:35:06' and `end` < '2025-02-28 08: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-02-28 08:35:18] Production.INFO: count ==552 [2025-02-28 08:35:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:35:06 - End Time 2025-02-28 08:35:06 [2025-02-28 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575262', 'tblTempUsageDetail_20' ) start [2025-02-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575262', 'tblTempUsageDetail_20' ) end [2025-02-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575262', 'tblTempVendorCDR_20' ) start [2025-02-28 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575262', 'tblTempVendorCDR_20' ) end [2025-02-28 08:35:18] Production.INFO: ProcessCDR(1,14575262,1,1,2) [2025-02-28 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575262', 'tblTempUsageDetail_20' ) start [2025-02-28 08:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575262', 'tblTempUsageDetail_20' ) end [2025-02-28 08:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:35:23] Production.INFO: ==29977== Releasing lock... [2025-02-28 08:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:35:23] Production.INFO: 33 MB #Memory Used# [2025-02-28 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:36:05 [end_date_ymd] => 2025-02-28 08:36:05 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:36:05' and `end` < '2025-02-28 08: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-02-28 08:36:17] Production.INFO: count ==555 [2025-02-28 08:36:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:36:05 - End Time 2025-02-28 08:36:05 [2025-02-28 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575267', 'tblTempUsageDetail_20' ) start [2025-02-28 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575267', 'tblTempUsageDetail_20' ) end [2025-02-28 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575267', 'tblTempVendorCDR_20' ) start [2025-02-28 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575267', 'tblTempVendorCDR_20' ) end [2025-02-28 08:36:18] Production.INFO: ProcessCDR(1,14575267,1,1,2) [2025-02-28 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575267', 'tblTempUsageDetail_20' ) start [2025-02-28 08:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575267', 'tblTempUsageDetail_20' ) end [2025-02-28 08:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:36:23] Production.INFO: ==30052== Releasing lock... [2025-02-28 08:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:36:23] Production.INFO: 33 MB #Memory Used# [2025-02-28 08:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:37:06 [end_date_ymd] => 2025-02-28 08:37:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:37:06' and `end` < '2025-02-28 08: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-02-28 08:37:18] Production.INFO: count ==560 [2025-02-28 08:37:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:37:06 - End Time 2025-02-28 08:37:06 [2025-02-28 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575272', 'tblTempUsageDetail_20' ) start [2025-02-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575272', 'tblTempUsageDetail_20' ) end [2025-02-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575272', 'tblTempVendorCDR_20' ) start [2025-02-28 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575272', 'tblTempVendorCDR_20' ) end [2025-02-28 08:37:18] Production.INFO: ProcessCDR(1,14575272,1,1,2) [2025-02-28 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575272', 'tblTempUsageDetail_20' ) start [2025-02-28 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575272', 'tblTempUsageDetail_20' ) end [2025-02-28 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:37:22] Production.INFO: ==30125== Releasing lock... [2025-02-28 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:37:22] Production.INFO: 33 MB #Memory Used# [2025-02-28 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:38:05 [end_date_ymd] => 2025-02-28 08:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:38:05' and `end` < '2025-02-28 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-02-28 08:38:17] Production.INFO: count ==565 [2025-02-28 08:38:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:38:05 - End Time 2025-02-28 08:38:05 [2025-02-28 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575277', 'tblTempUsageDetail_20' ) start [2025-02-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575277', 'tblTempUsageDetail_20' ) end [2025-02-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575277', 'tblTempVendorCDR_20' ) start [2025-02-28 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575277', 'tblTempVendorCDR_20' ) end [2025-02-28 08:38:18] Production.INFO: ProcessCDR(1,14575277,1,1,2) [2025-02-28 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575277', 'tblTempUsageDetail_20' ) start [2025-02-28 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575277', 'tblTempUsageDetail_20' ) end [2025-02-28 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:38:23] Production.INFO: ==30202== Releasing lock... [2025-02-28 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:38:23] Production.INFO: 32 MB #Memory Used# [2025-02-28 08:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:39:06 [end_date_ymd] => 2025-02-28 08:39:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:39:06' and `end` < '2025-02-28 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-02-28 08:39:18] Production.INFO: count ==582 [2025-02-28 08:39:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:39:06 - End Time 2025-02-28 08:39:06 [2025-02-28 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575282', 'tblTempUsageDetail_20' ) start [2025-02-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575282', 'tblTempUsageDetail_20' ) end [2025-02-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575282', 'tblTempVendorCDR_20' ) start [2025-02-28 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575282', 'tblTempVendorCDR_20' ) end [2025-02-28 08:39:18] Production.INFO: ProcessCDR(1,14575282,1,1,2) [2025-02-28 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575282', 'tblTempUsageDetail_20' ) start [2025-02-28 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575282', 'tblTempUsageDetail_20' ) end [2025-02-28 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:39:22] Production.INFO: ==30277== Releasing lock... [2025-02-28 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:39:22] Production.INFO: 32.75 MB #Memory Used# [2025-02-28 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:40:06 [end_date_ymd] => 2025-02-28 08:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:40:06' and `end` < '2025-02-28 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-02-28 08:40:18] Production.INFO: count ==589 [2025-02-28 08:40:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:40:06 - End Time 2025-02-28 08:40:06 [2025-02-28 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575288', 'tblTempUsageDetail_20' ) start [2025-02-28 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575288', 'tblTempUsageDetail_20' ) end [2025-02-28 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575288', 'tblTempVendorCDR_20' ) start [2025-02-28 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575288', 'tblTempVendorCDR_20' ) end [2025-02-28 08:40:18] Production.INFO: ProcessCDR(1,14575288,1,1,2) [2025-02-28 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575288', 'tblTempUsageDetail_20' ) start [2025-02-28 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575288', 'tblTempUsageDetail_20' ) end [2025-02-28 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:40:23] Production.INFO: ==30356== Releasing lock... [2025-02-28 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:40:23] Production.INFO: 33 MB #Memory Used# [2025-02-28 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:41:05 [end_date_ymd] => 2025-02-28 08:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:41:05' and `end` < '2025-02-28 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-02-28 08:41:17] Production.INFO: count ==610 [2025-02-28 08:41:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:41:05 - End Time 2025-02-28 08:41:05 [2025-02-28 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575293', 'tblTempUsageDetail_20' ) start [2025-02-28 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575293', 'tblTempUsageDetail_20' ) end [2025-02-28 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575293', 'tblTempVendorCDR_20' ) start [2025-02-28 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575293', 'tblTempVendorCDR_20' ) end [2025-02-28 08:41:17] Production.INFO: ProcessCDR(1,14575293,1,1,2) [2025-02-28 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575293', 'tblTempUsageDetail_20' ) start [2025-02-28 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575293', 'tblTempUsageDetail_20' ) end [2025-02-28 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:41:22] Production.INFO: ==30435== Releasing lock... [2025-02-28 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-28 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:42:05 [end_date_ymd] => 2025-02-28 08:42:05 [RateCDR] => 1 ) [2025-02-28 08:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:42:05' and `end` < '2025-02-28 08:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:42:17] Production.INFO: count ==610 [2025-02-28 08:42:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:42:05 - End Time 2025-02-28 08:42:05 [2025-02-28 08:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575298', 'tblTempUsageDetail_20' ) start [2025-02-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575298', 'tblTempUsageDetail_20' ) end [2025-02-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575298', 'tblTempVendorCDR_20' ) start [2025-02-28 08:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575298', 'tblTempVendorCDR_20' ) end [2025-02-28 08:42:17] Production.INFO: ProcessCDR(1,14575298,1,1,2) [2025-02-28 08:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575298', 'tblTempUsageDetail_20' ) start [2025-02-28 08:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575298', 'tblTempUsageDetail_20' ) end [2025-02-28 08:42:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:42:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:42:20] Production.INFO: ==30545== Releasing lock... [2025-02-28 08:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:42:20] Production.INFO: 33.5 MB #Memory Used# [2025-02-28 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:43:05 [end_date_ymd] => 2025-02-28 08:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:43:05' and `end` < '2025-02-28 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-02-28 08:43:17] Production.INFO: count ==627 [2025-02-28 08:43:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:43:05 - End Time 2025-02-28 08:43:05 [2025-02-28 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575303', 'tblTempUsageDetail_20' ) start [2025-02-28 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575303', 'tblTempUsageDetail_20' ) end [2025-02-28 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575303', 'tblTempVendorCDR_20' ) start [2025-02-28 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575303', 'tblTempVendorCDR_20' ) end [2025-02-28 08:43:17] Production.INFO: ProcessCDR(1,14575303,1,1,2) [2025-02-28 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575303', 'tblTempUsageDetail_20' ) start [2025-02-28 08:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575303', 'tblTempUsageDetail_20' ) end [2025-02-28 08:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:43:22] Production.INFO: ==30617== Releasing lock... [2025-02-28 08:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:43:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-28 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:44:05 [end_date_ymd] => 2025-02-28 08:44:05 [RateCDR] => 1 ) [2025-02-28 08:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:44:05' and `end` < '2025-02-28 08:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:44:17] Production.INFO: count ==630 [2025-02-28 08:44:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:44:05 - End Time 2025-02-28 08:44:05 [2025-02-28 08:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575308', 'tblTempUsageDetail_20' ) start [2025-02-28 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575308', 'tblTempUsageDetail_20' ) end [2025-02-28 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575308', 'tblTempVendorCDR_20' ) start [2025-02-28 08:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575308', 'tblTempVendorCDR_20' ) end [2025-02-28 08:44:17] Production.INFO: ProcessCDR(1,14575308,1,1,2) [2025-02-28 08:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575308', 'tblTempUsageDetail_20' ) start [2025-02-28 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575308', 'tblTempUsageDetail_20' ) end [2025-02-28 08:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:44:22] Production.INFO: ==30689== Releasing lock... [2025-02-28 08:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:44:22] Production.INFO: 33.25 MB #Memory Used# [2025-02-28 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:45:06 [end_date_ymd] => 2025-02-28 08:45:06 [RateCDR] => 1 ) [2025-02-28 08:45:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:45:06' and `end` < '2025-02-28 08:45:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:45:18] Production.INFO: count ==637 [2025-02-28 08:45:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:45:06 - End Time 2025-02-28 08:45:06 [2025-02-28 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575313', 'tblTempUsageDetail_20' ) start [2025-02-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575313', 'tblTempUsageDetail_20' ) end [2025-02-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575313', 'tblTempVendorCDR_20' ) start [2025-02-28 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575313', 'tblTempVendorCDR_20' ) end [2025-02-28 08:45:18] Production.INFO: ProcessCDR(1,14575313,1,1,2) [2025-02-28 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575313', 'tblTempUsageDetail_20' ) start [2025-02-28 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575313', 'tblTempUsageDetail_20' ) end [2025-02-28 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:45:23] Production.INFO: ==30765== Releasing lock... [2025-02-28 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:45:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-28 08:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:46:06 [end_date_ymd] => 2025-02-28 08:46:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:46:06' and `end` < '2025-02-28 08: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-02-28 08:46:18] Production.INFO: count ==641 [2025-02-28 08:46:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:46:06 - End Time 2025-02-28 08:46:06 [2025-02-28 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575318', 'tblTempUsageDetail_20' ) start [2025-02-28 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575318', 'tblTempUsageDetail_20' ) end [2025-02-28 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575318', 'tblTempVendorCDR_20' ) start [2025-02-28 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575318', 'tblTempVendorCDR_20' ) end [2025-02-28 08:46:18] Production.INFO: ProcessCDR(1,14575318,1,1,2) [2025-02-28 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575318', 'tblTempUsageDetail_20' ) start [2025-02-28 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575318', 'tblTempUsageDetail_20' ) end [2025-02-28 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:46:23] Production.INFO: ==30835== Releasing lock... [2025-02-28 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:46:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-28 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:47:05 [end_date_ymd] => 2025-02-28 08:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:47:05' and `end` < '2025-02-28 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-02-28 08:47:17] Production.INFO: count ==650 [2025-02-28 08:47:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:47:05 - End Time 2025-02-28 08:47:05 [2025-02-28 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575323', 'tblTempUsageDetail_20' ) start [2025-02-28 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575323', 'tblTempUsageDetail_20' ) end [2025-02-28 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575323', 'tblTempVendorCDR_20' ) start [2025-02-28 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575323', 'tblTempVendorCDR_20' ) end [2025-02-28 08:47:18] Production.INFO: ProcessCDR(1,14575323,1,1,2) [2025-02-28 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575323', 'tblTempUsageDetail_20' ) start [2025-02-28 08:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575323', 'tblTempUsageDetail_20' ) end [2025-02-28 08:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:47:23] Production.INFO: ==30909== Releasing lock... [2025-02-28 08:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:47:23] Production.INFO: 33 MB #Memory Used# [2025-02-28 08:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:48:06 [end_date_ymd] => 2025-02-28 08:48:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:48:06' and `end` < '2025-02-28 08: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-02-28 08:48:18] Production.INFO: count ==662 [2025-02-28 08:48:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:48:06 - End Time 2025-02-28 08:48:06 [2025-02-28 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575328', 'tblTempUsageDetail_20' ) start [2025-02-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575328', 'tblTempUsageDetail_20' ) end [2025-02-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575328', 'tblTempVendorCDR_20' ) start [2025-02-28 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575328', 'tblTempVendorCDR_20' ) end [2025-02-28 08:48:18] Production.INFO: ProcessCDR(1,14575328,1,1,2) [2025-02-28 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575328', 'tblTempUsageDetail_20' ) start [2025-02-28 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575328', 'tblTempUsageDetail_20' ) end [2025-02-28 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:48:23] Production.INFO: ==30983== Releasing lock... [2025-02-28 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-02-28 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:49:05 [end_date_ymd] => 2025-02-28 08:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:49:05' and `end` < '2025-02-28 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-02-28 08:49:17] Production.INFO: count ==669 [2025-02-28 08:49:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:49:05 - End Time 2025-02-28 08:49:05 [2025-02-28 08:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575333', 'tblTempUsageDetail_20' ) start [2025-02-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575333', 'tblTempUsageDetail_20' ) end [2025-02-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575333', 'tblTempVendorCDR_20' ) start [2025-02-28 08:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575333', 'tblTempVendorCDR_20' ) end [2025-02-28 08:49:17] Production.INFO: ProcessCDR(1,14575333,1,1,2) [2025-02-28 08:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575333', 'tblTempUsageDetail_20' ) start [2025-02-28 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575333', 'tblTempUsageDetail_20' ) end [2025-02-28 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:49:22] Production.INFO: ==31061== Releasing lock... [2025-02-28 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:49:22] Production.INFO: 33.5 MB #Memory Used# [2025-02-28 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:50:06 [end_date_ymd] => 2025-02-28 08:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:50:06' and `end` < '2025-02-28 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-02-28 08:50:18] Production.INFO: count ==675 [2025-02-28 08:50:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:50:06 - End Time 2025-02-28 08:50:06 [2025-02-28 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575338', 'tblTempUsageDetail_20' ) start [2025-02-28 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575338', 'tblTempUsageDetail_20' ) end [2025-02-28 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575338', 'tblTempVendorCDR_20' ) start [2025-02-28 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575338', 'tblTempVendorCDR_20' ) end [2025-02-28 08:50:18] Production.INFO: ProcessCDR(1,14575338,1,1,2) [2025-02-28 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575338', 'tblTempUsageDetail_20' ) start [2025-02-28 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575338', 'tblTempUsageDetail_20' ) end [2025-02-28 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:50:24] Production.INFO: ==31134== Releasing lock... [2025-02-28 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:50:24] Production.INFO: 34 MB #Memory Used# [2025-02-28 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:51:05 [end_date_ymd] => 2025-02-28 08:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:51:05' and `end` < '2025-02-28 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-02-28 08:51:17] Production.INFO: count ==705 [2025-02-28 08:51:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:51:05 - End Time 2025-02-28 08:51:05 [2025-02-28 08:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575344', 'tblTempUsageDetail_20' ) start [2025-02-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575344', 'tblTempUsageDetail_20' ) end [2025-02-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575344', 'tblTempVendorCDR_20' ) start [2025-02-28 08:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575344', 'tblTempVendorCDR_20' ) end [2025-02-28 08:51:17] Production.INFO: ProcessCDR(1,14575344,1,1,2) [2025-02-28 08:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575344', 'tblTempUsageDetail_20' ) start [2025-02-28 08:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575344', 'tblTempUsageDetail_20' ) end [2025-02-28 08:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:51:22] Production.INFO: ==31207== Releasing lock... [2025-02-28 08:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:51:22] Production.INFO: 34 MB #Memory Used# [2025-02-28 08:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:52:06 [end_date_ymd] => 2025-02-28 08:52:06 [RateCDR] => 1 ) [2025-02-28 08: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-02-28 05:52:06' and `end` < '2025-02-28 08: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-02-28 08:52:18] Production.INFO: count ==715 [2025-02-28 08:52:19] Production.ERROR: pbx CDR StartTime 2025-02-28 05:52:06 - End Time 2025-02-28 08:52:06 [2025-02-28 08:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575349', 'tblTempUsageDetail_20' ) start [2025-02-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575349', 'tblTempUsageDetail_20' ) end [2025-02-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575349', 'tblTempVendorCDR_20' ) start [2025-02-28 08:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575349', 'tblTempVendorCDR_20' ) end [2025-02-28 08:52:19] Production.INFO: ProcessCDR(1,14575349,1,1,2) [2025-02-28 08:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575349', 'tblTempUsageDetail_20' ) start [2025-02-28 08:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575349', 'tblTempUsageDetail_20' ) end [2025-02-28 08:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:52:22] Production.INFO: ==31278== Releasing lock... [2025-02-28 08:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:52:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-28 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:53:05 [end_date_ymd] => 2025-02-28 08:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:53:05' and `end` < '2025-02-28 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-02-28 08:53:17] Production.INFO: count ==726 [2025-02-28 08:53:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:53:05 - End Time 2025-02-28 08:53:05 [2025-02-28 08:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575354', 'tblTempUsageDetail_20' ) start [2025-02-28 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575354', 'tblTempUsageDetail_20' ) end [2025-02-28 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575354', 'tblTempVendorCDR_20' ) start [2025-02-28 08:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575354', 'tblTempVendorCDR_20' ) end [2025-02-28 08:53:17] Production.INFO: ProcessCDR(1,14575354,1,1,2) [2025-02-28 08:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575354', 'tblTempUsageDetail_20' ) start [2025-02-28 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575354', 'tblTempUsageDetail_20' ) end [2025-02-28 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:53:22] Production.INFO: ==31355== Releasing lock... [2025-02-28 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:53:22] Production.INFO: 34 MB #Memory Used# [2025-02-28 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:54:05 [end_date_ymd] => 2025-02-28 08:54:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:54:05' and `end` < '2025-02-28 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-02-28 08:54:18] Production.INFO: count ==735 [2025-02-28 08:54:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:54:05 - End Time 2025-02-28 08:54:05 [2025-02-28 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575359', 'tblTempUsageDetail_20' ) start [2025-02-28 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575359', 'tblTempUsageDetail_20' ) end [2025-02-28 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575359', 'tblTempVendorCDR_20' ) start [2025-02-28 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575359', 'tblTempVendorCDR_20' ) end [2025-02-28 08:54:18] Production.INFO: ProcessCDR(1,14575359,1,1,2) [2025-02-28 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575359', 'tblTempUsageDetail_20' ) start [2025-02-28 08:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575359', 'tblTempUsageDetail_20' ) end [2025-02-28 08:54:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:54:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:54:23] Production.INFO: ==31429== Releasing lock... [2025-02-28 08:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:54:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-28 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:55:05 [end_date_ymd] => 2025-02-28 08:55:05 [RateCDR] => 1 ) [2025-02-28 08:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 05:55:05' and `end` < '2025-02-28 08:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 08:55:17] Production.INFO: count ==739 [2025-02-28 08:55:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:55:05 - End Time 2025-02-28 08:55:05 [2025-02-28 08:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575364', 'tblTempUsageDetail_20' ) start [2025-02-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575364', 'tblTempUsageDetail_20' ) end [2025-02-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575364', 'tblTempVendorCDR_20' ) start [2025-02-28 08:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575364', 'tblTempVendorCDR_20' ) end [2025-02-28 08:55:17] Production.INFO: ProcessCDR(1,14575364,1,1,2) [2025-02-28 08:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575364', 'tblTempUsageDetail_20' ) start [2025-02-28 08:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575364', 'tblTempUsageDetail_20' ) end [2025-02-28 08:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:55:22] Production.INFO: ==31498== Releasing lock... [2025-02-28 08:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:55:22] Production.INFO: 34 MB #Memory Used# [2025-02-28 08:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:56:06 [end_date_ymd] => 2025-02-28 08:56:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:56:06' and `end` < '2025-02-28 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-02-28 08:56:18] Production.INFO: count ==750 [2025-02-28 08:56:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:56:06 - End Time 2025-02-28 08:56:06 [2025-02-28 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575369', 'tblTempUsageDetail_20' ) start [2025-02-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575369', 'tblTempUsageDetail_20' ) end [2025-02-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575369', 'tblTempVendorCDR_20' ) start [2025-02-28 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575369', 'tblTempVendorCDR_20' ) end [2025-02-28 08:56:18] Production.INFO: ProcessCDR(1,14575369,1,1,2) [2025-02-28 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575369', 'tblTempUsageDetail_20' ) start [2025-02-28 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575369', 'tblTempUsageDetail_20' ) end [2025-02-28 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:56:23] Production.INFO: ==31572== Releasing lock... [2025-02-28 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:56:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-28 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:57:05 [end_date_ymd] => 2025-02-28 08:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:57:05' and `end` < '2025-02-28 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-02-28 08:57:17] Production.INFO: count ==753 [2025-02-28 08:57:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:57:05 - End Time 2025-02-28 08:57:05 [2025-02-28 08:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575374', 'tblTempUsageDetail_20' ) start [2025-02-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575374', 'tblTempUsageDetail_20' ) end [2025-02-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575374', 'tblTempVendorCDR_20' ) start [2025-02-28 08:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575374', 'tblTempVendorCDR_20' ) end [2025-02-28 08:57:17] Production.INFO: ProcessCDR(1,14575374,1,1,2) [2025-02-28 08:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575374', 'tblTempUsageDetail_20' ) start [2025-02-28 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575374', 'tblTempUsageDetail_20' ) end [2025-02-28 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:57:22] Production.INFO: ==31643== Releasing lock... [2025-02-28 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:57:22] Production.INFO: 33.75 MB #Memory Used# [2025-02-28 08:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:58:06 [end_date_ymd] => 2025-02-28 08:58:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:58:06' and `end` < '2025-02-28 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-02-28 08:58:18] Production.INFO: count ==754 [2025-02-28 08:58:18] Production.ERROR: pbx CDR StartTime 2025-02-28 05:58:06 - End Time 2025-02-28 08:58:06 [2025-02-28 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575379', 'tblTempUsageDetail_20' ) start [2025-02-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575379', 'tblTempUsageDetail_20' ) end [2025-02-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575379', 'tblTempVendorCDR_20' ) start [2025-02-28 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575379', 'tblTempVendorCDR_20' ) end [2025-02-28 08:58:18] Production.INFO: ProcessCDR(1,14575379,1,1,2) [2025-02-28 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575379', 'tblTempUsageDetail_20' ) start [2025-02-28 08:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575379', 'tblTempUsageDetail_20' ) end [2025-02-28 08:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:58:23] Production.INFO: ==31754== Releasing lock... [2025-02-28 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:58:23] Production.INFO: 33.5 MB #Memory Used# [2025-02-28 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 05:59:05 [end_date_ymd] => 2025-02-28 08:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 05:59:05' and `end` < '2025-02-28 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-02-28 08:59:17] Production.INFO: count ==776 [2025-02-28 08:59:17] Production.ERROR: pbx CDR StartTime 2025-02-28 05:59:05 - End Time 2025-02-28 08:59:05 [2025-02-28 08:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575384', 'tblTempUsageDetail_20' ) start [2025-02-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575384', 'tblTempUsageDetail_20' ) end [2025-02-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575384', 'tblTempVendorCDR_20' ) start [2025-02-28 08:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575384', 'tblTempVendorCDR_20' ) end [2025-02-28 08:59:17] Production.INFO: ProcessCDR(1,14575384,1,1,2) [2025-02-28 08:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575384', 'tblTempUsageDetail_20' ) start [2025-02-28 08:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575384', 'tblTempUsageDetail_20' ) end [2025-02-28 08:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 08:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 08:59:22] Production.INFO: ==31823== Releasing lock... [2025-02-28 08:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 08:59:22] Production.INFO: 34 MB #Memory Used# [2025-02-28 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:00:06 [end_date_ymd] => 2025-02-28 09:00:06 [RateCDR] => 1 ) [2025-02-28 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:00:06' and `end` < '2025-02-28 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:00:18] Production.INFO: count ==787 [2025-02-28 09:00:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:00:06 - End Time 2025-02-28 09:00:06 [2025-02-28 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575390', 'tblTempUsageDetail_20' ) start [2025-02-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575390', 'tblTempUsageDetail_20' ) end [2025-02-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575390', 'tblTempVendorCDR_20' ) start [2025-02-28 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575390', 'tblTempVendorCDR_20' ) end [2025-02-28 09:00:18] Production.INFO: ProcessCDR(1,14575390,1,1,2) [2025-02-28 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575390', 'tblTempUsageDetail_20' ) start [2025-02-28 09:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575390', 'tblTempUsageDetail_20' ) end [2025-02-28 09:00:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:00:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:00:22] Production.INFO: ==31899== Releasing lock... [2025-02-28 09:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:00:22] Production.INFO: 34 MB #Memory Used# [2025-02-28 09:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:01:04 [end_date_ymd] => 2025-02-28 09:01:04 [RateCDR] => 1 ) [2025-02-28 09:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:01:04' and `end` < '2025-02-28 09:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:01:16] Production.INFO: count ==827 [2025-02-28 09:01:17] Production.ERROR: pbx CDR StartTime 2025-02-28 06:01:04 - End Time 2025-02-28 09:01:04 [2025-02-28 09:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575393', 'tblTempUsageDetail_20' ) start [2025-02-28 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575393', 'tblTempUsageDetail_20' ) end [2025-02-28 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575393', 'tblTempVendorCDR_20' ) start [2025-02-28 09:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575393', 'tblTempVendorCDR_20' ) end [2025-02-28 09:01:17] Production.INFO: ProcessCDR(1,14575393,1,1,2) [2025-02-28 09:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575393', 'tblTempUsageDetail_20' ) start [2025-02-28 09:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575393', 'tblTempUsageDetail_20' ) end [2025-02-28 09:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:01:21] Production.INFO: ==31984== Releasing lock... [2025-02-28 09:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:01:21] Production.INFO: 34.75 MB #Memory Used# [2025-02-28 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:02:05 [end_date_ymd] => 2025-02-28 09:02:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:02:05' and `end` < '2025-02-28 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-02-28 09:02:17] Production.INFO: count ==859 [2025-02-28 09:02:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:02:05 - End Time 2025-02-28 09:02:05 [2025-02-28 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575400', 'tblTempUsageDetail_20' ) start [2025-02-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575400', 'tblTempUsageDetail_20' ) end [2025-02-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575400', 'tblTempVendorCDR_20' ) start [2025-02-28 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575400', 'tblTempVendorCDR_20' ) end [2025-02-28 09:02:18] Production.INFO: ProcessCDR(1,14575400,1,1,2) [2025-02-28 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575400', 'tblTempUsageDetail_20' ) start [2025-02-28 09:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575400', 'tblTempUsageDetail_20' ) end [2025-02-28 09:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:02:24] Production.INFO: ==32057== Releasing lock... [2025-02-28 09:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:02:24] Production.INFO: 34.75 MB #Memory Used# [2025-02-28 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:03:05 [end_date_ymd] => 2025-02-28 09:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:03:05' and `end` < '2025-02-28 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-02-28 09:03:17] Production.INFO: count ==887 [2025-02-28 09:03:17] Production.ERROR: pbx CDR StartTime 2025-02-28 06:03:05 - End Time 2025-02-28 09:03:05 [2025-02-28 09:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575405', 'tblTempUsageDetail_20' ) start [2025-02-28 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575405', 'tblTempUsageDetail_20' ) end [2025-02-28 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575405', 'tblTempVendorCDR_20' ) start [2025-02-28 09:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575405', 'tblTempVendorCDR_20' ) end [2025-02-28 09:03:17] Production.INFO: ProcessCDR(1,14575405,1,1,2) [2025-02-28 09:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575405', 'tblTempUsageDetail_20' ) start [2025-02-28 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575405', 'tblTempUsageDetail_20' ) end [2025-02-28 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:03:23] Production.INFO: ==32128== Releasing lock... [2025-02-28 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:03:23] Production.INFO: 34.75 MB #Memory Used# [2025-02-28 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:04:05 [end_date_ymd] => 2025-02-28 09:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:04:05' and `end` < '2025-02-28 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-02-28 09:04:18] Production.INFO: count ==900 [2025-02-28 09:04:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:04:05 - End Time 2025-02-28 09:04:05 [2025-02-28 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575410', 'tblTempUsageDetail_20' ) start [2025-02-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575410', 'tblTempUsageDetail_20' ) end [2025-02-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575410', 'tblTempVendorCDR_20' ) start [2025-02-28 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575410', 'tblTempVendorCDR_20' ) end [2025-02-28 09:04:18] Production.INFO: ProcessCDR(1,14575410,1,1,2) [2025-02-28 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575410', 'tblTempUsageDetail_20' ) start [2025-02-28 09:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575410', 'tblTempUsageDetail_20' ) end [2025-02-28 09:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:04:24] Production.INFO: ==32199== Releasing lock... [2025-02-28 09:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:04:24] Production.INFO: 34.25 MB #Memory Used# [2025-02-28 09:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:05:06 [end_date_ymd] => 2025-02-28 09:05:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:05:06' and `end` < '2025-02-28 09: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-02-28 09:05:18] Production.INFO: count ==914 [2025-02-28 09:05:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:05:06 - End Time 2025-02-28 09:05:06 [2025-02-28 09:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575415', 'tblTempUsageDetail_20' ) start [2025-02-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575415', 'tblTempUsageDetail_20' ) end [2025-02-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575415', 'tblTempVendorCDR_20' ) start [2025-02-28 09:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575415', 'tblTempVendorCDR_20' ) end [2025-02-28 09:05:19] Production.INFO: ProcessCDR(1,14575415,1,1,2) [2025-02-28 09:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575415', 'tblTempUsageDetail_20' ) start [2025-02-28 09:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575415', 'tblTempUsageDetail_20' ) end [2025-02-28 09:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:05:24] Production.INFO: ==32270== Releasing lock... [2025-02-28 09:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:05:24] Production.INFO: 35.25 MB #Memory Used# [2025-02-28 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:06:06 [end_date_ymd] => 2025-02-28 09:06:06 [RateCDR] => 1 ) [2025-02-28 09:06:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:06:06' and `end` < '2025-02-28 09:06:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:06:18] Production.INFO: count ==953 [2025-02-28 09:06:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:06:06 - End Time 2025-02-28 09:06:06 [2025-02-28 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575420', 'tblTempUsageDetail_20' ) start [2025-02-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575420', 'tblTempUsageDetail_20' ) end [2025-02-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575420', 'tblTempVendorCDR_20' ) start [2025-02-28 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575420', 'tblTempVendorCDR_20' ) end [2025-02-28 09:06:19] Production.INFO: ProcessCDR(1,14575420,1,1,2) [2025-02-28 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575420', 'tblTempUsageDetail_20' ) start [2025-02-28 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575420', 'tblTempUsageDetail_20' ) end [2025-02-28 09:06:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:06:25] Production.INFO: ==32342== Releasing lock... [2025-02-28 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:06:25] Production.INFO: 35.5 MB #Memory Used# [2025-02-28 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:07:05 [end_date_ymd] => 2025-02-28 09:07:05 [RateCDR] => 1 ) [2025-02-28 09:07:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:07:05' and `end` < '2025-02-28 09:07:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:07:17] Production.INFO: count ==979 [2025-02-28 09:07:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:07:05 - End Time 2025-02-28 09:07:05 [2025-02-28 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575425', 'tblTempUsageDetail_20' ) start [2025-02-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575425', 'tblTempUsageDetail_20' ) end [2025-02-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575425', 'tblTempVendorCDR_20' ) start [2025-02-28 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575425', 'tblTempVendorCDR_20' ) end [2025-02-28 09:07:18] Production.INFO: ProcessCDR(1,14575425,1,1,2) [2025-02-28 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575425', 'tblTempUsageDetail_20' ) start [2025-02-28 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575425', 'tblTempUsageDetail_20' ) end [2025-02-28 09:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:07:23] Production.INFO: ==32415== Releasing lock... [2025-02-28 09:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:07:23] Production.INFO: 35.5 MB #Memory Used# [2025-02-28 09:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:08:06 [end_date_ymd] => 2025-02-28 09:08:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:08:06' and `end` < '2025-02-28 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-02-28 09:08:18] Production.INFO: count ==1000 [2025-02-28 09:08:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:08:06 - End Time 2025-02-28 09:08:06 [2025-02-28 09:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575430', 'tblTempUsageDetail_20' ) start [2025-02-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575430', 'tblTempUsageDetail_20' ) end [2025-02-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575430', 'tblTempVendorCDR_20' ) start [2025-02-28 09:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575430', 'tblTempVendorCDR_20' ) end [2025-02-28 09:08:19] Production.INFO: ProcessCDR(1,14575430,1,1,2) [2025-02-28 09:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575430', 'tblTempUsageDetail_20' ) start [2025-02-28 09:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575430', 'tblTempUsageDetail_20' ) end [2025-02-28 09:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:08:25] Production.INFO: ==32492== Releasing lock... [2025-02-28 09:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:08:25] Production.INFO: 35.75 MB #Memory Used# [2025-02-28 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:09:05 [end_date_ymd] => 2025-02-28 09:09:05 [RateCDR] => 1 ) [2025-02-28 09:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:09:05' and `end` < '2025-02-28 09:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:09:17] Production.INFO: count ==1016 [2025-02-28 09:09:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:09:05 - End Time 2025-02-28 09:09:05 [2025-02-28 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575435', 'tblTempUsageDetail_20' ) start [2025-02-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575435', 'tblTempUsageDetail_20' ) end [2025-02-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575435', 'tblTempVendorCDR_20' ) start [2025-02-28 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575435', 'tblTempVendorCDR_20' ) end [2025-02-28 09:09:18] Production.INFO: ProcessCDR(1,14575435,1,1,2) [2025-02-28 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575435', 'tblTempUsageDetail_20' ) start [2025-02-28 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575435', 'tblTempUsageDetail_20' ) end [2025-02-28 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:09:23] Production.INFO: ==32563== Releasing lock... [2025-02-28 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:09:23] Production.INFO: 36.5 MB #Memory Used# [2025-02-28 09:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:10:07 [end_date_ymd] => 2025-02-28 09:10:07 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:10:07' and `end` < '2025-02-28 09: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-02-28 09:10:19] Production.INFO: count ==1037 [2025-02-28 09:10:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:10:07 - End Time 2025-02-28 09:10:07 [2025-02-28 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575441', 'tblTempUsageDetail_20' ) start [2025-02-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575441', 'tblTempUsageDetail_20' ) end [2025-02-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575441', 'tblTempVendorCDR_20' ) start [2025-02-28 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575441', 'tblTempVendorCDR_20' ) end [2025-02-28 09:10:20] Production.INFO: ProcessCDR(1,14575441,1,1,2) [2025-02-28 09:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575441', 'tblTempUsageDetail_20' ) start [2025-02-28 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575441', 'tblTempUsageDetail_20' ) end [2025-02-28 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:10:25] Production.INFO: ==32637== Releasing lock... [2025-02-28 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:10:25] Production.INFO: 36.25 MB #Memory Used# [2025-02-28 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:11:05 [end_date_ymd] => 2025-02-28 09:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:11:05' and `end` < '2025-02-28 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-02-28 09:11:17] Production.INFO: count ==1102 [2025-02-28 09:11:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:11:05 - End Time 2025-02-28 09:11:05 [2025-02-28 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575446', 'tblTempUsageDetail_20' ) start [2025-02-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575446', 'tblTempUsageDetail_20' ) end [2025-02-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575446', 'tblTempVendorCDR_20' ) start [2025-02-28 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575446', 'tblTempVendorCDR_20' ) end [2025-02-28 09:11:18] Production.INFO: ProcessCDR(1,14575446,1,1,2) [2025-02-28 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575446', 'tblTempUsageDetail_20' ) start [2025-02-28 09:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575446', 'tblTempUsageDetail_20' ) end [2025-02-28 09:11:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:11:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:11:22] Production.INFO: ==32708== Releasing lock... [2025-02-28 09:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:11:22] Production.INFO: 36.75 MB #Memory Used# [2025-02-28 09:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:12:06 [end_date_ymd] => 2025-02-28 09:12:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:12:06' and `end` < '2025-02-28 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-02-28 09:12:18] Production.INFO: count ==1111 [2025-02-28 09:12:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:12:06 - End Time 2025-02-28 09:12:06 [2025-02-28 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575451', 'tblTempUsageDetail_20' ) start [2025-02-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575451', 'tblTempUsageDetail_20' ) end [2025-02-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575451', 'tblTempVendorCDR_20' ) start [2025-02-28 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575451', 'tblTempVendorCDR_20' ) end [2025-02-28 09:12:19] Production.INFO: ProcessCDR(1,14575451,1,1,2) [2025-02-28 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575451', 'tblTempUsageDetail_20' ) start [2025-02-28 09:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575451', 'tblTempUsageDetail_20' ) end [2025-02-28 09:12:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:12:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:12:24] Production.INFO: ==318== Releasing lock... [2025-02-28 09:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:12:24] Production.INFO: 36.5 MB #Memory Used# [2025-02-28 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:13:06 [end_date_ymd] => 2025-02-28 09:13:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:13:06' and `end` < '2025-02-28 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-02-28 09:13:18] Production.INFO: count ==1116 [2025-02-28 09:13:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:13:06 - End Time 2025-02-28 09:13:06 [2025-02-28 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575456', 'tblTempUsageDetail_20' ) start [2025-02-28 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575456', 'tblTempUsageDetail_20' ) end [2025-02-28 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575456', 'tblTempVendorCDR_20' ) start [2025-02-28 09:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575456', 'tblTempVendorCDR_20' ) end [2025-02-28 09:13:19] Production.INFO: ProcessCDR(1,14575456,1,1,2) [2025-02-28 09:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575456', 'tblTempUsageDetail_20' ) start [2025-02-28 09:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575456', 'tblTempUsageDetail_20' ) end [2025-02-28 09:13:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:13:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:13:24] Production.INFO: ==441== Releasing lock... [2025-02-28 09:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:13:24] Production.INFO: 37 MB #Memory Used# [2025-02-28 09:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:14:06 [end_date_ymd] => 2025-02-28 09:14:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:14:06' and `end` < '2025-02-28 09: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-02-28 09:14:18] Production.INFO: count ==1129 [2025-02-28 09:14:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:14:06 - End Time 2025-02-28 09:14:06 [2025-02-28 09:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575461', 'tblTempUsageDetail_20' ) start [2025-02-28 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575461', 'tblTempUsageDetail_20' ) end [2025-02-28 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575461', 'tblTempVendorCDR_20' ) start [2025-02-28 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575461', 'tblTempVendorCDR_20' ) end [2025-02-28 09:14:18] Production.INFO: ProcessCDR(1,14575461,1,1,2) [2025-02-28 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575461', 'tblTempUsageDetail_20' ) start [2025-02-28 09:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575461', 'tblTempUsageDetail_20' ) end [2025-02-28 09:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:14:24] Production.INFO: ==515== Releasing lock... [2025-02-28 09:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:14:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-28 09:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:15:06 [end_date_ymd] => 2025-02-28 09:15:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:15:06' and `end` < '2025-02-28 09: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-02-28 09:15:18] Production.INFO: count ==1150 [2025-02-28 09:15:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:15:06 - End Time 2025-02-28 09:15:06 [2025-02-28 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575466', 'tblTempUsageDetail_20' ) start [2025-02-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575466', 'tblTempUsageDetail_20' ) end [2025-02-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575466', 'tblTempVendorCDR_20' ) start [2025-02-28 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575466', 'tblTempVendorCDR_20' ) end [2025-02-28 09:15:18] Production.INFO: ProcessCDR(1,14575466,1,1,2) [2025-02-28 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575466', 'tblTempUsageDetail_20' ) start [2025-02-28 09:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575466', 'tblTempUsageDetail_20' ) end [2025-02-28 09:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:15:24] Production.INFO: ==588== Releasing lock... [2025-02-28 09:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:15:24] Production.INFO: 37.25 MB #Memory Used# [2025-02-28 09:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:16:06 [end_date_ymd] => 2025-02-28 09:16:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:16:06' and `end` < '2025-02-28 09: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-02-28 09:16:19] Production.INFO: count ==1164 [2025-02-28 09:16:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:16:06 - End Time 2025-02-28 09:16:06 [2025-02-28 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575471', 'tblTempUsageDetail_20' ) start [2025-02-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575471', 'tblTempUsageDetail_20' ) end [2025-02-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575471', 'tblTempVendorCDR_20' ) start [2025-02-28 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575471', 'tblTempVendorCDR_20' ) end [2025-02-28 09:16:19] Production.INFO: ProcessCDR(1,14575471,1,1,2) [2025-02-28 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575471', 'tblTempUsageDetail_20' ) start [2025-02-28 09:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575471', 'tblTempUsageDetail_20' ) end [2025-02-28 09:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:16:25] Production.INFO: ==676== Releasing lock... [2025-02-28 09:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:16:25] Production.INFO: 36.75 MB #Memory Used# [2025-02-28 09:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:17:06 [end_date_ymd] => 2025-02-28 09:17:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:17:06' and `end` < '2025-02-28 09: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-02-28 09:17:18] Production.INFO: count ==1168 [2025-02-28 09:17:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:17:06 - End Time 2025-02-28 09:17:06 [2025-02-28 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575476', 'tblTempUsageDetail_20' ) start [2025-02-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575476', 'tblTempUsageDetail_20' ) end [2025-02-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575476', 'tblTempVendorCDR_20' ) start [2025-02-28 09:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575476', 'tblTempVendorCDR_20' ) end [2025-02-28 09:17:19] Production.INFO: ProcessCDR(1,14575476,1,1,2) [2025-02-28 09:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575476', 'tblTempUsageDetail_20' ) start [2025-02-28 09:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575476', 'tblTempUsageDetail_20' ) end [2025-02-28 09:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:17:24] Production.INFO: ==762== Releasing lock... [2025-02-28 09:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:17:24] Production.INFO: 36.75 MB #Memory Used# [2025-02-28 09:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:18:06 [end_date_ymd] => 2025-02-28 09:18:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:18:06' and `end` < '2025-02-28 09: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-02-28 09:18:18] Production.INFO: count ==1189 [2025-02-28 09:18:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:18:06 - End Time 2025-02-28 09:18:06 [2025-02-28 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575481', 'tblTempUsageDetail_20' ) start [2025-02-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575481', 'tblTempUsageDetail_20' ) end [2025-02-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575481', 'tblTempVendorCDR_20' ) start [2025-02-28 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575481', 'tblTempVendorCDR_20' ) end [2025-02-28 09:18:19] Production.INFO: ProcessCDR(1,14575481,1,1,2) [2025-02-28 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575481', 'tblTempUsageDetail_20' ) start [2025-02-28 09:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575481', 'tblTempUsageDetail_20' ) end [2025-02-28 09:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:18:25] Production.INFO: ==832== Releasing lock... [2025-02-28 09:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:18:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-28 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:19:05 [end_date_ymd] => 2025-02-28 09:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:19:05' and `end` < '2025-02-28 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-02-28 09:19:18] Production.INFO: count ==1210 [2025-02-28 09:19:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:19:05 - End Time 2025-02-28 09:19:05 [2025-02-28 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575486', 'tblTempUsageDetail_20' ) start [2025-02-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575486', 'tblTempUsageDetail_20' ) end [2025-02-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575486', 'tblTempVendorCDR_20' ) start [2025-02-28 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575486', 'tblTempVendorCDR_20' ) end [2025-02-28 09:19:18] Production.INFO: ProcessCDR(1,14575486,1,1,2) [2025-02-28 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575486', 'tblTempUsageDetail_20' ) start [2025-02-28 09:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575486', 'tblTempUsageDetail_20' ) end [2025-02-28 09:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:19:24] Production.INFO: ==906== Releasing lock... [2025-02-28 09:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:19:24] Production.INFO: 37 MB #Memory Used# [2025-02-28 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:20:07 [end_date_ymd] => 2025-02-28 09:20:07 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:20:07' and `end` < '2025-02-28 09: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-02-28 09:20:19] Production.INFO: count ==1210 [2025-02-28 09:20:20] Production.ERROR: pbx CDR StartTime 2025-02-28 06:20:07 - End Time 2025-02-28 09:20:07 [2025-02-28 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575491', 'tblTempUsageDetail_20' ) start [2025-02-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575491', 'tblTempUsageDetail_20' ) end [2025-02-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575491', 'tblTempVendorCDR_20' ) start [2025-02-28 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575491', 'tblTempVendorCDR_20' ) end [2025-02-28 09:20:20] Production.INFO: ProcessCDR(1,14575491,1,1,2) [2025-02-28 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575491', 'tblTempUsageDetail_20' ) start [2025-02-28 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575491', 'tblTempUsageDetail_20' ) end [2025-02-28 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:20:25] Production.INFO: ==989== Releasing lock... [2025-02-28 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:20:25] Production.INFO: 37.25 MB #Memory Used# [2025-02-28 09:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:21:06 [end_date_ymd] => 2025-02-28 09:21:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:21:06' and `end` < '2025-02-28 09: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-02-28 09:21:18] Production.INFO: count ==1320 [2025-02-28 09:21:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:21:06 - End Time 2025-02-28 09:21:06 [2025-02-28 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575497', 'tblTempUsageDetail_20' ) start [2025-02-28 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575497', 'tblTempUsageDetail_20' ) end [2025-02-28 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575497', 'tblTempVendorCDR_20' ) start [2025-02-28 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575497', 'tblTempVendorCDR_20' ) end [2025-02-28 09:21:19] Production.INFO: ProcessCDR(1,14575497,1,1,2) [2025-02-28 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575497', 'tblTempUsageDetail_20' ) start [2025-02-28 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575497', 'tblTempUsageDetail_20' ) end [2025-02-28 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:21:24] Production.INFO: ==1060== Releasing lock... [2025-02-28 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:21:24] Production.INFO: 38 MB #Memory Used# [2025-02-28 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:22:05 [end_date_ymd] => 2025-02-28 09:22:05 [RateCDR] => 1 ) [2025-02-28 09:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:22:05' and `end` < '2025-02-28 09:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:22:17] Production.INFO: count ==1331 [2025-02-28 09:22:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:22:05 - End Time 2025-02-28 09:22:05 [2025-02-28 09:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575502', 'tblTempUsageDetail_20' ) start [2025-02-28 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575502', 'tblTempUsageDetail_20' ) end [2025-02-28 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575502', 'tblTempVendorCDR_20' ) start [2025-02-28 09:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575502', 'tblTempVendorCDR_20' ) end [2025-02-28 09:22:18] Production.INFO: ProcessCDR(1,14575502,1,1,2) [2025-02-28 09:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575502', 'tblTempUsageDetail_20' ) start [2025-02-28 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575502', 'tblTempUsageDetail_20' ) end [2025-02-28 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:22:24] Production.INFO: ==1129== Releasing lock... [2025-02-28 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:22:24] Production.INFO: 38 MB #Memory Used# [2025-02-28 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:23:06 [end_date_ymd] => 2025-02-28 09:23:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:23:06' and `end` < '2025-02-28 09: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-02-28 09:23:18] Production.INFO: count ==1356 [2025-02-28 09:23:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:23:06 - End Time 2025-02-28 09:23:06 [2025-02-28 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575507', 'tblTempUsageDetail_20' ) start [2025-02-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575507', 'tblTempUsageDetail_20' ) end [2025-02-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575507', 'tblTempVendorCDR_20' ) start [2025-02-28 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575507', 'tblTempVendorCDR_20' ) end [2025-02-28 09:23:19] Production.INFO: ProcessCDR(1,14575507,1,1,2) [2025-02-28 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575507', 'tblTempUsageDetail_20' ) start [2025-02-28 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575507', 'tblTempUsageDetail_20' ) end [2025-02-28 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:23:24] Production.INFO: ==1210== Releasing lock... [2025-02-28 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:23:24] Production.INFO: 38.25 MB #Memory Used# [2025-02-28 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:24:05 [end_date_ymd] => 2025-02-28 09:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:24:05' and `end` < '2025-02-28 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-02-28 09:24:17] Production.INFO: count ==1362 [2025-02-28 09:24:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:24:05 - End Time 2025-02-28 09:24:05 [2025-02-28 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575512', 'tblTempUsageDetail_20' ) start [2025-02-28 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575512', 'tblTempUsageDetail_20' ) end [2025-02-28 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575512', 'tblTempVendorCDR_20' ) start [2025-02-28 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575512', 'tblTempVendorCDR_20' ) end [2025-02-28 09:24:18] Production.INFO: ProcessCDR(1,14575512,1,1,2) [2025-02-28 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575512', 'tblTempUsageDetail_20' ) start [2025-02-28 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575512', 'tblTempUsageDetail_20' ) end [2025-02-28 09:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:24:23] Production.INFO: ==1296== Releasing lock... [2025-02-28 09:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:24:23] Production.INFO: 38.25 MB #Memory Used# [2025-02-28 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:25:06 [end_date_ymd] => 2025-02-28 09:25:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:25:06' and `end` < '2025-02-28 09: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-02-28 09:25:18] Production.INFO: count ==1387 [2025-02-28 09:25:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:25:06 - End Time 2025-02-28 09:25:06 [2025-02-28 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575517', 'tblTempUsageDetail_20' ) start [2025-02-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575517', 'tblTempUsageDetail_20' ) end [2025-02-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575517', 'tblTempVendorCDR_20' ) start [2025-02-28 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575517', 'tblTempVendorCDR_20' ) end [2025-02-28 09:25:19] Production.INFO: ProcessCDR(1,14575517,1,1,2) [2025-02-28 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575517', 'tblTempUsageDetail_20' ) start [2025-02-28 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575517', 'tblTempUsageDetail_20' ) end [2025-02-28 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:25:24] Production.INFO: ==1371== Releasing lock... [2025-02-28 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:25:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-28 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:26:05 [end_date_ymd] => 2025-02-28 09:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:26:05' and `end` < '2025-02-28 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-02-28 09:26:18] Production.INFO: count ==1388 [2025-02-28 09:26:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:26:05 - End Time 2025-02-28 09:26:05 [2025-02-28 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575522', 'tblTempUsageDetail_20' ) start [2025-02-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575522', 'tblTempUsageDetail_20' ) end [2025-02-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575522', 'tblTempVendorCDR_20' ) start [2025-02-28 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575522', 'tblTempVendorCDR_20' ) end [2025-02-28 09:26:18] Production.INFO: ProcessCDR(1,14575522,1,1,2) [2025-02-28 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575522', 'tblTempUsageDetail_20' ) start [2025-02-28 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575522', 'tblTempUsageDetail_20' ) end [2025-02-28 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:26:24] Production.INFO: ==1445== Releasing lock... [2025-02-28 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:26:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-28 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:27:06 [end_date_ymd] => 2025-02-28 09:27:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:27:06' and `end` < '2025-02-28 09: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-02-28 09:27:18] Production.INFO: count ==1391 [2025-02-28 09:27:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:27:06 - End Time 2025-02-28 09:27:06 [2025-02-28 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575527', 'tblTempUsageDetail_20' ) start [2025-02-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575527', 'tblTempUsageDetail_20' ) end [2025-02-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575527', 'tblTempVendorCDR_20' ) start [2025-02-28 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575527', 'tblTempVendorCDR_20' ) end [2025-02-28 09:27:19] Production.INFO: ProcessCDR(1,14575527,1,1,2) [2025-02-28 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575527', 'tblTempUsageDetail_20' ) start [2025-02-28 09:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575527', 'tblTempUsageDetail_20' ) end [2025-02-28 09:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:27:24] Production.INFO: ==1559== Releasing lock... [2025-02-28 09:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:27:24] Production.INFO: 38.5 MB #Memory Used# [2025-02-28 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:28:05 [end_date_ymd] => 2025-02-28 09:28:05 [RateCDR] => 1 ) [2025-02-28 09:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:28:05' and `end` < '2025-02-28 09:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:28:17] Production.INFO: count ==1408 [2025-02-28 09:28:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:28:05 - End Time 2025-02-28 09:28:05 [2025-02-28 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575532', 'tblTempUsageDetail_20' ) start [2025-02-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575532', 'tblTempUsageDetail_20' ) end [2025-02-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575532', 'tblTempVendorCDR_20' ) start [2025-02-28 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575532', 'tblTempVendorCDR_20' ) end [2025-02-28 09:28:18] Production.INFO: ProcessCDR(1,14575532,1,1,2) [2025-02-28 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575532', 'tblTempUsageDetail_20' ) start [2025-02-28 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575532', 'tblTempUsageDetail_20' ) end [2025-02-28 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:28:24] Production.INFO: ==1637== Releasing lock... [2025-02-28 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:28:24] Production.INFO: 39 MB #Memory Used# [2025-02-28 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:29:06 [end_date_ymd] => 2025-02-28 09:29:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:29:06' and `end` < '2025-02-28 09: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-02-28 09:29:18] Production.INFO: count ==1420 [2025-02-28 09:29:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:29:06 - End Time 2025-02-28 09:29:06 [2025-02-28 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575537', 'tblTempUsageDetail_20' ) start [2025-02-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575537', 'tblTempUsageDetail_20' ) end [2025-02-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575537', 'tblTempVendorCDR_20' ) start [2025-02-28 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575537', 'tblTempVendorCDR_20' ) end [2025-02-28 09:29:19] Production.INFO: ProcessCDR(1,14575537,1,1,2) [2025-02-28 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575537', 'tblTempUsageDetail_20' ) start [2025-02-28 09:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575537', 'tblTempUsageDetail_20' ) end [2025-02-28 09:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:29:24] Production.INFO: ==1751== Releasing lock... [2025-02-28 09:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:29:24] Production.INFO: 38.75 MB #Memory Used# [2025-02-28 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:30:06 [end_date_ymd] => 2025-02-28 09:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:30:06' and `end` < '2025-02-28 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-02-28 09:30:18] Production.INFO: count ==1444 [2025-02-28 09:30:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:30:06 - End Time 2025-02-28 09:30:06 [2025-02-28 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575543', 'tblTempUsageDetail_20' ) start [2025-02-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575543', 'tblTempUsageDetail_20' ) end [2025-02-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575543', 'tblTempVendorCDR_20' ) start [2025-02-28 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575543', 'tblTempVendorCDR_20' ) end [2025-02-28 09:30:19] Production.INFO: ProcessCDR(1,14575543,1,1,2) [2025-02-28 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575543', 'tblTempUsageDetail_20' ) start [2025-02-28 09:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575543', 'tblTempUsageDetail_20' ) end [2025-02-28 09:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:30:24] Production.INFO: ==1833== Releasing lock... [2025-02-28 09:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:30:24] Production.INFO: 39 MB #Memory Used# [2025-02-28 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:31:06 [end_date_ymd] => 2025-02-28 09:31:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:31:06' and `end` < '2025-02-28 09: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-02-28 09:31:18] Production.INFO: count ==1532 [2025-02-28 09:31:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:31:06 - End Time 2025-02-28 09:31:06 [2025-02-28 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575548', 'tblTempUsageDetail_20' ) start [2025-02-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575548', 'tblTempUsageDetail_20' ) end [2025-02-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575548', 'tblTempVendorCDR_20' ) start [2025-02-28 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575548', 'tblTempVendorCDR_20' ) end [2025-02-28 09:31:19] Production.INFO: ProcessCDR(1,14575548,1,1,2) [2025-02-28 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575548', 'tblTempUsageDetail_20' ) start [2025-02-28 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575548', 'tblTempUsageDetail_20' ) end [2025-02-28 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:31:25] Production.INFO: ==1912== Releasing lock... [2025-02-28 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:31:25] Production.INFO: 39.75 MB #Memory Used# [2025-02-28 09:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:32:06 [end_date_ymd] => 2025-02-28 09:32:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:32:06' and `end` < '2025-02-28 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-02-28 09:32:18] Production.INFO: count ==1539 [2025-02-28 09:32:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:32:06 - End Time 2025-02-28 09:32:06 [2025-02-28 09:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575553', 'tblTempUsageDetail_20' ) start [2025-02-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575553', 'tblTempUsageDetail_20' ) end [2025-02-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575553', 'tblTempVendorCDR_20' ) start [2025-02-28 09:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575553', 'tblTempVendorCDR_20' ) end [2025-02-28 09:32:19] Production.INFO: ProcessCDR(1,14575553,1,1,2) [2025-02-28 09:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575553', 'tblTempUsageDetail_20' ) start [2025-02-28 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575553', 'tblTempUsageDetail_20' ) end [2025-02-28 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:32:24] Production.INFO: ==1988== Releasing lock... [2025-02-28 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:32:24] Production.INFO: 39.75 MB #Memory Used# [2025-02-28 09:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:33:06 [end_date_ymd] => 2025-02-28 09:33:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:33:06' and `end` < '2025-02-28 09: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-02-28 09:33:18] Production.INFO: count ==1555 [2025-02-28 09:33:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:33:06 - End Time 2025-02-28 09:33:06 [2025-02-28 09:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575558', 'tblTempUsageDetail_20' ) start [2025-02-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575558', 'tblTempUsageDetail_20' ) end [2025-02-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575558', 'tblTempVendorCDR_20' ) start [2025-02-28 09:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575558', 'tblTempVendorCDR_20' ) end [2025-02-28 09:33:19] Production.INFO: ProcessCDR(1,14575558,1,1,2) [2025-02-28 09:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575558', 'tblTempUsageDetail_20' ) start [2025-02-28 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575558', 'tblTempUsageDetail_20' ) end [2025-02-28 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:33:24] Production.INFO: ==2067== Releasing lock... [2025-02-28 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:33:24] Production.INFO: 40 MB #Memory Used# [2025-02-28 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:34:05 [end_date_ymd] => 2025-02-28 09:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:34:05' and `end` < '2025-02-28 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-02-28 09:34:17] Production.INFO: count ==1561 [2025-02-28 09:34:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:34:05 - End Time 2025-02-28 09:34:05 [2025-02-28 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575563', 'tblTempUsageDetail_20' ) start [2025-02-28 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575563', 'tblTempUsageDetail_20' ) end [2025-02-28 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575563', 'tblTempVendorCDR_20' ) start [2025-02-28 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575563', 'tblTempVendorCDR_20' ) end [2025-02-28 09:34:18] Production.INFO: ProcessCDR(1,14575563,1,1,2) [2025-02-28 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575563', 'tblTempUsageDetail_20' ) start [2025-02-28 09:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575563', 'tblTempUsageDetail_20' ) end [2025-02-28 09:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:34:23] Production.INFO: ==2142== Releasing lock... [2025-02-28 09:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-02-28 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:35:05 [end_date_ymd] => 2025-02-28 09:35:05 [RateCDR] => 1 ) [2025-02-28 09:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:35:05' and `end` < '2025-02-28 09:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:35:18] Production.INFO: count ==1573 [2025-02-28 09:35:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:35:05 - End Time 2025-02-28 09:35:05 [2025-02-28 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575568', 'tblTempUsageDetail_20' ) start [2025-02-28 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575568', 'tblTempUsageDetail_20' ) end [2025-02-28 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575568', 'tblTempVendorCDR_20' ) start [2025-02-28 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575568', 'tblTempVendorCDR_20' ) end [2025-02-28 09:35:19] Production.INFO: ProcessCDR(1,14575568,1,1,2) [2025-02-28 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575568', 'tblTempUsageDetail_20' ) start [2025-02-28 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575568', 'tblTempUsageDetail_20' ) end [2025-02-28 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:35:24] Production.INFO: ==2215== Releasing lock... [2025-02-28 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:35:24] Production.INFO: 40 MB #Memory Used# [2025-02-28 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:36:05 [end_date_ymd] => 2025-02-28 09:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:36:05' and `end` < '2025-02-28 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-02-28 09:36:18] Production.INFO: count ==1581 [2025-02-28 09:36:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:36:05 - End Time 2025-02-28 09:36:05 [2025-02-28 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575573', 'tblTempUsageDetail_20' ) start [2025-02-28 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575573', 'tblTempUsageDetail_20' ) end [2025-02-28 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575573', 'tblTempVendorCDR_20' ) start [2025-02-28 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575573', 'tblTempVendorCDR_20' ) end [2025-02-28 09:36:18] Production.INFO: ProcessCDR(1,14575573,1,1,2) [2025-02-28 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575573', 'tblTempUsageDetail_20' ) start [2025-02-28 09:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575573', 'tblTempUsageDetail_20' ) end [2025-02-28 09:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:36:24] Production.INFO: ==2291== Releasing lock... [2025-02-28 09:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:36:24] Production.INFO: 40 MB #Memory Used# [2025-02-28 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:37:06 [end_date_ymd] => 2025-02-28 09:37:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:37:06' and `end` < '2025-02-28 09: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-02-28 09:37:18] Production.INFO: count ==1586 [2025-02-28 09:37:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:37:06 - End Time 2025-02-28 09:37:06 [2025-02-28 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575578', 'tblTempUsageDetail_20' ) start [2025-02-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575578', 'tblTempUsageDetail_20' ) end [2025-02-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575578', 'tblTempVendorCDR_20' ) start [2025-02-28 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575578', 'tblTempVendorCDR_20' ) end [2025-02-28 09:37:19] Production.INFO: ProcessCDR(1,14575578,1,1,2) [2025-02-28 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575578', 'tblTempUsageDetail_20' ) start [2025-02-28 09:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575578', 'tblTempUsageDetail_20' ) end [2025-02-28 09:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:37:24] Production.INFO: ==2367== Releasing lock... [2025-02-28 09:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:37:24] Production.INFO: 40 MB #Memory Used# [2025-02-28 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:38:05 [end_date_ymd] => 2025-02-28 09:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:38:05' and `end` < '2025-02-28 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-02-28 09:38:17] Production.INFO: count ==1598 [2025-02-28 09:38:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:38:05 - End Time 2025-02-28 09:38:05 [2025-02-28 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575583', 'tblTempUsageDetail_20' ) start [2025-02-28 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575583', 'tblTempUsageDetail_20' ) end [2025-02-28 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575583', 'tblTempVendorCDR_20' ) start [2025-02-28 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575583', 'tblTempVendorCDR_20' ) end [2025-02-28 09:38:18] Production.INFO: ProcessCDR(1,14575583,1,1,2) [2025-02-28 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575583', 'tblTempUsageDetail_20' ) start [2025-02-28 09:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575583', 'tblTempUsageDetail_20' ) end [2025-02-28 09:38:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:38:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:38:23] Production.INFO: ==2442== Releasing lock... [2025-02-28 09:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:38:23] Production.INFO: 40 MB #Memory Used# [2025-02-28 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:39:06 [end_date_ymd] => 2025-02-28 09:39:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:39:06' and `end` < '2025-02-28 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-02-28 09:39:18] Production.INFO: count ==1623 [2025-02-28 09:39:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:39:06 - End Time 2025-02-28 09:39:06 [2025-02-28 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575588', 'tblTempUsageDetail_20' ) start [2025-02-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575588', 'tblTempUsageDetail_20' ) end [2025-02-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575588', 'tblTempVendorCDR_20' ) start [2025-02-28 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575588', 'tblTempVendorCDR_20' ) end [2025-02-28 09:39:19] Production.INFO: ProcessCDR(1,14575588,1,1,2) [2025-02-28 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575588', 'tblTempUsageDetail_20' ) start [2025-02-28 09:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575588', 'tblTempUsageDetail_20' ) end [2025-02-28 09:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:39:24] Production.INFO: ==2516== Releasing lock... [2025-02-28 09:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:39:24] Production.INFO: 40.25 MB #Memory Used# [2025-02-28 09:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:40:07 [end_date_ymd] => 2025-02-28 09:40:07 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:40:07' and `end` < '2025-02-28 09: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-02-28 09:40:19] Production.INFO: count ==1630 [2025-02-28 09:40:20] Production.ERROR: pbx CDR StartTime 2025-02-28 06:40:07 - End Time 2025-02-28 09:40:07 [2025-02-28 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575594', 'tblTempUsageDetail_20' ) start [2025-02-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575594', 'tblTempUsageDetail_20' ) end [2025-02-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575594', 'tblTempVendorCDR_20' ) start [2025-02-28 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575594', 'tblTempVendorCDR_20' ) end [2025-02-28 09:40:20] Production.INFO: ProcessCDR(1,14575594,1,1,2) [2025-02-28 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575594', 'tblTempUsageDetail_20' ) start [2025-02-28 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575594', 'tblTempUsageDetail_20' ) end [2025-02-28 09:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:40:25] Production.INFO: ==2592== Releasing lock... [2025-02-28 09:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:40:25] Production.INFO: 40.25 MB #Memory Used# [2025-02-28 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:41:05 [end_date_ymd] => 2025-02-28 09:41:05 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:41:05' and `end` < '2025-02-28 09: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-02-28 09:41:17] Production.INFO: count ==1715 [2025-02-28 09:41:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:41:05 - End Time 2025-02-28 09:41:05 [2025-02-28 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575599', 'tblTempUsageDetail_20' ) start [2025-02-28 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575599', 'tblTempUsageDetail_20' ) end [2025-02-28 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575599', 'tblTempVendorCDR_20' ) start [2025-02-28 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575599', 'tblTempVendorCDR_20' ) end [2025-02-28 09:41:18] Production.INFO: ProcessCDR(1,14575599,1,1,2) [2025-02-28 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575599', 'tblTempUsageDetail_20' ) start [2025-02-28 09:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575599', 'tblTempUsageDetail_20' ) end [2025-02-28 09:41:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:41:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:41:23] Production.INFO: ==2668== Releasing lock... [2025-02-28 09:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:41:23] Production.INFO: 41 MB #Memory Used# [2025-02-28 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:42:06 [end_date_ymd] => 2025-02-28 09:42:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:42:06' and `end` < '2025-02-28 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-02-28 09:42:18] Production.INFO: count ==1724 [2025-02-28 09:42:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:42:06 - End Time 2025-02-28 09:42:06 [2025-02-28 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575604', 'tblTempUsageDetail_20' ) start [2025-02-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575604', 'tblTempUsageDetail_20' ) end [2025-02-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575604', 'tblTempVendorCDR_20' ) start [2025-02-28 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575604', 'tblTempVendorCDR_20' ) end [2025-02-28 09:42:19] Production.INFO: ProcessCDR(1,14575604,1,1,2) [2025-02-28 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575604', 'tblTempUsageDetail_20' ) start [2025-02-28 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575604', 'tblTempUsageDetail_20' ) end [2025-02-28 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:42:24] Production.INFO: ==2744== Releasing lock... [2025-02-28 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:42:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:43:05 [end_date_ymd] => 2025-02-28 09:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:43:05' and `end` < '2025-02-28 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-02-28 09:43:18] Production.INFO: count ==1748 [2025-02-28 09:43:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:43:05 - End Time 2025-02-28 09:43:05 [2025-02-28 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575609', 'tblTempUsageDetail_20' ) start [2025-02-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575609', 'tblTempUsageDetail_20' ) end [2025-02-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575609', 'tblTempVendorCDR_20' ) start [2025-02-28 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575609', 'tblTempVendorCDR_20' ) end [2025-02-28 09:43:18] Production.INFO: ProcessCDR(1,14575609,1,1,2) [2025-02-28 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575609', 'tblTempUsageDetail_20' ) start [2025-02-28 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575609', 'tblTempUsageDetail_20' ) end [2025-02-28 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:43:24] Production.INFO: ==2819== Releasing lock... [2025-02-28 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 09:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:44:06 [end_date_ymd] => 2025-02-28 09:44:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:44:06' and `end` < '2025-02-28 09: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-02-28 09:44:18] Production.INFO: count ==1759 [2025-02-28 09:44:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:44:06 - End Time 2025-02-28 09:44:06 [2025-02-28 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575614', 'tblTempUsageDetail_20' ) start [2025-02-28 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575614', 'tblTempUsageDetail_20' ) end [2025-02-28 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575614', 'tblTempVendorCDR_20' ) start [2025-02-28 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575614', 'tblTempVendorCDR_20' ) end [2025-02-28 09:44:19] Production.INFO: ProcessCDR(1,14575614,1,1,2) [2025-02-28 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575614', 'tblTempUsageDetail_20' ) start [2025-02-28 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575614', 'tblTempUsageDetail_20' ) end [2025-02-28 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:44:22] Production.INFO: ==2936== Releasing lock... [2025-02-28 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:44:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:45:05 [end_date_ymd] => 2025-02-28 09:45:05 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:45:05' and `end` < '2025-02-28 09: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-02-28 09:45:18] Production.INFO: count ==1768 [2025-02-28 09:45:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:45:05 - End Time 2025-02-28 09:45:05 [2025-02-28 09:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575619', 'tblTempUsageDetail_20' ) start [2025-02-28 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575619', 'tblTempUsageDetail_20' ) end [2025-02-28 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575619', 'tblTempVendorCDR_20' ) start [2025-02-28 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575619', 'tblTempVendorCDR_20' ) end [2025-02-28 09:45:19] Production.INFO: ProcessCDR(1,14575619,1,1,2) [2025-02-28 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575619', 'tblTempUsageDetail_20' ) start [2025-02-28 09:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575619', 'tblTempUsageDetail_20' ) end [2025-02-28 09:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:45:24] Production.INFO: ==3009== Releasing lock... [2025-02-28 09:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:45:24] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:46:05 [end_date_ymd] => 2025-02-28 09:46:05 [RateCDR] => 1 ) [2025-02-28 09:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 06:46:05' and `end` < '2025-02-28 09:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 09:46:18] Production.INFO: count ==1778 [2025-02-28 09:46:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:46:05 - End Time 2025-02-28 09:46:05 [2025-02-28 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575624', 'tblTempUsageDetail_20' ) start [2025-02-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575624', 'tblTempUsageDetail_20' ) end [2025-02-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575624', 'tblTempVendorCDR_20' ) start [2025-02-28 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575624', 'tblTempVendorCDR_20' ) end [2025-02-28 09:46:19] Production.INFO: ProcessCDR(1,14575624,1,1,2) [2025-02-28 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575624', 'tblTempUsageDetail_20' ) start [2025-02-28 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575624', 'tblTempUsageDetail_20' ) end [2025-02-28 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:46:24] Production.INFO: ==3092== Releasing lock... [2025-02-28 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:46:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-28 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:47:05 [end_date_ymd] => 2025-02-28 09:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:47:05' and `end` < '2025-02-28 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-02-28 09:47:17] Production.INFO: count ==1784 [2025-02-28 09:47:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:47:05 - End Time 2025-02-28 09:47:05 [2025-02-28 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575629', 'tblTempUsageDetail_20' ) start [2025-02-28 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575629', 'tblTempUsageDetail_20' ) end [2025-02-28 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575629', 'tblTempVendorCDR_20' ) start [2025-02-28 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575629', 'tblTempVendorCDR_20' ) end [2025-02-28 09:47:18] Production.INFO: ProcessCDR(1,14575629,1,1,2) [2025-02-28 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575629', 'tblTempUsageDetail_20' ) start [2025-02-28 09:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575629', 'tblTempUsageDetail_20' ) end [2025-02-28 09:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:47:24] Production.INFO: ==3173== Releasing lock... [2025-02-28 09:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:47:24] Production.INFO: 41.75 MB #Memory Used# [2025-02-28 09:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:48:06 [end_date_ymd] => 2025-02-28 09:48:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:48:06' and `end` < '2025-02-28 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-02-28 09:48:18] Production.INFO: count ==1784 [2025-02-28 09:48:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:48:06 - End Time 2025-02-28 09:48:06 [2025-02-28 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575634', 'tblTempUsageDetail_20' ) start [2025-02-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575634', 'tblTempUsageDetail_20' ) end [2025-02-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575634', 'tblTempVendorCDR_20' ) start [2025-02-28 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575634', 'tblTempVendorCDR_20' ) end [2025-02-28 09:48:19] Production.INFO: ProcessCDR(1,14575634,1,1,2) [2025-02-28 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575634', 'tblTempUsageDetail_20' ) start [2025-02-28 09:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575634', 'tblTempUsageDetail_20' ) end [2025-02-28 09:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:48:24] Production.INFO: ==3249== Releasing lock... [2025-02-28 09:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:48:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-28 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:49:05 [end_date_ymd] => 2025-02-28 09:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:49:05' and `end` < '2025-02-28 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-02-28 09:49:18] Production.INFO: count ==1789 [2025-02-28 09:49:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:49:05 - End Time 2025-02-28 09:49:05 [2025-02-28 09:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575639', 'tblTempUsageDetail_20' ) start [2025-02-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575639', 'tblTempUsageDetail_20' ) end [2025-02-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575639', 'tblTempVendorCDR_20' ) start [2025-02-28 09:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575639', 'tblTempVendorCDR_20' ) end [2025-02-28 09:49:18] Production.INFO: ProcessCDR(1,14575639,1,1,2) [2025-02-28 09:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575639', 'tblTempUsageDetail_20' ) start [2025-02-28 09:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575639', 'tblTempUsageDetail_20' ) end [2025-02-28 09:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:49:24] Production.INFO: ==3327== Releasing lock... [2025-02-28 09:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:49:24] Production.INFO: 41.5 MB #Memory Used# [2025-02-28 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:50:06 [end_date_ymd] => 2025-02-28 09:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:50:06' and `end` < '2025-02-28 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-02-28 09:50:18] Production.INFO: count ==1803 [2025-02-28 09:50:20] Production.ERROR: pbx CDR StartTime 2025-02-28 06:50:06 - End Time 2025-02-28 09:50:06 [2025-02-28 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575645', 'tblTempUsageDetail_20' ) start [2025-02-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575645', 'tblTempUsageDetail_20' ) end [2025-02-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575645', 'tblTempVendorCDR_20' ) start [2025-02-28 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575645', 'tblTempVendorCDR_20' ) end [2025-02-28 09:50:20] Production.INFO: ProcessCDR(1,14575645,1,1,2) [2025-02-28 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575645', 'tblTempUsageDetail_20' ) start [2025-02-28 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575645', 'tblTempUsageDetail_20' ) end [2025-02-28 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:50:26] Production.INFO: ==3401== Releasing lock... [2025-02-28 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:50:26] Production.INFO: 41.5 MB #Memory Used# [2025-02-28 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:51:05 [end_date_ymd] => 2025-02-28 09:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:51:05' and `end` < '2025-02-28 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-02-28 09:51:17] Production.INFO: count ==1895 [2025-02-28 09:51:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:51:05 - End Time 2025-02-28 09:51:05 [2025-02-28 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575650', 'tblTempUsageDetail_20' ) start [2025-02-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575650', 'tblTempUsageDetail_20' ) end [2025-02-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575650', 'tblTempVendorCDR_20' ) start [2025-02-28 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575650', 'tblTempVendorCDR_20' ) end [2025-02-28 09:51:18] Production.INFO: ProcessCDR(1,14575650,1,1,2) [2025-02-28 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575650', 'tblTempUsageDetail_20' ) start [2025-02-28 09:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575650', 'tblTempUsageDetail_20' ) end [2025-02-28 09:51:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:51:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:51:24] Production.INFO: ==3474== Releasing lock... [2025-02-28 09:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:51:24] Production.INFO: 42.5 MB #Memory Used# [2025-02-28 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:52:06 [end_date_ymd] => 2025-02-28 09:52:06 [RateCDR] => 1 ) [2025-02-28 09: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-02-28 06:52:06' and `end` < '2025-02-28 09: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-02-28 09:52:19] Production.INFO: count ==1918 [2025-02-28 09:52:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:52:06 - End Time 2025-02-28 09:52:06 [2025-02-28 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575655', 'tblTempUsageDetail_20' ) start [2025-02-28 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575655', 'tblTempUsageDetail_20' ) end [2025-02-28 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575655', 'tblTempVendorCDR_20' ) start [2025-02-28 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575655', 'tblTempVendorCDR_20' ) end [2025-02-28 09:52:19] Production.INFO: ProcessCDR(1,14575655,1,1,2) [2025-02-28 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575655', 'tblTempUsageDetail_20' ) start [2025-02-28 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575655', 'tblTempUsageDetail_20' ) end [2025-02-28 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:52:25] Production.INFO: ==3550== Releasing lock... [2025-02-28 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:52:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:53:05 [end_date_ymd] => 2025-02-28 09:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:53:05' and `end` < '2025-02-28 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-02-28 09:53:18] Production.INFO: count ==1939 [2025-02-28 09:53:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:53:05 - End Time 2025-02-28 09:53:05 [2025-02-28 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575660', 'tblTempUsageDetail_20' ) start [2025-02-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575660', 'tblTempUsageDetail_20' ) end [2025-02-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575660', 'tblTempVendorCDR_20' ) start [2025-02-28 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575660', 'tblTempVendorCDR_20' ) end [2025-02-28 09:53:18] Production.INFO: ProcessCDR(1,14575660,1,1,2) [2025-02-28 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575660', 'tblTempUsageDetail_20' ) start [2025-02-28 09:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575660', 'tblTempUsageDetail_20' ) end [2025-02-28 09:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:53:24] Production.INFO: ==3629== Releasing lock... [2025-02-28 09:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:53:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 09:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:54:06 [end_date_ymd] => 2025-02-28 09:54:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:54:06' and `end` < '2025-02-28 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-02-28 09:54:18] Production.INFO: count ==1951 [2025-02-28 09:54:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:54:06 - End Time 2025-02-28 09:54:06 [2025-02-28 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575665', 'tblTempUsageDetail_20' ) start [2025-02-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575665', 'tblTempUsageDetail_20' ) end [2025-02-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575665', 'tblTempVendorCDR_20' ) start [2025-02-28 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575665', 'tblTempVendorCDR_20' ) end [2025-02-28 09:54:19] Production.INFO: ProcessCDR(1,14575665,1,1,2) [2025-02-28 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575665', 'tblTempUsageDetail_20' ) start [2025-02-28 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575665', 'tblTempUsageDetail_20' ) end [2025-02-28 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:54:25] Production.INFO: ==3704== Releasing lock... [2025-02-28 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:54:25] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:55:05 [end_date_ymd] => 2025-02-28 09:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:55:05' and `end` < '2025-02-28 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-02-28 09:55:18] Production.INFO: count ==1954 [2025-02-28 09:55:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:55:05 - End Time 2025-02-28 09:55:05 [2025-02-28 09:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575670', 'tblTempUsageDetail_20' ) start [2025-02-28 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575670', 'tblTempUsageDetail_20' ) end [2025-02-28 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575670', 'tblTempVendorCDR_20' ) start [2025-02-28 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575670', 'tblTempVendorCDR_20' ) end [2025-02-28 09:55:19] Production.INFO: ProcessCDR(1,14575670,1,1,2) [2025-02-28 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575670', 'tblTempUsageDetail_20' ) start [2025-02-28 09:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575670', 'tblTempUsageDetail_20' ) end [2025-02-28 09:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:55:24] Production.INFO: ==3779== Releasing lock... [2025-02-28 09:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:55:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:56:05 [end_date_ymd] => 2025-02-28 09:56:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:56:05' and `end` < '2025-02-28 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-02-28 09:56:17] Production.INFO: count ==1964 [2025-02-28 09:56:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:56:05 - End Time 2025-02-28 09:56:05 [2025-02-28 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575675', 'tblTempUsageDetail_20' ) start [2025-02-28 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575675', 'tblTempUsageDetail_20' ) end [2025-02-28 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575675', 'tblTempVendorCDR_20' ) start [2025-02-28 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575675', 'tblTempVendorCDR_20' ) end [2025-02-28 09:56:18] Production.INFO: ProcessCDR(1,14575675,1,1,2) [2025-02-28 09:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575675', 'tblTempUsageDetail_20' ) start [2025-02-28 09:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575675', 'tblTempUsageDetail_20' ) end [2025-02-28 09:56:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:56:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:56:24] Production.INFO: ==3849== Releasing lock... [2025-02-28 09:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:56:24] Production.INFO: 43 MB #Memory Used# [2025-02-28 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:57:05 [end_date_ymd] => 2025-02-28 09:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:57:05' and `end` < '2025-02-28 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-02-28 09:57:18] Production.INFO: count ==1971 [2025-02-28 09:57:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:57:05 - End Time 2025-02-28 09:57:05 [2025-02-28 09:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575680', 'tblTempUsageDetail_20' ) start [2025-02-28 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575680', 'tblTempUsageDetail_20' ) end [2025-02-28 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575680', 'tblTempVendorCDR_20' ) start [2025-02-28 09:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575680', 'tblTempVendorCDR_20' ) end [2025-02-28 09:57:18] Production.INFO: ProcessCDR(1,14575680,1,1,2) [2025-02-28 09:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575680', 'tblTempUsageDetail_20' ) start [2025-02-28 09:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575680', 'tblTempUsageDetail_20' ) end [2025-02-28 09:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:57:24] Production.INFO: ==3921== Releasing lock... [2025-02-28 09:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:57:24] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:58:05 [end_date_ymd] => 2025-02-28 09:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:58:05' and `end` < '2025-02-28 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-02-28 09:58:17] Production.INFO: count ==1992 [2025-02-28 09:58:18] Production.ERROR: pbx CDR StartTime 2025-02-28 06:58:05 - End Time 2025-02-28 09:58:05 [2025-02-28 09:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575685', 'tblTempUsageDetail_20' ) start [2025-02-28 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575685', 'tblTempUsageDetail_20' ) end [2025-02-28 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575685', 'tblTempVendorCDR_20' ) start [2025-02-28 09:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575685', 'tblTempVendorCDR_20' ) end [2025-02-28 09:58:18] Production.INFO: ProcessCDR(1,14575685,1,1,2) [2025-02-28 09:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575685', 'tblTempUsageDetail_20' ) start [2025-02-28 09:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575685', 'tblTempUsageDetail_20' ) end [2025-02-28 09:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:58:24] Production.INFO: ==3994== Releasing lock... [2025-02-28 09:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:58:24] Production.INFO: 43 MB #Memory Used# [2025-02-28 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 06:59:06 [end_date_ymd] => 2025-02-28 09:59:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 06:59:06' and `end` < '2025-02-28 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-02-28 09:59:18] Production.INFO: count ==2016 [2025-02-28 09:59:19] Production.ERROR: pbx CDR StartTime 2025-02-28 06:59:06 - End Time 2025-02-28 09:59:06 [2025-02-28 09:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575690', 'tblTempUsageDetail_20' ) start [2025-02-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575690', 'tblTempUsageDetail_20' ) end [2025-02-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575690', 'tblTempVendorCDR_20' ) start [2025-02-28 09:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575690', 'tblTempVendorCDR_20' ) end [2025-02-28 09:59:19] Production.INFO: ProcessCDR(1,14575690,1,1,2) [2025-02-28 09:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575690', 'tblTempUsageDetail_20' ) start [2025-02-28 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575690', 'tblTempUsageDetail_20' ) end [2025-02-28 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 09:59:25] Production.INFO: ==4071== Releasing lock... [2025-02-28 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 09:59:25] Production.INFO: 43.5 MB #Memory Used# [2025-02-28 10:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:00:08 [end_date_ymd] => 2025-02-28 10:00:08 [RateCDR] => 1 ) [2025-02-28 10:00:08] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:00:08' and `end` < '2025-02-28 10:00:08' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:00:20] Production.INFO: count ==2033 [2025-02-28 10:00:21] Production.ERROR: pbx CDR StartTime 2025-02-28 07:00:08 - End Time 2025-02-28 10:00:08 [2025-02-28 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575696', 'tblTempUsageDetail_20' ) start [2025-02-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575696', 'tblTempUsageDetail_20' ) end [2025-02-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575696', 'tblTempVendorCDR_20' ) start [2025-02-28 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575696', 'tblTempVendorCDR_20' ) end [2025-02-28 10:00:21] Production.INFO: ProcessCDR(1,14575696,1,1,2) [2025-02-28 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575696', 'tblTempUsageDetail_20' ) start [2025-02-28 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575696', 'tblTempUsageDetail_20' ) end [2025-02-28 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:00:26] Production.INFO: ==4191== Releasing lock... [2025-02-28 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:00:26] Production.INFO: 43.5 MB #Memory Used# [2025-02-28 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:01:05 [end_date_ymd] => 2025-02-28 10:01:05 [RateCDR] => 1 ) [2025-02-28 10:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:01:05' and `end` < '2025-02-28 10:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:01:18] Production.INFO: count ==2135 [2025-02-28 10:01:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:01:05 - End Time 2025-02-28 10:01:05 [2025-02-28 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575701', 'tblTempUsageDetail_20' ) start [2025-02-28 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575701', 'tblTempUsageDetail_20' ) end [2025-02-28 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575701', 'tblTempVendorCDR_20' ) start [2025-02-28 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575701', 'tblTempVendorCDR_20' ) end [2025-02-28 10:01:19] Production.INFO: ProcessCDR(1,14575701,1,1,2) [2025-02-28 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575701', 'tblTempUsageDetail_20' ) start [2025-02-28 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575701', 'tblTempUsageDetail_20' ) end [2025-02-28 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:01:24] Production.INFO: ==4282== Releasing lock... [2025-02-28 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:01:24] Production.INFO: 44 MB #Memory Used# [2025-02-28 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:02:05 [end_date_ymd] => 2025-02-28 10:02:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:02:05' and `end` < '2025-02-28 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-02-28 10:02:18] Production.INFO: count ==2158 [2025-02-28 10:02:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:02:05 - End Time 2025-02-28 10:02:05 [2025-02-28 10:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575706', 'tblTempUsageDetail_20' ) start [2025-02-28 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575706', 'tblTempUsageDetail_20' ) end [2025-02-28 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575706', 'tblTempVendorCDR_20' ) start [2025-02-28 10:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575706', 'tblTempVendorCDR_20' ) end [2025-02-28 10:02:19] Production.INFO: ProcessCDR(1,14575706,1,1,2) [2025-02-28 10:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575706', 'tblTempUsageDetail_20' ) start [2025-02-28 10:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575706', 'tblTempUsageDetail_20' ) end [2025-02-28 10:02:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:02:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:02:24] Production.INFO: ==4356== Releasing lock... [2025-02-28 10:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:02:24] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 10:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:03:06 [end_date_ymd] => 2025-02-28 10:03:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:03:06' and `end` < '2025-02-28 10: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-02-28 10:03:18] Production.INFO: count ==2183 [2025-02-28 10:03:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:03:06 - End Time 2025-02-28 10:03:06 [2025-02-28 10:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575711', 'tblTempUsageDetail_20' ) start [2025-02-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575711', 'tblTempUsageDetail_20' ) end [2025-02-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575711', 'tblTempVendorCDR_20' ) start [2025-02-28 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575711', 'tblTempVendorCDR_20' ) end [2025-02-28 10:03:19] Production.INFO: ProcessCDR(1,14575711,1,1,2) [2025-02-28 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575711', 'tblTempUsageDetail_20' ) start [2025-02-28 10:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575711', 'tblTempUsageDetail_20' ) end [2025-02-28 10:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:03:25] Production.INFO: ==4427== Releasing lock... [2025-02-28 10:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:03:25] Production.INFO: 44.5 MB #Memory Used# [2025-02-28 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:04:06 [end_date_ymd] => 2025-02-28 10:04:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:04:06' and `end` < '2025-02-28 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-02-28 10:04:18] Production.INFO: count ==2206 [2025-02-28 10:04:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:04:06 - End Time 2025-02-28 10:04:06 [2025-02-28 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575716', 'tblTempUsageDetail_20' ) start [2025-02-28 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575716', 'tblTempUsageDetail_20' ) end [2025-02-28 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575716', 'tblTempVendorCDR_20' ) start [2025-02-28 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575716', 'tblTempVendorCDR_20' ) end [2025-02-28 10:04:19] Production.INFO: ProcessCDR(1,14575716,1,1,2) [2025-02-28 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575716', 'tblTempUsageDetail_20' ) start [2025-02-28 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575716', 'tblTempUsageDetail_20' ) end [2025-02-28 10:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:04:24] Production.INFO: ==4497== Releasing lock... [2025-02-28 10:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:04:24] Production.INFO: 44.75 MB #Memory Used# [2025-02-28 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:05:05 [end_date_ymd] => 2025-02-28 10:05:05 [RateCDR] => 1 ) [2025-02-28 10:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:05:05' and `end` < '2025-02-28 10:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:05:18] Production.INFO: count ==2221 [2025-02-28 10:05:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:05:05 - End Time 2025-02-28 10:05:05 [2025-02-28 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575721', 'tblTempUsageDetail_20' ) start [2025-02-28 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575721', 'tblTempUsageDetail_20' ) end [2025-02-28 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575721', 'tblTempVendorCDR_20' ) start [2025-02-28 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575721', 'tblTempVendorCDR_20' ) end [2025-02-28 10:05:19] Production.INFO: ProcessCDR(1,14575721,1,1,2) [2025-02-28 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575721', 'tblTempUsageDetail_20' ) start [2025-02-28 10:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575721', 'tblTempUsageDetail_20' ) end [2025-02-28 10:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:05:23] Production.INFO: ==4571== Releasing lock... [2025-02-28 10:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:05:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-28 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:06:05 [end_date_ymd] => 2025-02-28 10:06:05 [RateCDR] => 1 ) [2025-02-28 10:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:06:05' and `end` < '2025-02-28 10:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:06:17] Production.INFO: count ==2237 [2025-02-28 10:06:18] Production.ERROR: pbx CDR StartTime 2025-02-28 07:06:05 - End Time 2025-02-28 10:06:05 [2025-02-28 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575726', 'tblTempUsageDetail_20' ) start [2025-02-28 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575726', 'tblTempUsageDetail_20' ) end [2025-02-28 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575726', 'tblTempVendorCDR_20' ) start [2025-02-28 10:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575726', 'tblTempVendorCDR_20' ) end [2025-02-28 10:06:19] Production.INFO: ProcessCDR(1,14575726,1,1,2) [2025-02-28 10:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575726', 'tblTempUsageDetail_20' ) start [2025-02-28 10:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575726', 'tblTempUsageDetail_20' ) end [2025-02-28 10:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:06:22] Production.INFO: ==4657== Releasing lock... [2025-02-28 10:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:06:22] Production.INFO: 45 MB #Memory Used# [2025-02-28 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:07:05 [end_date_ymd] => 2025-02-28 10:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:07:05' and `end` < '2025-02-28 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-02-28 10:07:18] Production.INFO: count ==2248 [2025-02-28 10:07:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:07:05 - End Time 2025-02-28 10:07:05 [2025-02-28 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575731', 'tblTempUsageDetail_20' ) start [2025-02-28 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575731', 'tblTempUsageDetail_20' ) end [2025-02-28 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575731', 'tblTempVendorCDR_20' ) start [2025-02-28 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575731', 'tblTempVendorCDR_20' ) end [2025-02-28 10:07:19] Production.INFO: ProcessCDR(1,14575731,1,1,2) [2025-02-28 10:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575731', 'tblTempUsageDetail_20' ) start [2025-02-28 10:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575731', 'tblTempUsageDetail_20' ) end [2025-02-28 10:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:07:24] Production.INFO: ==4726== Releasing lock... [2025-02-28 10:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:07:24] Production.INFO: 45 MB #Memory Used# [2025-02-28 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:08:06 [end_date_ymd] => 2025-02-28 10:08:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:08:06' and `end` < '2025-02-28 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-02-28 10:08:18] Production.INFO: count ==2252 [2025-02-28 10:08:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:08:06 - End Time 2025-02-28 10:08:06 [2025-02-28 10:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575736', 'tblTempUsageDetail_20' ) start [2025-02-28 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575736', 'tblTempUsageDetail_20' ) end [2025-02-28 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575736', 'tblTempVendorCDR_20' ) start [2025-02-28 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575736', 'tblTempVendorCDR_20' ) end [2025-02-28 10:08:20] Production.INFO: ProcessCDR(1,14575736,1,1,2) [2025-02-28 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575736', 'tblTempUsageDetail_20' ) start [2025-02-28 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575736', 'tblTempUsageDetail_20' ) end [2025-02-28 10:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:08:25] Production.INFO: ==4798== Releasing lock... [2025-02-28 10:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:08:25] Production.INFO: 45 MB #Memory Used# [2025-02-28 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:09:05 [end_date_ymd] => 2025-02-28 10:09:05 [RateCDR] => 1 ) [2025-02-28 10:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:09:05' and `end` < '2025-02-28 10:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:09:18] Production.INFO: count ==2269 [2025-02-28 10:09:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:09:05 - End Time 2025-02-28 10:09:05 [2025-02-28 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575741', 'tblTempUsageDetail_20' ) start [2025-02-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575741', 'tblTempUsageDetail_20' ) end [2025-02-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575741', 'tblTempVendorCDR_20' ) start [2025-02-28 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575741', 'tblTempVendorCDR_20' ) end [2025-02-28 10:09:19] Production.INFO: ProcessCDR(1,14575741,1,1,2) [2025-02-28 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575741', 'tblTempUsageDetail_20' ) start [2025-02-28 10:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575741', 'tblTempUsageDetail_20' ) end [2025-02-28 10:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:09:24] Production.INFO: ==4870== Releasing lock... [2025-02-28 10:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:09:24] Production.INFO: 45 MB #Memory Used# [2025-02-28 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:10:07 [end_date_ymd] => 2025-02-28 10:10:07 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:10:07' and `end` < '2025-02-28 10: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-02-28 10:10:19] Production.INFO: count ==2281 [2025-02-28 10:10:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:10:07 - End Time 2025-02-28 10:10:07 [2025-02-28 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575747', 'tblTempUsageDetail_20' ) start [2025-02-28 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575747', 'tblTempUsageDetail_20' ) end [2025-02-28 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575747', 'tblTempVendorCDR_20' ) start [2025-02-28 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575747', 'tblTempVendorCDR_20' ) end [2025-02-28 10:10:20] Production.INFO: ProcessCDR(1,14575747,1,1,2) [2025-02-28 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575747', 'tblTempUsageDetail_20' ) start [2025-02-28 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575747', 'tblTempUsageDetail_20' ) end [2025-02-28 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:10:26] Production.INFO: ==4943== Releasing lock... [2025-02-28 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:10:26] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 10:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:11:06 [end_date_ymd] => 2025-02-28 10:11:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:11:06' and `end` < '2025-02-28 10: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-02-28 10:11:18] Production.INFO: count ==2350 [2025-02-28 10:11:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:11:06 - End Time 2025-02-28 10:11:06 [2025-02-28 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575752', 'tblTempUsageDetail_20' ) start [2025-02-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575752', 'tblTempUsageDetail_20' ) end [2025-02-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575752', 'tblTempVendorCDR_20' ) start [2025-02-28 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575752', 'tblTempVendorCDR_20' ) end [2025-02-28 10:11:19] Production.INFO: ProcessCDR(1,14575752,1,1,2) [2025-02-28 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575752', 'tblTempUsageDetail_20' ) start [2025-02-28 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575752', 'tblTempUsageDetail_20' ) end [2025-02-28 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:11:25] Production.INFO: ==5016== Releasing lock... [2025-02-28 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:11:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:12:05 [end_date_ymd] => 2025-02-28 10:12:05 [RateCDR] => 1 ) [2025-02-28 10:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:12:05' and `end` < '2025-02-28 10:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:12:17] Production.INFO: count ==2356 [2025-02-28 10:12:18] Production.ERROR: pbx CDR StartTime 2025-02-28 07:12:05 - End Time 2025-02-28 10:12:05 [2025-02-28 10:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575757', 'tblTempUsageDetail_20' ) start [2025-02-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575757', 'tblTempUsageDetail_20' ) end [2025-02-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575757', 'tblTempVendorCDR_20' ) start [2025-02-28 10:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575757', 'tblTempVendorCDR_20' ) end [2025-02-28 10:12:18] Production.INFO: ProcessCDR(1,14575757,1,1,2) [2025-02-28 10:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575757', 'tblTempUsageDetail_20' ) start [2025-02-28 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575757', 'tblTempUsageDetail_20' ) end [2025-02-28 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:12:23] Production.INFO: ==5092== Releasing lock... [2025-02-28 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:12:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 10:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:13:06 [end_date_ymd] => 2025-02-28 10:13:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:13:06' and `end` < '2025-02-28 10: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-02-28 10:13:18] Production.INFO: count ==2370 [2025-02-28 10:13:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:13:06 - End Time 2025-02-28 10:13:06 [2025-02-28 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575762', 'tblTempUsageDetail_20' ) start [2025-02-28 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575762', 'tblTempUsageDetail_20' ) end [2025-02-28 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575762', 'tblTempVendorCDR_20' ) start [2025-02-28 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575762', 'tblTempVendorCDR_20' ) end [2025-02-28 10:13:19] Production.INFO: ProcessCDR(1,14575762,1,1,2) [2025-02-28 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575762', 'tblTempUsageDetail_20' ) start [2025-02-28 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575762', 'tblTempUsageDetail_20' ) end [2025-02-28 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:13:25] Production.INFO: ==5166== Releasing lock... [2025-02-28 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:13:25] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:14:06 [end_date_ymd] => 2025-02-28 10:14:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:14:06' and `end` < '2025-02-28 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-02-28 10:14:18] Production.INFO: count ==2387 [2025-02-28 10:14:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:14:06 - End Time 2025-02-28 10:14:06 [2025-02-28 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575767', 'tblTempUsageDetail_20' ) start [2025-02-28 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575767', 'tblTempUsageDetail_20' ) end [2025-02-28 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575767', 'tblTempVendorCDR_20' ) start [2025-02-28 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575767', 'tblTempVendorCDR_20' ) end [2025-02-28 10:14:19] Production.INFO: ProcessCDR(1,14575767,1,1,2) [2025-02-28 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575767', 'tblTempUsageDetail_20' ) start [2025-02-28 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575767', 'tblTempUsageDetail_20' ) end [2025-02-28 10:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:14:25] Production.INFO: ==5237== Releasing lock... [2025-02-28 10:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:14:25] Production.INFO: 46 MB #Memory Used# [2025-02-28 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:15:05 [end_date_ymd] => 2025-02-28 10:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:15:05' and `end` < '2025-02-28 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-02-28 10:15:18] Production.INFO: count ==2391 [2025-02-28 10:15:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:15:05 - End Time 2025-02-28 10:15:05 [2025-02-28 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575772', 'tblTempUsageDetail_20' ) start [2025-02-28 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575772', 'tblTempUsageDetail_20' ) end [2025-02-28 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575772', 'tblTempVendorCDR_20' ) start [2025-02-28 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575772', 'tblTempVendorCDR_20' ) end [2025-02-28 10:15:19] Production.INFO: ProcessCDR(1,14575772,1,1,2) [2025-02-28 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575772', 'tblTempUsageDetail_20' ) start [2025-02-28 10:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575772', 'tblTempUsageDetail_20' ) end [2025-02-28 10:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:15:24] Production.INFO: ==5347== Releasing lock... [2025-02-28 10:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:15:24] Production.INFO: 46 MB #Memory Used# [2025-02-28 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:16:06 [end_date_ymd] => 2025-02-28 10:16:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:16:06' and `end` < '2025-02-28 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-02-28 10:16:19] Production.INFO: count ==2412 [2025-02-28 10:16:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:16:06 - End Time 2025-02-28 10:16:06 [2025-02-28 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575777', 'tblTempUsageDetail_20' ) start [2025-02-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575777', 'tblTempUsageDetail_20' ) end [2025-02-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575777', 'tblTempVendorCDR_20' ) start [2025-02-28 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575777', 'tblTempVendorCDR_20' ) end [2025-02-28 10:16:20] Production.INFO: ProcessCDR(1,14575777,1,1,2) [2025-02-28 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575777', 'tblTempUsageDetail_20' ) start [2025-02-28 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575777', 'tblTempUsageDetail_20' ) end [2025-02-28 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:16:25] Production.INFO: ==5420== Releasing lock... [2025-02-28 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:16:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-28 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:17:06 [end_date_ymd] => 2025-02-28 10:17:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:17:06' and `end` < '2025-02-28 10: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-02-28 10:17:18] Production.INFO: count ==2433 [2025-02-28 10:17:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:17:06 - End Time 2025-02-28 10:17:06 [2025-02-28 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575782', 'tblTempUsageDetail_20' ) start [2025-02-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575782', 'tblTempUsageDetail_20' ) end [2025-02-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575782', 'tblTempVendorCDR_20' ) start [2025-02-28 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575782', 'tblTempVendorCDR_20' ) end [2025-02-28 10:17:20] Production.INFO: ProcessCDR(1,14575782,1,1,2) [2025-02-28 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575782', 'tblTempUsageDetail_20' ) start [2025-02-28 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575782', 'tblTempUsageDetail_20' ) end [2025-02-28 10:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:17:25] Production.INFO: ==5492== Releasing lock... [2025-02-28 10:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:17:25] Production.INFO: 46.25 MB #Memory Used# [2025-02-28 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:18:05 [end_date_ymd] => 2025-02-28 10:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:18:05' and `end` < '2025-02-28 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-02-28 10:18:18] Production.INFO: count ==2443 [2025-02-28 10:18:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:18:05 - End Time 2025-02-28 10:18:05 [2025-02-28 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575787', 'tblTempUsageDetail_20' ) start [2025-02-28 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575787', 'tblTempUsageDetail_20' ) end [2025-02-28 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575787', 'tblTempVendorCDR_20' ) start [2025-02-28 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575787', 'tblTempVendorCDR_20' ) end [2025-02-28 10:18:19] Production.INFO: ProcessCDR(1,14575787,1,1,2) [2025-02-28 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575787', 'tblTempUsageDetail_20' ) start [2025-02-28 10:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575787', 'tblTempUsageDetail_20' ) end [2025-02-28 10:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:18:24] Production.INFO: ==5561== Releasing lock... [2025-02-28 10:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:18:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-28 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:19:05 [end_date_ymd] => 2025-02-28 10:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:19:05' and `end` < '2025-02-28 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-02-28 10:19:18] Production.INFO: count ==2460 [2025-02-28 10:19:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:19:05 - End Time 2025-02-28 10:19:05 [2025-02-28 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575792', 'tblTempUsageDetail_20' ) start [2025-02-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575792', 'tblTempUsageDetail_20' ) end [2025-02-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575792', 'tblTempVendorCDR_20' ) start [2025-02-28 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575792', 'tblTempVendorCDR_20' ) end [2025-02-28 10:19:19] Production.INFO: ProcessCDR(1,14575792,1,1,2) [2025-02-28 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575792', 'tblTempUsageDetail_20' ) start [2025-02-28 10:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575792', 'tblTempUsageDetail_20' ) end [2025-02-28 10:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:19:24] Production.INFO: ==5633== Releasing lock... [2025-02-28 10:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:19:24] Production.INFO: 46.5 MB #Memory Used# [2025-02-28 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:20:06 [end_date_ymd] => 2025-02-28 10:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:20:06' and `end` < '2025-02-28 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-02-28 10:20:18] Production.INFO: count ==2471 [2025-02-28 10:20:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:20:06 - End Time 2025-02-28 10:20:06 [2025-02-28 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575798', 'tblTempUsageDetail_20' ) start [2025-02-28 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575798', 'tblTempUsageDetail_20' ) end [2025-02-28 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575798', 'tblTempVendorCDR_20' ) start [2025-02-28 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575798', 'tblTempVendorCDR_20' ) end [2025-02-28 10:20:20] Production.INFO: ProcessCDR(1,14575798,1,1,2) [2025-02-28 10:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575798', 'tblTempUsageDetail_20' ) start [2025-02-28 10:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575798', 'tblTempUsageDetail_20' ) end [2025-02-28 10:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:20:25] Production.INFO: ==5707== Releasing lock... [2025-02-28 10:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:20:25] Production.INFO: 46.5 MB #Memory Used# [2025-02-28 10:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:21:06 [end_date_ymd] => 2025-02-28 10:21:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:21:06' and `end` < '2025-02-28 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-02-28 10:21:18] Production.INFO: count ==2566 [2025-02-28 10:21:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:21:06 - End Time 2025-02-28 10:21:06 [2025-02-28 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575803', 'tblTempUsageDetail_20' ) start [2025-02-28 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575803', 'tblTempUsageDetail_20' ) end [2025-02-28 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575803', 'tblTempVendorCDR_20' ) start [2025-02-28 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575803', 'tblTempVendorCDR_20' ) end [2025-02-28 10:21:19] Production.INFO: ProcessCDR(1,14575803,1,1,2) [2025-02-28 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575803', 'tblTempUsageDetail_20' ) start [2025-02-28 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575803', 'tblTempUsageDetail_20' ) end [2025-02-28 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:21:25] Production.INFO: ==5783== Releasing lock... [2025-02-28 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:21:25] Production.INFO: 47.25 MB #Memory Used# [2025-02-28 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:22:05 [end_date_ymd] => 2025-02-28 10:22:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:22:05' and `end` < '2025-02-28 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-02-28 10:22:18] Production.INFO: count ==2571 [2025-02-28 10:22:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:22:05 - End Time 2025-02-28 10:22:05 [2025-02-28 10:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575808', 'tblTempUsageDetail_20' ) start [2025-02-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575808', 'tblTempUsageDetail_20' ) end [2025-02-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575808', 'tblTempVendorCDR_20' ) start [2025-02-28 10:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575808', 'tblTempVendorCDR_20' ) end [2025-02-28 10:22:19] Production.INFO: ProcessCDR(1,14575808,1,1,2) [2025-02-28 10:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575808', 'tblTempUsageDetail_20' ) start [2025-02-28 10:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575808', 'tblTempUsageDetail_20' ) end [2025-02-28 10:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:22:24] Production.INFO: ==5853== Releasing lock... [2025-02-28 10:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:22:24] Production.INFO: 47.25 MB #Memory Used# [2025-02-28 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:23:05 [end_date_ymd] => 2025-02-28 10:23:05 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:23:05' and `end` < '2025-02-28 10: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-02-28 10:23:18] Production.INFO: count ==2585 [2025-02-28 10:23:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:23:05 - End Time 2025-02-28 10:23:05 [2025-02-28 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575813', 'tblTempUsageDetail_20' ) start [2025-02-28 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575813', 'tblTempUsageDetail_20' ) end [2025-02-28 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575813', 'tblTempVendorCDR_20' ) start [2025-02-28 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575813', 'tblTempVendorCDR_20' ) end [2025-02-28 10:23:19] Production.INFO: ProcessCDR(1,14575813,1,1,2) [2025-02-28 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575813', 'tblTempUsageDetail_20' ) start [2025-02-28 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575813', 'tblTempUsageDetail_20' ) end [2025-02-28 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:23:25] Production.INFO: ==5925== Releasing lock... [2025-02-28 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:23:25] Production.INFO: 47.5 MB #Memory Used# [2025-02-28 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:24:06 [end_date_ymd] => 2025-02-28 10:24:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:24:06' and `end` < '2025-02-28 10: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-02-28 10:24:18] Production.INFO: count ==2600 [2025-02-28 10:24:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:24:06 - End Time 2025-02-28 10:24:06 [2025-02-28 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575818', 'tblTempUsageDetail_20' ) start [2025-02-28 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575818', 'tblTempUsageDetail_20' ) end [2025-02-28 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575818', 'tblTempVendorCDR_20' ) start [2025-02-28 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575818', 'tblTempVendorCDR_20' ) end [2025-02-28 10:24:20] Production.INFO: ProcessCDR(1,14575818,1,1,2) [2025-02-28 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575818', 'tblTempUsageDetail_20' ) start [2025-02-28 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575818', 'tblTempUsageDetail_20' ) end [2025-02-28 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:24:23] Production.INFO: ==5997== Releasing lock... [2025-02-28 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:24:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-28 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:25:06 [end_date_ymd] => 2025-02-28 10:25:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:25:06' and `end` < '2025-02-28 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-02-28 10:25:18] Production.INFO: count ==2625 [2025-02-28 10:25:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:25:06 - End Time 2025-02-28 10:25:06 [2025-02-28 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575823', 'tblTempUsageDetail_20' ) start [2025-02-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575823', 'tblTempUsageDetail_20' ) end [2025-02-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575823', 'tblTempVendorCDR_20' ) start [2025-02-28 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575823', 'tblTempVendorCDR_20' ) end [2025-02-28 10:25:20] Production.INFO: ProcessCDR(1,14575823,1,1,2) [2025-02-28 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575823', 'tblTempUsageDetail_20' ) start [2025-02-28 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575823', 'tblTempUsageDetail_20' ) end [2025-02-28 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:25:25] Production.INFO: ==6075== Releasing lock... [2025-02-28 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:25:25] Production.INFO: 47.75 MB #Memory Used# [2025-02-28 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:26:05 [end_date_ymd] => 2025-02-28 10:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:26:05' and `end` < '2025-02-28 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-02-28 10:26:18] Production.INFO: count ==2632 [2025-02-28 10:26:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:26:05 - End Time 2025-02-28 10:26:05 [2025-02-28 10:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575828', 'tblTempUsageDetail_20' ) start [2025-02-28 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575828', 'tblTempUsageDetail_20' ) end [2025-02-28 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575828', 'tblTempVendorCDR_20' ) start [2025-02-28 10:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575828', 'tblTempVendorCDR_20' ) end [2025-02-28 10:26:19] Production.INFO: ProcessCDR(1,14575828,1,1,2) [2025-02-28 10:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575828', 'tblTempUsageDetail_20' ) start [2025-02-28 10:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575828', 'tblTempUsageDetail_20' ) end [2025-02-28 10:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:26:24] Production.INFO: ==6154== Releasing lock... [2025-02-28 10:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:26:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-28 10:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:27:05 [end_date_ymd] => 2025-02-28 10:27:05 [RateCDR] => 1 ) [2025-02-28 10:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:27:05' and `end` < '2025-02-28 10:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:27:18] Production.INFO: count ==2673 [2025-02-28 10:27:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:27:05 - End Time 2025-02-28 10:27:05 [2025-02-28 10:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575833', 'tblTempUsageDetail_20' ) start [2025-02-28 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575833', 'tblTempUsageDetail_20' ) end [2025-02-28 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575833', 'tblTempVendorCDR_20' ) start [2025-02-28 10:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575833', 'tblTempVendorCDR_20' ) end [2025-02-28 10:27:19] Production.INFO: ProcessCDR(1,14575833,1,1,2) [2025-02-28 10:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575833', 'tblTempUsageDetail_20' ) start [2025-02-28 10:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575833', 'tblTempUsageDetail_20' ) end [2025-02-28 10:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:27:25] Production.INFO: ==6235== Releasing lock... [2025-02-28 10:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:27:25] Production.INFO: 48 MB #Memory Used# [2025-02-28 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:28:05 [end_date_ymd] => 2025-02-28 10:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:28:05' and `end` < '2025-02-28 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-02-28 10:28:17] Production.INFO: count ==2696 [2025-02-28 10:28:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:28:05 - End Time 2025-02-28 10:28:05 [2025-02-28 10:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575838', 'tblTempUsageDetail_20' ) start [2025-02-28 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575838', 'tblTempUsageDetail_20' ) end [2025-02-28 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575838', 'tblTempVendorCDR_20' ) start [2025-02-28 10:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575838', 'tblTempVendorCDR_20' ) end [2025-02-28 10:28:19] Production.INFO: ProcessCDR(1,14575838,1,1,2) [2025-02-28 10:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575838', 'tblTempUsageDetail_20' ) start [2025-02-28 10:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575838', 'tblTempUsageDetail_20' ) end [2025-02-28 10:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:28:24] Production.INFO: ==6317== Releasing lock... [2025-02-28 10:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:28:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-28 10:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:29:06 [end_date_ymd] => 2025-02-28 10:29:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:29:06' and `end` < '2025-02-28 10: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-02-28 10:29:18] Production.INFO: count ==2715 [2025-02-28 10:29:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:29:06 - End Time 2025-02-28 10:29:06 [2025-02-28 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575843', 'tblTempUsageDetail_20' ) start [2025-02-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575843', 'tblTempUsageDetail_20' ) end [2025-02-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575843', 'tblTempVendorCDR_20' ) start [2025-02-28 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575843', 'tblTempVendorCDR_20' ) end [2025-02-28 10:29:19] Production.INFO: ProcessCDR(1,14575843,1,1,2) [2025-02-28 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575843', 'tblTempUsageDetail_20' ) start [2025-02-28 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575843', 'tblTempUsageDetail_20' ) end [2025-02-28 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:29:25] Production.INFO: ==6401== Releasing lock... [2025-02-28 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:29:25] Production.INFO: 48.75 MB #Memory Used# [2025-02-28 10:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:30:06 [end_date_ymd] => 2025-02-28 10:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:30:06' and `end` < '2025-02-28 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-02-28 10:30:19] Production.INFO: count ==2738 [2025-02-28 10:30:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:30:06 - End Time 2025-02-28 10:30:06 [2025-02-28 10:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575849', 'tblTempUsageDetail_20' ) start [2025-02-28 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575849', 'tblTempUsageDetail_20' ) end [2025-02-28 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575849', 'tblTempVendorCDR_20' ) start [2025-02-28 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575849', 'tblTempVendorCDR_20' ) end [2025-02-28 10:30:21] Production.INFO: ProcessCDR(1,14575849,1,1,2) [2025-02-28 10:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575849', 'tblTempUsageDetail_20' ) start [2025-02-28 10:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575849', 'tblTempUsageDetail_20' ) end [2025-02-28 10:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:30:26] Production.INFO: ==6486== Releasing lock... [2025-02-28 10:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:30:26] Production.INFO: 48.75 MB #Memory Used# [2025-02-28 10:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:31:06 [end_date_ymd] => 2025-02-28 10:31:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:31:06' and `end` < '2025-02-28 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-02-28 10:31:18] Production.INFO: count ==2838 [2025-02-28 10:31:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:31:06 - End Time 2025-02-28 10:31:06 [2025-02-28 10:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575854', 'tblTempUsageDetail_20' ) start [2025-02-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575854', 'tblTempUsageDetail_20' ) end [2025-02-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575854', 'tblTempVendorCDR_20' ) start [2025-02-28 10:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575854', 'tblTempVendorCDR_20' ) end [2025-02-28 10:31:19] Production.INFO: ProcessCDR(1,14575854,1,1,2) [2025-02-28 10:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575854', 'tblTempUsageDetail_20' ) start [2025-02-28 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575854', 'tblTempUsageDetail_20' ) end [2025-02-28 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:31:25] Production.INFO: ==6608== Releasing lock... [2025-02-28 10:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:31:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-28 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:32:06 [end_date_ymd] => 2025-02-28 10:32:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:32:06' and `end` < '2025-02-28 10: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-02-28 10:32:18] Production.INFO: count ==2853 [2025-02-28 10:32:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:32:06 - End Time 2025-02-28 10:32:06 [2025-02-28 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575859', 'tblTempUsageDetail_20' ) start [2025-02-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575859', 'tblTempUsageDetail_20' ) end [2025-02-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575859', 'tblTempVendorCDR_20' ) start [2025-02-28 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575859', 'tblTempVendorCDR_20' ) end [2025-02-28 10:32:20] Production.INFO: ProcessCDR(1,14575859,1,1,2) [2025-02-28 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575859', 'tblTempUsageDetail_20' ) start [2025-02-28 10:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575859', 'tblTempUsageDetail_20' ) end [2025-02-28 10:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:32:25] Production.INFO: ==6690== Releasing lock... [2025-02-28 10:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:32:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-28 10:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:33:06 [end_date_ymd] => 2025-02-28 10:33:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:33:06' and `end` < '2025-02-28 10: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-02-28 10:33:18] Production.INFO: count ==2865 [2025-02-28 10:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:33:06 - End Time 2025-02-28 10:33:06 [2025-02-28 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575864', 'tblTempUsageDetail_20' ) start [2025-02-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575864', 'tblTempUsageDetail_20' ) end [2025-02-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575864', 'tblTempVendorCDR_20' ) start [2025-02-28 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575864', 'tblTempVendorCDR_20' ) end [2025-02-28 10:33:20] Production.INFO: ProcessCDR(1,14575864,1,1,2) [2025-02-28 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575864', 'tblTempUsageDetail_20' ) start [2025-02-28 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575864', 'tblTempUsageDetail_20' ) end [2025-02-28 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:33:25] Production.INFO: ==6773== Releasing lock... [2025-02-28 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:33:25] Production.INFO: 49.25 MB #Memory Used# [2025-02-28 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:34:05 [end_date_ymd] => 2025-02-28 10:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:34:05' and `end` < '2025-02-28 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-02-28 10:34:18] Production.INFO: count ==2882 [2025-02-28 10:34:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:34:05 - End Time 2025-02-28 10:34:05 [2025-02-28 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575869', 'tblTempUsageDetail_20' ) start [2025-02-28 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575869', 'tblTempUsageDetail_20' ) end [2025-02-28 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575869', 'tblTempVendorCDR_20' ) start [2025-02-28 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575869', 'tblTempVendorCDR_20' ) end [2025-02-28 10:34:19] Production.INFO: ProcessCDR(1,14575869,1,1,2) [2025-02-28 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575869', 'tblTempUsageDetail_20' ) start [2025-02-28 10:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575869', 'tblTempUsageDetail_20' ) end [2025-02-28 10:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:34:25] Production.INFO: ==6856== Releasing lock... [2025-02-28 10:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:34:25] Production.INFO: 49.5 MB #Memory Used# [2025-02-28 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:35:05 [end_date_ymd] => 2025-02-28 10:35:05 [RateCDR] => 1 ) [2025-02-28 10:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:35:05' and `end` < '2025-02-28 10:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:35:18] Production.INFO: count ==2906 [2025-02-28 10:35:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:35:05 - End Time 2025-02-28 10:35:05 [2025-02-28 10:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575873', 'tblTempUsageDetail_20' ) start [2025-02-28 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575873', 'tblTempUsageDetail_20' ) end [2025-02-28 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575873', 'tblTempVendorCDR_20' ) start [2025-02-28 10:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575873', 'tblTempVendorCDR_20' ) end [2025-02-28 10:35:19] Production.INFO: ProcessCDR(1,14575873,1,1,2) [2025-02-28 10:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575873', 'tblTempUsageDetail_20' ) start [2025-02-28 10:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575873', 'tblTempUsageDetail_20' ) end [2025-02-28 10:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:35:25] Production.INFO: ==6937== Releasing lock... [2025-02-28 10:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:35:25] Production.INFO: 50 MB #Memory Used# [2025-02-28 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:36:05 [end_date_ymd] => 2025-02-28 10:36:05 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:36:05' and `end` < '2025-02-28 10: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-02-28 10:36:17] Production.INFO: count ==2923 [2025-02-28 10:36:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:36:05 - End Time 2025-02-28 10:36:05 [2025-02-28 10:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575879', 'tblTempUsageDetail_20' ) start [2025-02-28 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575879', 'tblTempUsageDetail_20' ) end [2025-02-28 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575879', 'tblTempVendorCDR_20' ) start [2025-02-28 10:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575879', 'tblTempVendorCDR_20' ) end [2025-02-28 10:36:19] Production.INFO: ProcessCDR(1,14575879,1,1,2) [2025-02-28 10:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575879', 'tblTempUsageDetail_20' ) start [2025-02-28 10:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575879', 'tblTempUsageDetail_20' ) end [2025-02-28 10:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:36:25] Production.INFO: ==7012== Releasing lock... [2025-02-28 10:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:36:25] Production.INFO: 50 MB #Memory Used# [2025-02-28 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:37:05 [end_date_ymd] => 2025-02-28 10:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:37:05' and `end` < '2025-02-28 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-02-28 10:37:18] Production.INFO: count ==2930 [2025-02-28 10:37:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:37:05 - End Time 2025-02-28 10:37:05 [2025-02-28 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575884', 'tblTempUsageDetail_20' ) start [2025-02-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575884', 'tblTempUsageDetail_20' ) end [2025-02-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575884', 'tblTempVendorCDR_20' ) start [2025-02-28 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575884', 'tblTempVendorCDR_20' ) end [2025-02-28 10:37:20] Production.INFO: ProcessCDR(1,14575884,1,1,2) [2025-02-28 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575884', 'tblTempUsageDetail_20' ) start [2025-02-28 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575884', 'tblTempUsageDetail_20' ) end [2025-02-28 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:37:25] Production.INFO: ==7081== Releasing lock... [2025-02-28 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:37:25] Production.INFO: 49.75 MB #Memory Used# [2025-02-28 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:38:05 [end_date_ymd] => 2025-02-28 10:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:38:05' and `end` < '2025-02-28 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-02-28 10:38:18] Production.INFO: count ==2947 [2025-02-28 10:38:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:38:05 - End Time 2025-02-28 10:38:05 [2025-02-28 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575889', 'tblTempUsageDetail_20' ) start [2025-02-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575889', 'tblTempUsageDetail_20' ) end [2025-02-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575889', 'tblTempVendorCDR_20' ) start [2025-02-28 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575889', 'tblTempVendorCDR_20' ) end [2025-02-28 10:38:19] Production.INFO: ProcessCDR(1,14575889,1,1,2) [2025-02-28 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575889', 'tblTempUsageDetail_20' ) start [2025-02-28 10:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575889', 'tblTempUsageDetail_20' ) end [2025-02-28 10:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:38:25] Production.INFO: ==7156== Releasing lock... [2025-02-28 10:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:38:25] Production.INFO: 50.5 MB #Memory Used# [2025-02-28 10:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:39:06 [end_date_ymd] => 2025-02-28 10:39:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:39:06' and `end` < '2025-02-28 10: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-02-28 10:39:18] Production.INFO: count ==2964 [2025-02-28 10:39:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:39:06 - End Time 2025-02-28 10:39:06 [2025-02-28 10:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575894', 'tblTempUsageDetail_20' ) start [2025-02-28 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575894', 'tblTempUsageDetail_20' ) end [2025-02-28 10:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575894', 'tblTempVendorCDR_20' ) start [2025-02-28 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575894', 'tblTempVendorCDR_20' ) end [2025-02-28 10:39:20] Production.INFO: ProcessCDR(1,14575894,1,1,2) [2025-02-28 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575894', 'tblTempUsageDetail_20' ) start [2025-02-28 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575894', 'tblTempUsageDetail_20' ) end [2025-02-28 10:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:39:25] Production.INFO: ==7227== Releasing lock... [2025-02-28 10:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:39:25] Production.INFO: 50.25 MB #Memory Used# [2025-02-28 10:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:40:07 [end_date_ymd] => 2025-02-28 10:40:07 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:40:07' and `end` < '2025-02-28 10: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-02-28 10:40:20] Production.INFO: count ==3005 [2025-02-28 10:40:21] Production.ERROR: pbx CDR StartTime 2025-02-28 07:40:07 - End Time 2025-02-28 10:40:07 [2025-02-28 10:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575900', 'tblTempUsageDetail_20' ) start [2025-02-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575900', 'tblTempUsageDetail_20' ) end [2025-02-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575900', 'tblTempVendorCDR_20' ) start [2025-02-28 10:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575900', 'tblTempVendorCDR_20' ) end [2025-02-28 10:40:21] Production.INFO: ProcessCDR(1,14575900,1,1,2) [2025-02-28 10:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575900', 'tblTempUsageDetail_20' ) start [2025-02-28 10:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575900', 'tblTempUsageDetail_20' ) end [2025-02-28 10:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:40:27] Production.INFO: ==7301== Releasing lock... [2025-02-28 10:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:40:27] Production.INFO: 51.5 MB #Memory Used# [2025-02-28 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:41:05 [end_date_ymd] => 2025-02-28 10:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:41:05' and `end` < '2025-02-28 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-02-28 10:41:18] Production.INFO: count ==3093 [2025-02-28 10:41:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:41:05 - End Time 2025-02-28 10:41:05 [2025-02-28 10:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575905', 'tblTempUsageDetail_20' ) start [2025-02-28 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575905', 'tblTempUsageDetail_20' ) end [2025-02-28 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575905', 'tblTempVendorCDR_20' ) start [2025-02-28 10:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575905', 'tblTempVendorCDR_20' ) end [2025-02-28 10:41:19] Production.INFO: ProcessCDR(1,14575905,1,1,2) [2025-02-28 10:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575905', 'tblTempUsageDetail_20' ) start [2025-02-28 10:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575905', 'tblTempUsageDetail_20' ) end [2025-02-28 10:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:41:25] Production.INFO: ==7376== Releasing lock... [2025-02-28 10:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:41:25] Production.INFO: 51.5 MB #Memory Used# [2025-02-28 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:42:06 [end_date_ymd] => 2025-02-28 10:42:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:42:06' and `end` < '2025-02-28 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-02-28 10:42:18] Production.INFO: count ==3120 [2025-02-28 10:42:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:42:06 - End Time 2025-02-28 10:42:06 [2025-02-28 10:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575910', 'tblTempUsageDetail_20' ) start [2025-02-28 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575910', 'tblTempUsageDetail_20' ) end [2025-02-28 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575910', 'tblTempVendorCDR_20' ) start [2025-02-28 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575910', 'tblTempVendorCDR_20' ) end [2025-02-28 10:42:20] Production.INFO: ProcessCDR(1,14575910,1,1,2) [2025-02-28 10:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575910', 'tblTempUsageDetail_20' ) start [2025-02-28 10:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575910', 'tblTempUsageDetail_20' ) end [2025-02-28 10:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:42:25] Production.INFO: ==7448== Releasing lock... [2025-02-28 10:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:42:25] Production.INFO: 52.25 MB #Memory Used# [2025-02-28 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:43:06 [end_date_ymd] => 2025-02-28 10:43:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:43:06' and `end` < '2025-02-28 10: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-02-28 10:43:18] Production.INFO: count ==3135 [2025-02-28 10:43:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:43:06 - End Time 2025-02-28 10:43:06 [2025-02-28 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575915', 'tblTempUsageDetail_20' ) start [2025-02-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575915', 'tblTempUsageDetail_20' ) end [2025-02-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575915', 'tblTempVendorCDR_20' ) start [2025-02-28 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575915', 'tblTempVendorCDR_20' ) end [2025-02-28 10:43:20] Production.INFO: ProcessCDR(1,14575915,1,1,2) [2025-02-28 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575915', 'tblTempUsageDetail_20' ) start [2025-02-28 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575915', 'tblTempUsageDetail_20' ) end [2025-02-28 10:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:43:25] Production.INFO: ==7518== Releasing lock... [2025-02-28 10:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:43:25] Production.INFO: 52.25 MB #Memory Used# [2025-02-28 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:44:06 [end_date_ymd] => 2025-02-28 10:44:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:44:06' and `end` < '2025-02-28 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-02-28 10:44:19] Production.INFO: count ==3156 [2025-02-28 10:44:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:44:06 - End Time 2025-02-28 10:44:06 [2025-02-28 10:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575920', 'tblTempUsageDetail_20' ) start [2025-02-28 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575920', 'tblTempUsageDetail_20' ) end [2025-02-28 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575920', 'tblTempVendorCDR_20' ) start [2025-02-28 10:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575920', 'tblTempVendorCDR_20' ) end [2025-02-28 10:44:20] Production.INFO: ProcessCDR(1,14575920,1,1,2) [2025-02-28 10:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575920', 'tblTempUsageDetail_20' ) start [2025-02-28 10:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575920', 'tblTempUsageDetail_20' ) end [2025-02-28 10:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:44:26] Production.INFO: ==7591== Releasing lock... [2025-02-28 10:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:44:26] Production.INFO: 52 MB #Memory Used# [2025-02-28 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:45:06 [end_date_ymd] => 2025-02-28 10:45:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:45:06' and `end` < '2025-02-28 10: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-02-28 10:45:19] Production.INFO: count ==3161 [2025-02-28 10:45:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:45:06 - End Time 2025-02-28 10:45:06 [2025-02-28 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575925', 'tblTempUsageDetail_20' ) start [2025-02-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575925', 'tblTempUsageDetail_20' ) end [2025-02-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575925', 'tblTempVendorCDR_20' ) start [2025-02-28 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575925', 'tblTempVendorCDR_20' ) end [2025-02-28 10:45:20] Production.INFO: ProcessCDR(1,14575925,1,1,2) [2025-02-28 10:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575925', 'tblTempUsageDetail_20' ) start [2025-02-28 10:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575925', 'tblTempUsageDetail_20' ) end [2025-02-28 10:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:45:26] Production.INFO: ==7667== Releasing lock... [2025-02-28 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:45:26] Production.INFO: 52.75 MB #Memory Used# [2025-02-28 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:46:05 [end_date_ymd] => 2025-02-28 10:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:46:05' and `end` < '2025-02-28 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-02-28 10:46:18] Production.INFO: count ==3172 [2025-02-28 10:46:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:46:05 - End Time 2025-02-28 10:46:05 [2025-02-28 10:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575930', 'tblTempUsageDetail_20' ) start [2025-02-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575930', 'tblTempUsageDetail_20' ) end [2025-02-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575930', 'tblTempVendorCDR_20' ) start [2025-02-28 10:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575930', 'tblTempVendorCDR_20' ) end [2025-02-28 10:46:19] Production.INFO: ProcessCDR(1,14575930,1,1,2) [2025-02-28 10:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575930', 'tblTempUsageDetail_20' ) start [2025-02-28 10:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575930', 'tblTempUsageDetail_20' ) end [2025-02-28 10:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:46:25] Production.INFO: ==7776== Releasing lock... [2025-02-28 10:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:46:25] Production.INFO: 52 MB #Memory Used# [2025-02-28 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:47:06 [end_date_ymd] => 2025-02-28 10:47:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:47:06' and `end` < '2025-02-28 10: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-02-28 10:47:18] Production.INFO: count ==3171 [2025-02-28 10:47:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:47:06 - End Time 2025-02-28 10:47:06 [2025-02-28 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575935', 'tblTempUsageDetail_20' ) start [2025-02-28 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575935', 'tblTempUsageDetail_20' ) end [2025-02-28 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575935', 'tblTempVendorCDR_20' ) start [2025-02-28 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575935', 'tblTempVendorCDR_20' ) end [2025-02-28 10:47:20] Production.INFO: ProcessCDR(1,14575935,1,1,2) [2025-02-28 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575935', 'tblTempUsageDetail_20' ) start [2025-02-28 10:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575935', 'tblTempUsageDetail_20' ) end [2025-02-28 10:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:47:23] Production.INFO: ==7847== Releasing lock... [2025-02-28 10:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:47:23] Production.INFO: 51.75 MB #Memory Used# [2025-02-28 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:48:05 [end_date_ymd] => 2025-02-28 10:48:05 [RateCDR] => 1 ) [2025-02-28 10:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 07:48:05' and `end` < '2025-02-28 10:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 10:48:18] Production.INFO: count ==3176 [2025-02-28 10:48:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:48:05 - End Time 2025-02-28 10:48:05 [2025-02-28 10:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575940', 'tblTempUsageDetail_20' ) start [2025-02-28 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575940', 'tblTempUsageDetail_20' ) end [2025-02-28 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575940', 'tblTempVendorCDR_20' ) start [2025-02-28 10:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575940', 'tblTempVendorCDR_20' ) end [2025-02-28 10:48:19] Production.INFO: ProcessCDR(1,14575940,1,1,2) [2025-02-28 10:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575940', 'tblTempUsageDetail_20' ) start [2025-02-28 10:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575940', 'tblTempUsageDetail_20' ) end [2025-02-28 10:48:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:48:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:48:25] Production.INFO: ==7920== Releasing lock... [2025-02-28 10:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:48:25] Production.INFO: 52.5 MB #Memory Used# [2025-02-28 10:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:49:06 [end_date_ymd] => 2025-02-28 10:49:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:49:06' and `end` < '2025-02-28 10: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-02-28 10:49:18] Production.INFO: count ==3177 [2025-02-28 10:49:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:49:06 - End Time 2025-02-28 10:49:06 [2025-02-28 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575945', 'tblTempUsageDetail_20' ) start [2025-02-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575945', 'tblTempUsageDetail_20' ) end [2025-02-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575945', 'tblTempVendorCDR_20' ) start [2025-02-28 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575945', 'tblTempVendorCDR_20' ) end [2025-02-28 10:49:20] Production.INFO: ProcessCDR(1,14575945,1,1,2) [2025-02-28 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575945', 'tblTempUsageDetail_20' ) start [2025-02-28 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575945', 'tblTempUsageDetail_20' ) end [2025-02-28 10:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:49:25] Production.INFO: ==7992== Releasing lock... [2025-02-28 10:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:49:25] Production.INFO: 52.75 MB #Memory Used# [2025-02-28 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:50:06 [end_date_ymd] => 2025-02-28 10:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:50:06' and `end` < '2025-02-28 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-02-28 10:50:18] Production.INFO: count ==3181 [2025-02-28 10:50:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:50:06 - End Time 2025-02-28 10:50:06 [2025-02-28 10:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575951', 'tblTempUsageDetail_20' ) start [2025-02-28 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575951', 'tblTempUsageDetail_20' ) end [2025-02-28 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575951', 'tblTempVendorCDR_20' ) start [2025-02-28 10:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575951', 'tblTempVendorCDR_20' ) end [2025-02-28 10:50:20] Production.INFO: ProcessCDR(1,14575951,1,1,2) [2025-02-28 10:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575951', 'tblTempUsageDetail_20' ) start [2025-02-28 10:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575951', 'tblTempUsageDetail_20' ) end [2025-02-28 10:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:50:24] Production.INFO: ==8065== Releasing lock... [2025-02-28 10:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:50:24] Production.INFO: 52.75 MB #Memory Used# [2025-02-28 10:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:51:06 [end_date_ymd] => 2025-02-28 10:51:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:51:06' and `end` < '2025-02-28 10: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-02-28 10:51:18] Production.INFO: count ==3250 [2025-02-28 10:51:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:51:06 - End Time 2025-02-28 10:51:06 [2025-02-28 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575956', 'tblTempUsageDetail_20' ) start [2025-02-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575956', 'tblTempUsageDetail_20' ) end [2025-02-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575956', 'tblTempVendorCDR_20' ) start [2025-02-28 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575956', 'tblTempVendorCDR_20' ) end [2025-02-28 10:51:20] Production.INFO: ProcessCDR(1,14575956,1,1,2) [2025-02-28 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575956', 'tblTempUsageDetail_20' ) start [2025-02-28 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575956', 'tblTempUsageDetail_20' ) end [2025-02-28 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:51:25] Production.INFO: ==8143== Releasing lock... [2025-02-28 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:51:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-28 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:52:06 [end_date_ymd] => 2025-02-28 10:52:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:52:06' and `end` < '2025-02-28 10: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-02-28 10:52:18] Production.INFO: count ==3269 [2025-02-28 10:52:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:52:06 - End Time 2025-02-28 10:52:06 [2025-02-28 10:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575961', 'tblTempUsageDetail_20' ) start [2025-02-28 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575961', 'tblTempUsageDetail_20' ) end [2025-02-28 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575961', 'tblTempVendorCDR_20' ) start [2025-02-28 10:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575961', 'tblTempVendorCDR_20' ) end [2025-02-28 10:52:20] Production.INFO: ProcessCDR(1,14575961,1,1,2) [2025-02-28 10:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575961', 'tblTempUsageDetail_20' ) start [2025-02-28 10:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575961', 'tblTempUsageDetail_20' ) end [2025-02-28 10:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:52:25] Production.INFO: ==8214== Releasing lock... [2025-02-28 10:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:52:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-28 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:53:06 [end_date_ymd] => 2025-02-28 10:53:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:53:06' and `end` < '2025-02-28 10: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-02-28 10:53:19] Production.INFO: count ==3275 [2025-02-28 10:53:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:53:06 - End Time 2025-02-28 10:53:06 [2025-02-28 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575966', 'tblTempUsageDetail_20' ) start [2025-02-28 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575966', 'tblTempUsageDetail_20' ) end [2025-02-28 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575966', 'tblTempVendorCDR_20' ) start [2025-02-28 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575966', 'tblTempVendorCDR_20' ) end [2025-02-28 10:53:20] Production.INFO: ProcessCDR(1,14575966,1,1,2) [2025-02-28 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575966', 'tblTempUsageDetail_20' ) start [2025-02-28 10:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575966', 'tblTempUsageDetail_20' ) end [2025-02-28 10:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:53:25] Production.INFO: ==8287== Releasing lock... [2025-02-28 10:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:53:25] Production.INFO: 54 MB #Memory Used# [2025-02-28 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:54:05 [end_date_ymd] => 2025-02-28 10:54:05 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:54:05' and `end` < '2025-02-28 10: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-02-28 10:54:18] Production.INFO: count ==3288 [2025-02-28 10:54:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:54:05 - End Time 2025-02-28 10:54:05 [2025-02-28 10:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575971', 'tblTempUsageDetail_20' ) start [2025-02-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575971', 'tblTempUsageDetail_20' ) end [2025-02-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575971', 'tblTempVendorCDR_20' ) start [2025-02-28 10:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575971', 'tblTempVendorCDR_20' ) end [2025-02-28 10:54:19] Production.INFO: ProcessCDR(1,14575971,1,1,2) [2025-02-28 10:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575971', 'tblTempUsageDetail_20' ) start [2025-02-28 10:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575971', 'tblTempUsageDetail_20' ) end [2025-02-28 10:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:54:25] Production.INFO: ==8357== Releasing lock... [2025-02-28 10:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:54:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-28 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:55:06 [end_date_ymd] => 2025-02-28 10:55:06 [RateCDR] => 1 ) [2025-02-28 10: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-02-28 07:55:06' and `end` < '2025-02-28 10: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-02-28 10:55:18] Production.INFO: count ==3293 [2025-02-28 10:55:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:55:06 - End Time 2025-02-28 10:55:06 [2025-02-28 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575976', 'tblTempUsageDetail_20' ) start [2025-02-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575976', 'tblTempUsageDetail_20' ) end [2025-02-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575976', 'tblTempVendorCDR_20' ) start [2025-02-28 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575976', 'tblTempVendorCDR_20' ) end [2025-02-28 10:55:20] Production.INFO: ProcessCDR(1,14575976,1,1,2) [2025-02-28 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575976', 'tblTempUsageDetail_20' ) start [2025-02-28 10:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575976', 'tblTempUsageDetail_20' ) end [2025-02-28 10:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:55:25] Production.INFO: ==8427== Releasing lock... [2025-02-28 10:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:55:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-28 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:56:05 [end_date_ymd] => 2025-02-28 10:56:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:56:05' and `end` < '2025-02-28 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-02-28 10:56:18] Production.INFO: count ==3288 [2025-02-28 10:56:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:56:05 - End Time 2025-02-28 10:56:05 [2025-02-28 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575981', 'tblTempUsageDetail_20' ) start [2025-02-28 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575981', 'tblTempUsageDetail_20' ) end [2025-02-28 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575981', 'tblTempVendorCDR_20' ) start [2025-02-28 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575981', 'tblTempVendorCDR_20' ) end [2025-02-28 10:56:19] Production.INFO: ProcessCDR(1,14575981,1,1,2) [2025-02-28 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575981', 'tblTempUsageDetail_20' ) start [2025-02-28 10:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575981', 'tblTempUsageDetail_20' ) end [2025-02-28 10:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:56:25] Production.INFO: ==8502== Releasing lock... [2025-02-28 10:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:56:25] Production.INFO: 53 MB #Memory Used# [2025-02-28 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:57:05 [end_date_ymd] => 2025-02-28 10:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:57:05' and `end` < '2025-02-28 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-02-28 10:57:18] Production.INFO: count ==3294 [2025-02-28 10:57:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:57:05 - End Time 2025-02-28 10:57:05 [2025-02-28 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575986', 'tblTempUsageDetail_20' ) start [2025-02-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575986', 'tblTempUsageDetail_20' ) end [2025-02-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575986', 'tblTempVendorCDR_20' ) start [2025-02-28 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575986', 'tblTempVendorCDR_20' ) end [2025-02-28 10:57:20] Production.INFO: ProcessCDR(1,14575986,1,1,2) [2025-02-28 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575986', 'tblTempUsageDetail_20' ) start [2025-02-28 10:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575986', 'tblTempUsageDetail_20' ) end [2025-02-28 10:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:57:25] Production.INFO: ==8573== Releasing lock... [2025-02-28 10:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:57:25] Production.INFO: 53 MB #Memory Used# [2025-02-28 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:58:05 [end_date_ymd] => 2025-02-28 10:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:58:05' and `end` < '2025-02-28 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-02-28 10:58:18] Production.INFO: count ==3313 [2025-02-28 10:58:19] Production.ERROR: pbx CDR StartTime 2025-02-28 07:58:05 - End Time 2025-02-28 10:58:05 [2025-02-28 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575991', 'tblTempUsageDetail_20' ) start [2025-02-28 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575991', 'tblTempUsageDetail_20' ) end [2025-02-28 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575991', 'tblTempVendorCDR_20' ) start [2025-02-28 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575991', 'tblTempVendorCDR_20' ) end [2025-02-28 10:58:19] Production.INFO: ProcessCDR(1,14575991,1,1,2) [2025-02-28 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575991', 'tblTempUsageDetail_20' ) start [2025-02-28 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575991', 'tblTempUsageDetail_20' ) end [2025-02-28 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:58:25] Production.INFO: ==8643== Releasing lock... [2025-02-28 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:58:25] Production.INFO: 53.5 MB #Memory Used# [2025-02-28 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 07:59:06 [end_date_ymd] => 2025-02-28 10:59:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 07:59:06' and `end` < '2025-02-28 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-02-28 10:59:18] Production.INFO: count ==3321 [2025-02-28 10:59:20] Production.ERROR: pbx CDR StartTime 2025-02-28 07:59:06 - End Time 2025-02-28 10:59:06 [2025-02-28 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575996', 'tblTempUsageDetail_20' ) start [2025-02-28 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14575996', 'tblTempUsageDetail_20' ) end [2025-02-28 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575996', 'tblTempVendorCDR_20' ) start [2025-02-28 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14575996', 'tblTempVendorCDR_20' ) end [2025-02-28 10:59:20] Production.INFO: ProcessCDR(1,14575996,1,1,2) [2025-02-28 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14575996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14575996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14575996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14575996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575996', 'tblTempUsageDetail_20' ) start [2025-02-28 10:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14575996', 'tblTempUsageDetail_20' ) end [2025-02-28 10:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 10:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 10:59:25] Production.INFO: ==8717== Releasing lock... [2025-02-28 10:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 10:59:25] Production.INFO: 53.25 MB #Memory Used# [2025-02-28 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:00:06 [end_date_ymd] => 2025-02-28 11:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:00:06' and `end` < '2025-02-28 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-02-28 11:00:19] Production.INFO: count ==3339 [2025-02-28 11:00:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:00:06 - End Time 2025-02-28 11:00:06 [2025-02-28 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576002', 'tblTempUsageDetail_20' ) start [2025-02-28 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576002', 'tblTempUsageDetail_20' ) end [2025-02-28 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576002', 'tblTempVendorCDR_20' ) start [2025-02-28 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576002', 'tblTempVendorCDR_20' ) end [2025-02-28 11:00:20] Production.INFO: ProcessCDR(1,14576002,1,1,2) [2025-02-28 11:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576002', 'tblTempUsageDetail_20' ) start [2025-02-28 11:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576002', 'tblTempUsageDetail_20' ) end [2025-02-28 11:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:00:26] Production.INFO: ==8791== Releasing lock... [2025-02-28 11:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:00:26] Production.INFO: 53.75 MB #Memory Used# [2025-02-28 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:01:05 [end_date_ymd] => 2025-02-28 11:01:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:01:05' and `end` < '2025-02-28 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-02-28 11:01:18] Production.INFO: count ==3430 [2025-02-28 11:01:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:01:05 - End Time 2025-02-28 11:01:05 [2025-02-28 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576007', 'tblTempUsageDetail_20' ) start [2025-02-28 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576007', 'tblTempUsageDetail_20' ) end [2025-02-28 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576007', 'tblTempVendorCDR_20' ) start [2025-02-28 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576007', 'tblTempVendorCDR_20' ) end [2025-02-28 11:01:20] Production.INFO: ProcessCDR(1,14576007,1,1,2) [2025-02-28 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576007', 'tblTempUsageDetail_20' ) start [2025-02-28 11:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576007', 'tblTempUsageDetail_20' ) end [2025-02-28 11:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:01:25] Production.INFO: ==8875== Releasing lock... [2025-02-28 11:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:01:25] Production.INFO: 54 MB #Memory Used# [2025-02-28 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:02:06 [end_date_ymd] => 2025-02-28 11:02:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:02:06' and `end` < '2025-02-28 11: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-02-28 11:02:19] Production.INFO: count ==3442 [2025-02-28 11:02:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:02:06 - End Time 2025-02-28 11:02:06 [2025-02-28 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576012', 'tblTempUsageDetail_20' ) start [2025-02-28 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576012', 'tblTempUsageDetail_20' ) end [2025-02-28 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576012', 'tblTempVendorCDR_20' ) start [2025-02-28 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576012', 'tblTempVendorCDR_20' ) end [2025-02-28 11:02:21] Production.INFO: ProcessCDR(1,14576012,1,1,2) [2025-02-28 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576012', 'tblTempUsageDetail_20' ) start [2025-02-28 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576012', 'tblTempUsageDetail_20' ) end [2025-02-28 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:02:26] Production.INFO: ==9065== Releasing lock... [2025-02-28 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:02:26] Production.INFO: 53.75 MB #Memory Used# [2025-02-28 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:03:06 [end_date_ymd] => 2025-02-28 11:03:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:03:06' and `end` < '2025-02-28 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-02-28 11:03:19] Production.INFO: count ==3451 [2025-02-28 11:03:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:03:06 - End Time 2025-02-28 11:03:06 [2025-02-28 11:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576017', 'tblTempUsageDetail_20' ) start [2025-02-28 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576017', 'tblTempUsageDetail_20' ) end [2025-02-28 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576017', 'tblTempVendorCDR_20' ) start [2025-02-28 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576017', 'tblTempVendorCDR_20' ) end [2025-02-28 11:03:21] Production.INFO: ProcessCDR(1,14576017,1,1,2) [2025-02-28 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576017', 'tblTempUsageDetail_20' ) start [2025-02-28 11:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576017', 'tblTempUsageDetail_20' ) end [2025-02-28 11:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:03:26] Production.INFO: ==9139== Releasing lock... [2025-02-28 11:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:03:26] Production.INFO: 55 MB #Memory Used# [2025-02-28 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:04:05 [end_date_ymd] => 2025-02-28 11:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:04:05' and `end` < '2025-02-28 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-02-28 11:04:18] Production.INFO: count ==3477 [2025-02-28 11:04:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:04:05 - End Time 2025-02-28 11:04:05 [2025-02-28 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576022', 'tblTempUsageDetail_20' ) start [2025-02-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576022', 'tblTempUsageDetail_20' ) end [2025-02-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576022', 'tblTempVendorCDR_20' ) start [2025-02-28 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576022', 'tblTempVendorCDR_20' ) end [2025-02-28 11:04:20] Production.INFO: ProcessCDR(1,14576022,1,1,2) [2025-02-28 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576022', 'tblTempUsageDetail_20' ) start [2025-02-28 11:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576022', 'tblTempUsageDetail_20' ) end [2025-02-28 11:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:04:25] Production.INFO: ==9217== Releasing lock... [2025-02-28 11:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:04:25] Production.INFO: 55 MB #Memory Used# [2025-02-28 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:05:06 [end_date_ymd] => 2025-02-28 11:05:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:05:06' and `end` < '2025-02-28 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-02-28 11:05:19] Production.INFO: count ==3493 [2025-02-28 11:05:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:05:06 - End Time 2025-02-28 11:05:06 [2025-02-28 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576027', 'tblTempUsageDetail_20' ) start [2025-02-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576027', 'tblTempUsageDetail_20' ) end [2025-02-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576027', 'tblTempVendorCDR_20' ) start [2025-02-28 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576027', 'tblTempVendorCDR_20' ) end [2025-02-28 11:05:21] Production.INFO: ProcessCDR(1,14576027,1,1,2) [2025-02-28 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576027', 'tblTempUsageDetail_20' ) start [2025-02-28 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576027', 'tblTempUsageDetail_20' ) end [2025-02-28 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:05:26] Production.INFO: ==9372== Releasing lock... [2025-02-28 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:05:26] Production.INFO: 55 MB #Memory Used# [2025-02-28 11:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:06:06 [end_date_ymd] => 2025-02-28 11:06:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:06:06' and `end` < '2025-02-28 11: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-02-28 11:06:18] Production.INFO: count ==3510 [2025-02-28 11:06:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:06:06 - End Time 2025-02-28 11:06:06 [2025-02-28 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576032', 'tblTempUsageDetail_20' ) start [2025-02-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576032', 'tblTempUsageDetail_20' ) end [2025-02-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576032', 'tblTempVendorCDR_20' ) start [2025-02-28 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576032', 'tblTempVendorCDR_20' ) end [2025-02-28 11:06:20] Production.INFO: ProcessCDR(1,14576032,1,1,2) [2025-02-28 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576032', 'tblTempUsageDetail_20' ) start [2025-02-28 11:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576032', 'tblTempUsageDetail_20' ) end [2025-02-28 11:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:06:25] Production.INFO: ==9443== Releasing lock... [2025-02-28 11:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:06:25] Production.INFO: 55.25 MB #Memory Used# [2025-02-28 11:07:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:07:07 [end_date_ymd] => 2025-02-28 11:07:07 [RateCDR] => 1 ) [2025-02-28 11:07: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-02-28 08:07:07' and `end` < '2025-02-28 11:07: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-02-28 11:07:19] Production.INFO: count ==3534 [2025-02-28 11:07:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:07:07 - End Time 2025-02-28 11:07:07 [2025-02-28 11:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576037', 'tblTempUsageDetail_20' ) start [2025-02-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576037', 'tblTempUsageDetail_20' ) end [2025-02-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576037', 'tblTempVendorCDR_20' ) start [2025-02-28 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576037', 'tblTempVendorCDR_20' ) end [2025-02-28 11:07:21] Production.INFO: ProcessCDR(1,14576037,1,1,2) [2025-02-28 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576037', 'tblTempUsageDetail_20' ) start [2025-02-28 11:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576037', 'tblTempUsageDetail_20' ) end [2025-02-28 11:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:07:27] Production.INFO: ==9513== Releasing lock... [2025-02-28 11:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:07:27] Production.INFO: 54.5 MB #Memory Used# [2025-02-28 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:08:06 [end_date_ymd] => 2025-02-28 11:08:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:08:06' and `end` < '2025-02-28 11: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-02-28 11:08:19] Production.INFO: count ==3542 [2025-02-28 11:08:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:08:06 - End Time 2025-02-28 11:08:06 [2025-02-28 11:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576042', 'tblTempUsageDetail_20' ) start [2025-02-28 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576042', 'tblTempUsageDetail_20' ) end [2025-02-28 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576042', 'tblTempVendorCDR_20' ) start [2025-02-28 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576042', 'tblTempVendorCDR_20' ) end [2025-02-28 11:08:21] Production.INFO: ProcessCDR(1,14576042,1,1,2) [2025-02-28 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576042', 'tblTempUsageDetail_20' ) start [2025-02-28 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576042', 'tblTempUsageDetail_20' ) end [2025-02-28 11:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:08:26] Production.INFO: ==9648== Releasing lock... [2025-02-28 11:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:08:26] Production.INFO: 54.5 MB #Memory Used# [2025-02-28 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:09:05 [end_date_ymd] => 2025-02-28 11:09:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:09:05' and `end` < '2025-02-28 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-02-28 11:09:18] Production.INFO: count ==3552 [2025-02-28 11:09:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:09:05 - End Time 2025-02-28 11:09:05 [2025-02-28 11:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576047', 'tblTempUsageDetail_20' ) start [2025-02-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576047', 'tblTempUsageDetail_20' ) end [2025-02-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576047', 'tblTempVendorCDR_20' ) start [2025-02-28 11:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576047', 'tblTempVendorCDR_20' ) end [2025-02-28 11:09:20] Production.INFO: ProcessCDR(1,14576047,1,1,2) [2025-02-28 11:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576047', 'tblTempUsageDetail_20' ) start [2025-02-28 11:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576047', 'tblTempUsageDetail_20' ) end [2025-02-28 11:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:09:24] Production.INFO: ==9734== Releasing lock... [2025-02-28 11:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:09:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-28 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:10:06 [end_date_ymd] => 2025-02-28 11:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:10:06' and `end` < '2025-02-28 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-02-28 11:10:19] Production.INFO: count ==3574 [2025-02-28 11:10:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:10:06 - End Time 2025-02-28 11:10:06 [2025-02-28 11:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576052', 'tblTempUsageDetail_20' ) start [2025-02-28 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576052', 'tblTempUsageDetail_20' ) end [2025-02-28 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576052', 'tblTempVendorCDR_20' ) start [2025-02-28 11:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576052', 'tblTempVendorCDR_20' ) end [2025-02-28 11:10:20] Production.INFO: ProcessCDR(1,14576052,1,1,2) [2025-02-28 11:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576052', 'tblTempUsageDetail_20' ) start [2025-02-28 11:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576052', 'tblTempUsageDetail_20' ) end [2025-02-28 11:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:10:26] Production.INFO: ==9808== Releasing lock... [2025-02-28 11:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:10:26] Production.INFO: 55 MB #Memory Used# [2025-02-28 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:11:05 [end_date_ymd] => 2025-02-28 11:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:11:05' and `end` < '2025-02-28 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-02-28 11:11:18] Production.INFO: count ==3675 [2025-02-28 11:11:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:11:05 - End Time 2025-02-28 11:11:05 [2025-02-28 11:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576058', 'tblTempUsageDetail_20' ) start [2025-02-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576058', 'tblTempUsageDetail_20' ) end [2025-02-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576058', 'tblTempVendorCDR_20' ) start [2025-02-28 11:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576058', 'tblTempVendorCDR_20' ) end [2025-02-28 11:11:20] Production.INFO: ProcessCDR(1,14576058,1,1,2) [2025-02-28 11:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576058', 'tblTempUsageDetail_20' ) start [2025-02-28 11:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576058', 'tblTempUsageDetail_20' ) end [2025-02-28 11:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:11:25] Production.INFO: ==9882== Releasing lock... [2025-02-28 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:11:25] Production.INFO: 55.5 MB #Memory Used# [2025-02-28 11:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:12:06 [end_date_ymd] => 2025-02-28 11:12:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:12:06' and `end` < '2025-02-28 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-02-28 11:12:19] Production.INFO: count ==3691 [2025-02-28 11:12:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:12:06 - End Time 2025-02-28 11:12:06 [2025-02-28 11:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576063', 'tblTempUsageDetail_20' ) start [2025-02-28 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576063', 'tblTempUsageDetail_20' ) end [2025-02-28 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576063', 'tblTempVendorCDR_20' ) start [2025-02-28 11:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576063', 'tblTempVendorCDR_20' ) end [2025-02-28 11:12:21] Production.INFO: ProcessCDR(1,14576063,1,1,2) [2025-02-28 11:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576063', 'tblTempUsageDetail_20' ) start [2025-02-28 11:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576063', 'tblTempUsageDetail_20' ) end [2025-02-28 11:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:12:26] Production.INFO: ==10029== Releasing lock... [2025-02-28 11:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:12:26] Production.INFO: 56 MB #Memory Used# [2025-02-28 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:13:05 [end_date_ymd] => 2025-02-28 11:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:13:05' and `end` < '2025-02-28 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-02-28 11:13:18] Production.INFO: count ==3713 [2025-02-28 11:13:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:13:05 - End Time 2025-02-28 11:13:05 [2025-02-28 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576068', 'tblTempUsageDetail_20' ) start [2025-02-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576068', 'tblTempUsageDetail_20' ) end [2025-02-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576068', 'tblTempVendorCDR_20' ) start [2025-02-28 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576068', 'tblTempVendorCDR_20' ) end [2025-02-28 11:13:20] Production.INFO: ProcessCDR(1,14576068,1,1,2) [2025-02-28 11:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576068', 'tblTempUsageDetail_20' ) start [2025-02-28 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576068', 'tblTempUsageDetail_20' ) end [2025-02-28 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:13:26] Production.INFO: ==10099== Releasing lock... [2025-02-28 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:13:26] Production.INFO: 56 MB #Memory Used# [2025-02-28 11:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:14:06 [end_date_ymd] => 2025-02-28 11:14:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:14:06' and `end` < '2025-02-28 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-02-28 11:14:19] Production.INFO: count ==3731 [2025-02-28 11:14:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:14:06 - End Time 2025-02-28 11:14:06 [2025-02-28 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576073', 'tblTempUsageDetail_20' ) start [2025-02-28 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576073', 'tblTempUsageDetail_20' ) end [2025-02-28 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576073', 'tblTempVendorCDR_20' ) start [2025-02-28 11:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576073', 'tblTempVendorCDR_20' ) end [2025-02-28 11:14:21] Production.INFO: ProcessCDR(1,14576073,1,1,2) [2025-02-28 11:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576073', 'tblTempUsageDetail_20' ) start [2025-02-28 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576073', 'tblTempUsageDetail_20' ) end [2025-02-28 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:14:26] Production.INFO: ==10171== Releasing lock... [2025-02-28 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:14:26] Production.INFO: 55.75 MB #Memory Used# [2025-02-28 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:15:05 [end_date_ymd] => 2025-02-28 11:15:05 [RateCDR] => 1 ) [2025-02-28 11:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:15:05' and `end` < '2025-02-28 11:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:15:18] Production.INFO: count ==3740 [2025-02-28 11:15:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:15:05 - End Time 2025-02-28 11:15:05 [2025-02-28 11:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576078', 'tblTempUsageDetail_20' ) start [2025-02-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576078', 'tblTempUsageDetail_20' ) end [2025-02-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576078', 'tblTempVendorCDR_20' ) start [2025-02-28 11:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576078', 'tblTempVendorCDR_20' ) end [2025-02-28 11:15:20] Production.INFO: ProcessCDR(1,14576078,1,1,2) [2025-02-28 11:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576078', 'tblTempUsageDetail_20' ) start [2025-02-28 11:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576078', 'tblTempUsageDetail_20' ) end [2025-02-28 11:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:15:25] Production.INFO: ==10321== Releasing lock... [2025-02-28 11:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:15:25] Production.INFO: 56.5 MB #Memory Used# [2025-02-28 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:16:06 [end_date_ymd] => 2025-02-28 11:16:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:16:06' and `end` < '2025-02-28 11: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-02-28 11:16:19] Production.INFO: count ==3737 [2025-02-28 11:16:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:16:06 - End Time 2025-02-28 11:16:06 [2025-02-28 11:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576083', 'tblTempUsageDetail_20' ) start [2025-02-28 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576083', 'tblTempUsageDetail_20' ) end [2025-02-28 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576083', 'tblTempVendorCDR_20' ) start [2025-02-28 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576083', 'tblTempVendorCDR_20' ) end [2025-02-28 11:16:21] Production.INFO: ProcessCDR(1,14576083,1,1,2) [2025-02-28 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576083', 'tblTempUsageDetail_20' ) start [2025-02-28 11:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576083', 'tblTempUsageDetail_20' ) end [2025-02-28 11:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:16:27] Production.INFO: ==10393== Releasing lock... [2025-02-28 11:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:16:27] Production.INFO: 56.75 MB #Memory Used# [2025-02-28 11:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:17:05 [end_date_ymd] => 2025-02-28 11:17:05 [RateCDR] => 1 ) [2025-02-28 11:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:17:05' and `end` < '2025-02-28 11:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:17:18] Production.INFO: count ==3772 [2025-02-28 11:17:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:17:05 - End Time 2025-02-28 11:17:05 [2025-02-28 11:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576088', 'tblTempUsageDetail_20' ) start [2025-02-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576088', 'tblTempUsageDetail_20' ) end [2025-02-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576088', 'tblTempVendorCDR_20' ) start [2025-02-28 11:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576088', 'tblTempVendorCDR_20' ) end [2025-02-28 11:17:20] Production.INFO: ProcessCDR(1,14576088,1,1,2) [2025-02-28 11:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576088', 'tblTempUsageDetail_20' ) start [2025-02-28 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576088', 'tblTempUsageDetail_20' ) end [2025-02-28 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:17:26] Production.INFO: ==10502== Releasing lock... [2025-02-28 11:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:17:26] Production.INFO: 56.25 MB #Memory Used# [2025-02-28 11:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:18:06 [end_date_ymd] => 2025-02-28 11:18:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:18:06' and `end` < '2025-02-28 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-02-28 11:18:19] Production.INFO: count ==3781 [2025-02-28 11:18:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:18:06 - End Time 2025-02-28 11:18:06 [2025-02-28 11:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576093', 'tblTempUsageDetail_20' ) start [2025-02-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576093', 'tblTempUsageDetail_20' ) end [2025-02-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576093', 'tblTempVendorCDR_20' ) start [2025-02-28 11:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576093', 'tblTempVendorCDR_20' ) end [2025-02-28 11:18:21] Production.INFO: ProcessCDR(1,14576093,1,1,2) [2025-02-28 11:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576093', 'tblTempUsageDetail_20' ) start [2025-02-28 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576093', 'tblTempUsageDetail_20' ) end [2025-02-28 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:18:26] Production.INFO: ==10579== Releasing lock... [2025-02-28 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:18:26] Production.INFO: 56.25 MB #Memory Used# [2025-02-28 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:19:05 [end_date_ymd] => 2025-02-28 11:19:05 [RateCDR] => 1 ) [2025-02-28 11:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:19:05' and `end` < '2025-02-28 11:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:19:18] Production.INFO: count ==3794 [2025-02-28 11:19:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:19:05 - End Time 2025-02-28 11:19:05 [2025-02-28 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576098', 'tblTempUsageDetail_20' ) start [2025-02-28 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576098', 'tblTempUsageDetail_20' ) end [2025-02-28 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576098', 'tblTempVendorCDR_20' ) start [2025-02-28 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576098', 'tblTempVendorCDR_20' ) end [2025-02-28 11:19:20] Production.INFO: ProcessCDR(1,14576098,1,1,2) [2025-02-28 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576098', 'tblTempUsageDetail_20' ) start [2025-02-28 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576098', 'tblTempUsageDetail_20' ) end [2025-02-28 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:19:26] Production.INFO: ==10652== Releasing lock... [2025-02-28 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:19:26] Production.INFO: 56.25 MB #Memory Used# [2025-02-28 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:20:07 [end_date_ymd] => 2025-02-28 11:20:07 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:20:07' and `end` < '2025-02-28 11: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-02-28 11:20:19] Production.INFO: count ==3817 [2025-02-28 11:20:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:20:07 - End Time 2025-02-28 11:20:07 [2025-02-28 11:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576104', 'tblTempUsageDetail_20' ) start [2025-02-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576104', 'tblTempUsageDetail_20' ) end [2025-02-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576104', 'tblTempVendorCDR_20' ) start [2025-02-28 11:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576104', 'tblTempVendorCDR_20' ) end [2025-02-28 11:20:21] Production.INFO: ProcessCDR(1,14576104,1,1,2) [2025-02-28 11:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576104', 'tblTempUsageDetail_20' ) start [2025-02-28 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576104', 'tblTempUsageDetail_20' ) end [2025-02-28 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:20:27] Production.INFO: ==10724== Releasing lock... [2025-02-28 11:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:20:27] Production.INFO: 56.5 MB #Memory Used# [2025-02-28 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:21:05 [end_date_ymd] => 2025-02-28 11:21:05 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:21:05' and `end` < '2025-02-28 11: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-02-28 11:21:18] Production.INFO: count ==3906 [2025-02-28 11:21:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:21:05 - End Time 2025-02-28 11:21:05 [2025-02-28 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576109', 'tblTempUsageDetail_20' ) start [2025-02-28 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576109', 'tblTempUsageDetail_20' ) end [2025-02-28 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576109', 'tblTempVendorCDR_20' ) start [2025-02-28 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576109', 'tblTempVendorCDR_20' ) end [2025-02-28 11:21:20] Production.INFO: ProcessCDR(1,14576109,1,1,2) [2025-02-28 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576109', 'tblTempUsageDetail_20' ) start [2025-02-28 11:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576109', 'tblTempUsageDetail_20' ) end [2025-02-28 11:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:21:25] Production.INFO: ==10797== Releasing lock... [2025-02-28 11:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:21:25] Production.INFO: 57.75 MB #Memory Used# [2025-02-28 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:22:06 [end_date_ymd] => 2025-02-28 11:22:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:22:06' and `end` < '2025-02-28 11: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-02-28 11:22:19] Production.INFO: count ==3912 [2025-02-28 11:22:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:22:06 - End Time 2025-02-28 11:22:06 [2025-02-28 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576114', 'tblTempUsageDetail_20' ) start [2025-02-28 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576114', 'tblTempUsageDetail_20' ) end [2025-02-28 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576114', 'tblTempVendorCDR_20' ) start [2025-02-28 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576114', 'tblTempVendorCDR_20' ) end [2025-02-28 11:22:21] Production.INFO: ProcessCDR(1,14576114,1,1,2) [2025-02-28 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576114', 'tblTempUsageDetail_20' ) start [2025-02-28 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576114', 'tblTempUsageDetail_20' ) end [2025-02-28 11:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:22:26] Production.INFO: ==10871== Releasing lock... [2025-02-28 11:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:22:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-28 11:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:23:06 [end_date_ymd] => 2025-02-28 11:23:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:23:06' and `end` < '2025-02-28 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-02-28 11:23:18] Production.INFO: count ==3920 [2025-02-28 11:23:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:23:06 - End Time 2025-02-28 11:23:06 [2025-02-28 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576119', 'tblTempUsageDetail_20' ) start [2025-02-28 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576119', 'tblTempUsageDetail_20' ) end [2025-02-28 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576119', 'tblTempVendorCDR_20' ) start [2025-02-28 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576119', 'tblTempVendorCDR_20' ) end [2025-02-28 11:23:20] Production.INFO: ProcessCDR(1,14576119,1,1,2) [2025-02-28 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576119', 'tblTempUsageDetail_20' ) start [2025-02-28 11:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576119', 'tblTempUsageDetail_20' ) end [2025-02-28 11:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:23:25] Production.INFO: ==10944== Releasing lock... [2025-02-28 11:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:23:25] Production.INFO: 57.25 MB #Memory Used# [2025-02-28 11:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:24:06 [end_date_ymd] => 2025-02-28 11:24:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:24:06' and `end` < '2025-02-28 11: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-02-28 11:24:19] Production.INFO: count ==3916 [2025-02-28 11:24:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:24:06 - End Time 2025-02-28 11:24:06 [2025-02-28 11:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576124', 'tblTempUsageDetail_20' ) start [2025-02-28 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576124', 'tblTempUsageDetail_20' ) end [2025-02-28 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576124', 'tblTempVendorCDR_20' ) start [2025-02-28 11:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576124', 'tblTempVendorCDR_20' ) end [2025-02-28 11:24:21] Production.INFO: ProcessCDR(1,14576124,1,1,2) [2025-02-28 11:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576124', 'tblTempUsageDetail_20' ) start [2025-02-28 11:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576124', 'tblTempUsageDetail_20' ) end [2025-02-28 11:24:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:24:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:24:24] Production.INFO: ==11019== Releasing lock... [2025-02-28 11:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:24:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-28 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:25:05 [end_date_ymd] => 2025-02-28 11:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:25:05' and `end` < '2025-02-28 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:25:18] Production.INFO: count ==3917 [2025-02-28 11:25:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:25:05 - End Time 2025-02-28 11:25:05 [2025-02-28 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576129', 'tblTempUsageDetail_20' ) start [2025-02-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576129', 'tblTempUsageDetail_20' ) end [2025-02-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576129', 'tblTempVendorCDR_20' ) start [2025-02-28 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576129', 'tblTempVendorCDR_20' ) end [2025-02-28 11:25:20] Production.INFO: ProcessCDR(1,14576129,1,1,2) [2025-02-28 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576129', 'tblTempUsageDetail_20' ) start [2025-02-28 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576129', 'tblTempUsageDetail_20' ) end [2025-02-28 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:25:26] Production.INFO: ==11089== Releasing lock... [2025-02-28 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:25:26] Production.INFO: 57.25 MB #Memory Used# [2025-02-28 11:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:26:06 [end_date_ymd] => 2025-02-28 11:26:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:26:06' and `end` < '2025-02-28 11: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-02-28 11:26:19] Production.INFO: count ==3926 [2025-02-28 11:26:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:26:06 - End Time 2025-02-28 11:26:06 [2025-02-28 11:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576134', 'tblTempUsageDetail_20' ) start [2025-02-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576134', 'tblTempUsageDetail_20' ) end [2025-02-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576134', 'tblTempVendorCDR_20' ) start [2025-02-28 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576134', 'tblTempVendorCDR_20' ) end [2025-02-28 11:26:21] Production.INFO: ProcessCDR(1,14576134,1,1,2) [2025-02-28 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576134', 'tblTempUsageDetail_20' ) start [2025-02-28 11:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576134', 'tblTempUsageDetail_20' ) end [2025-02-28 11:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:26:27] Production.INFO: ==11163== Releasing lock... [2025-02-28 11:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:26:27] Production.INFO: 57.25 MB #Memory Used# [2025-02-28 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:27:05 [end_date_ymd] => 2025-02-28 11:27:05 [RateCDR] => 1 ) [2025-02-28 11:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:27:05' and `end` < '2025-02-28 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-02-28 11:27:18] Production.INFO: count ==3952 [2025-02-28 11:27:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:27:05 - End Time 2025-02-28 11:27:05 [2025-02-28 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576139', 'tblTempUsageDetail_20' ) start [2025-02-28 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576139', 'tblTempUsageDetail_20' ) end [2025-02-28 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576139', 'tblTempVendorCDR_20' ) start [2025-02-28 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576139', 'tblTempVendorCDR_20' ) end [2025-02-28 11:27:20] Production.INFO: ProcessCDR(1,14576139,1,1,2) [2025-02-28 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576139', 'tblTempUsageDetail_20' ) start [2025-02-28 11:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576139', 'tblTempUsageDetail_20' ) end [2025-02-28 11:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:27:26] Production.INFO: ==11233== Releasing lock... [2025-02-28 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:27:26] Production.INFO: 57.5 MB #Memory Used# [2025-02-28 11:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:28:06 [end_date_ymd] => 2025-02-28 11:28:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:28:06' and `end` < '2025-02-28 11: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-02-28 11:28:19] Production.INFO: count ==3973 [2025-02-28 11:28:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:28:06 - End Time 2025-02-28 11:28:06 [2025-02-28 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576144', 'tblTempUsageDetail_20' ) start [2025-02-28 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576144', 'tblTempUsageDetail_20' ) end [2025-02-28 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576144', 'tblTempVendorCDR_20' ) start [2025-02-28 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576144', 'tblTempVendorCDR_20' ) end [2025-02-28 11:28:21] Production.INFO: ProcessCDR(1,14576144,1,1,2) [2025-02-28 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576144', 'tblTempUsageDetail_20' ) start [2025-02-28 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576144', 'tblTempUsageDetail_20' ) end [2025-02-28 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:28:26] Production.INFO: ==11308== Releasing lock... [2025-02-28 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:28:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-28 11:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:29:06 [end_date_ymd] => 2025-02-28 11:29:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:29:06' and `end` < '2025-02-28 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-02-28 11:29:18] Production.INFO: count ==3987 [2025-02-28 11:29:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:29:06 - End Time 2025-02-28 11:29:06 [2025-02-28 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576149', 'tblTempUsageDetail_20' ) start [2025-02-28 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576149', 'tblTempUsageDetail_20' ) end [2025-02-28 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576149', 'tblTempVendorCDR_20' ) start [2025-02-28 11:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576149', 'tblTempVendorCDR_20' ) end [2025-02-28 11:29:21] Production.INFO: ProcessCDR(1,14576149,1,1,2) [2025-02-28 11:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576149', 'tblTempUsageDetail_20' ) start [2025-02-28 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576149', 'tblTempUsageDetail_20' ) end [2025-02-28 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:29:26] Production.INFO: ==11385== Releasing lock... [2025-02-28 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:29:26] Production.INFO: 57.75 MB #Memory Used# [2025-02-28 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:30:06 [end_date_ymd] => 2025-02-28 11:30:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:30:06' and `end` < '2025-02-28 11: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-02-28 11:30:19] Production.INFO: count ==3996 [2025-02-28 11:30:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:30:06 - End Time 2025-02-28 11:30:06 [2025-02-28 11:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576155', 'tblTempUsageDetail_20' ) start [2025-02-28 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576155', 'tblTempUsageDetail_20' ) end [2025-02-28 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576155', 'tblTempVendorCDR_20' ) start [2025-02-28 11:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576155', 'tblTempVendorCDR_20' ) end [2025-02-28 11:30:21] Production.INFO: ProcessCDR(1,14576155,1,1,2) [2025-02-28 11:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576155', 'tblTempUsageDetail_20' ) start [2025-02-28 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576155', 'tblTempUsageDetail_20' ) end [2025-02-28 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:30:27] Production.INFO: ==11464== Releasing lock... [2025-02-28 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:30:27] Production.INFO: 57.75 MB #Memory Used# [2025-02-28 11:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:31:06 [end_date_ymd] => 2025-02-28 11:31:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:31:06' and `end` < '2025-02-28 11: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-02-28 11:31:19] Production.INFO: count ==4090 [2025-02-28 11:31:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:31:06 - End Time 2025-02-28 11:31:06 [2025-02-28 11:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576160', 'tblTempUsageDetail_20' ) start [2025-02-28 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576160', 'tblTempUsageDetail_20' ) end [2025-02-28 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576160', 'tblTempVendorCDR_20' ) start [2025-02-28 11:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576160', 'tblTempVendorCDR_20' ) end [2025-02-28 11:31:21] Production.INFO: ProcessCDR(1,14576160,1,1,2) [2025-02-28 11:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576160', 'tblTempUsageDetail_20' ) start [2025-02-28 11:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576160', 'tblTempUsageDetail_20' ) end [2025-02-28 11:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:31:28] Production.INFO: ==11538== Releasing lock... [2025-02-28 11:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:31:28] Production.INFO: 58.5 MB #Memory Used# [2025-02-28 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:32:05 [end_date_ymd] => 2025-02-28 11:32:05 [RateCDR] => 1 ) [2025-02-28 11:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:32:05' and `end` < '2025-02-28 11:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:32:18] Production.INFO: count ==4113 [2025-02-28 11:32:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:32:05 - End Time 2025-02-28 11:32:05 [2025-02-28 11:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576165', 'tblTempUsageDetail_20' ) start [2025-02-28 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576165', 'tblTempUsageDetail_20' ) end [2025-02-28 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576165', 'tblTempVendorCDR_20' ) start [2025-02-28 11:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576165', 'tblTempVendorCDR_20' ) end [2025-02-28 11:32:20] Production.INFO: ProcessCDR(1,14576165,1,1,2) [2025-02-28 11:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576165', 'tblTempUsageDetail_20' ) start [2025-02-28 11:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576165', 'tblTempUsageDetail_20' ) end [2025-02-28 11:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:32:25] Production.INFO: ==11646== Releasing lock... [2025-02-28 11:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:32:25] Production.INFO: 58.75 MB #Memory Used# [2025-02-28 11:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:33:06 [end_date_ymd] => 2025-02-28 11:33:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:33:06' and `end` < '2025-02-28 11: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-02-28 11:33:18] Production.INFO: count ==4124 [2025-02-28 11:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:33:06 - End Time 2025-02-28 11:33:06 [2025-02-28 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576170', 'tblTempUsageDetail_20' ) start [2025-02-28 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576170', 'tblTempUsageDetail_20' ) end [2025-02-28 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576170', 'tblTempVendorCDR_20' ) start [2025-02-28 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576170', 'tblTempVendorCDR_20' ) end [2025-02-28 11:33:21] Production.INFO: ProcessCDR(1,14576170,1,1,2) [2025-02-28 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576170', 'tblTempUsageDetail_20' ) start [2025-02-28 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576170', 'tblTempUsageDetail_20' ) end [2025-02-28 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:33:26] Production.INFO: ==11720== Releasing lock... [2025-02-28 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:33:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-28 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:34:05 [end_date_ymd] => 2025-02-28 11:34:05 [RateCDR] => 1 ) [2025-02-28 11:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:34:05' and `end` < '2025-02-28 11:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:34:18] Production.INFO: count ==4134 [2025-02-28 11:34:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:34:05 - End Time 2025-02-28 11:34:05 [2025-02-28 11:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576175', 'tblTempUsageDetail_20' ) start [2025-02-28 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576175', 'tblTempUsageDetail_20' ) end [2025-02-28 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576175', 'tblTempVendorCDR_20' ) start [2025-02-28 11:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576175', 'tblTempVendorCDR_20' ) end [2025-02-28 11:34:20] Production.INFO: ProcessCDR(1,14576175,1,1,2) [2025-02-28 11:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576175', 'tblTempUsageDetail_20' ) start [2025-02-28 11:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576175', 'tblTempUsageDetail_20' ) end [2025-02-28 11:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:34:25] Production.INFO: ==11796== Releasing lock... [2025-02-28 11:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:34:25] Production.INFO: 59 MB #Memory Used# [2025-02-28 11:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:35:06 [end_date_ymd] => 2025-02-28 11:35:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:35:06' and `end` < '2025-02-28 11: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-02-28 11:35:18] Production.INFO: count ==4128 [2025-02-28 11:35:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:35:06 - End Time 2025-02-28 11:35:06 [2025-02-28 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576180', 'tblTempUsageDetail_20' ) start [2025-02-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576180', 'tblTempUsageDetail_20' ) end [2025-02-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576180', 'tblTempVendorCDR_20' ) start [2025-02-28 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576180', 'tblTempVendorCDR_20' ) end [2025-02-28 11:35:20] Production.INFO: ProcessCDR(1,14576180,1,1,2) [2025-02-28 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576180', 'tblTempUsageDetail_20' ) start [2025-02-28 11:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576180', 'tblTempUsageDetail_20' ) end [2025-02-28 11:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:35:26] Production.INFO: ==11868== Releasing lock... [2025-02-28 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:35:26] Production.INFO: 58.75 MB #Memory Used# [2025-02-28 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:36:05 [end_date_ymd] => 2025-02-28 11:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:36:05' and `end` < '2025-02-28 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-02-28 11:36:18] Production.INFO: count ==4161 [2025-02-28 11:36:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:36:05 - End Time 2025-02-28 11:36:05 [2025-02-28 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576185', 'tblTempUsageDetail_20' ) start [2025-02-28 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576185', 'tblTempUsageDetail_20' ) end [2025-02-28 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576185', 'tblTempVendorCDR_20' ) start [2025-02-28 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576185', 'tblTempVendorCDR_20' ) end [2025-02-28 11:36:20] Production.INFO: ProcessCDR(1,14576185,1,1,2) [2025-02-28 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576185', 'tblTempUsageDetail_20' ) start [2025-02-28 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576185', 'tblTempUsageDetail_20' ) end [2025-02-28 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:36:25] Production.INFO: ==11949== Releasing lock... [2025-02-28 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:36:25] Production.INFO: 59 MB #Memory Used# [2025-02-28 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:37:06 [end_date_ymd] => 2025-02-28 11:37:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:37:06' and `end` < '2025-02-28 11: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-02-28 11:37:18] Production.INFO: count ==4176 [2025-02-28 11:37:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:37:06 - End Time 2025-02-28 11:37:06 [2025-02-28 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576190', 'tblTempUsageDetail_20' ) start [2025-02-28 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576190', 'tblTempUsageDetail_20' ) end [2025-02-28 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576190', 'tblTempVendorCDR_20' ) start [2025-02-28 11:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576190', 'tblTempVendorCDR_20' ) end [2025-02-28 11:37:21] Production.INFO: ProcessCDR(1,14576190,1,1,2) [2025-02-28 11:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576190', 'tblTempUsageDetail_20' ) start [2025-02-28 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576190', 'tblTempUsageDetail_20' ) end [2025-02-28 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:37:26] Production.INFO: ==12023== Releasing lock... [2025-02-28 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:37:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-28 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:38:05 [end_date_ymd] => 2025-02-28 11:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:38:05' and `end` < '2025-02-28 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-02-28 11:38:18] Production.INFO: count ==4174 [2025-02-28 11:38:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:38:05 - End Time 2025-02-28 11:38:05 [2025-02-28 11:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576195', 'tblTempUsageDetail_20' ) start [2025-02-28 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576195', 'tblTempUsageDetail_20' ) end [2025-02-28 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576195', 'tblTempVendorCDR_20' ) start [2025-02-28 11:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576195', 'tblTempVendorCDR_20' ) end [2025-02-28 11:38:20] Production.INFO: ProcessCDR(1,14576195,1,1,2) [2025-02-28 11:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576195', 'tblTempUsageDetail_20' ) start [2025-02-28 11:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576195', 'tblTempUsageDetail_20' ) end [2025-02-28 11:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:38:25] Production.INFO: ==12095== Releasing lock... [2025-02-28 11:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:38:25] Production.INFO: 59.5 MB #Memory Used# [2025-02-28 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:39:05 [end_date_ymd] => 2025-02-28 11:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:39:05' and `end` < '2025-02-28 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-02-28 11:39:18] Production.INFO: count ==4180 [2025-02-28 11:39:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:39:05 - End Time 2025-02-28 11:39:05 [2025-02-28 11:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576200', 'tblTempUsageDetail_20' ) start [2025-02-28 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576200', 'tblTempUsageDetail_20' ) end [2025-02-28 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576200', 'tblTempVendorCDR_20' ) start [2025-02-28 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576200', 'tblTempVendorCDR_20' ) end [2025-02-28 11:39:21] Production.INFO: ProcessCDR(1,14576200,1,1,2) [2025-02-28 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576200', 'tblTempUsageDetail_20' ) start [2025-02-28 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576200', 'tblTempUsageDetail_20' ) end [2025-02-28 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:39:26] Production.INFO: ==12173== Releasing lock... [2025-02-28 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:39:26] Production.INFO: 59.25 MB #Memory Used# [2025-02-28 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:40:06 [end_date_ymd] => 2025-02-28 11:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:40:06' and `end` < '2025-02-28 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-02-28 11:40:19] Production.INFO: count ==4212 [2025-02-28 11:40:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:40:06 - End Time 2025-02-28 11:40:06 [2025-02-28 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576205', 'tblTempUsageDetail_20' ) start [2025-02-28 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576205', 'tblTempUsageDetail_20' ) end [2025-02-28 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576205', 'tblTempVendorCDR_20' ) start [2025-02-28 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576205', 'tblTempVendorCDR_20' ) end [2025-02-28 11:40:21] Production.INFO: ProcessCDR(1,14576205,1,1,2) [2025-02-28 11:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576205', 'tblTempUsageDetail_20' ) start [2025-02-28 11:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576205', 'tblTempUsageDetail_20' ) end [2025-02-28 11:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:40:26] Production.INFO: ==12249== Releasing lock... [2025-02-28 11:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:40:26] Production.INFO: 59.5 MB #Memory Used# [2025-02-28 11:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:41:06 [end_date_ymd] => 2025-02-28 11:41:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:41:06' and `end` < '2025-02-28 11: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-02-28 11:41:19] Production.INFO: count ==4305 [2025-02-28 11:41:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:41:06 - End Time 2025-02-28 11:41:06 [2025-02-28 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576211', 'tblTempUsageDetail_20' ) start [2025-02-28 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576211', 'tblTempUsageDetail_20' ) end [2025-02-28 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576211', 'tblTempVendorCDR_20' ) start [2025-02-28 11:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576211', 'tblTempVendorCDR_20' ) end [2025-02-28 11:41:21] Production.INFO: ProcessCDR(1,14576211,1,1,2) [2025-02-28 11:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576211', 'tblTempUsageDetail_20' ) start [2025-02-28 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576211', 'tblTempUsageDetail_20' ) end [2025-02-28 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:41:26] Production.INFO: ==12330== Releasing lock... [2025-02-28 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:41:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-28 11:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:42:05 [end_date_ymd] => 2025-02-28 11:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:42:05' and `end` < '2025-02-28 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-02-28 11:42:18] Production.INFO: count ==4327 [2025-02-28 11:42:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:42:05 - End Time 2025-02-28 11:42:05 [2025-02-28 11:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576216', 'tblTempUsageDetail_20' ) start [2025-02-28 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576216', 'tblTempUsageDetail_20' ) end [2025-02-28 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576216', 'tblTempVendorCDR_20' ) start [2025-02-28 11:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576216', 'tblTempVendorCDR_20' ) end [2025-02-28 11:42:20] Production.INFO: ProcessCDR(1,14576216,1,1,2) [2025-02-28 11:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576216', 'tblTempUsageDetail_20' ) start [2025-02-28 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576216', 'tblTempUsageDetail_20' ) end [2025-02-28 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:42:26] Production.INFO: ==12402== Releasing lock... [2025-02-28 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:42:26] Production.INFO: 60.25 MB #Memory Used# [2025-02-28 11:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:43:06 [end_date_ymd] => 2025-02-28 11:43:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:43:06' and `end` < '2025-02-28 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-02-28 11:43:19] Production.INFO: count ==4324 [2025-02-28 11:43:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:43:06 - End Time 2025-02-28 11:43:06 [2025-02-28 11:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576221', 'tblTempUsageDetail_20' ) start [2025-02-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576221', 'tblTempUsageDetail_20' ) end [2025-02-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576221', 'tblTempVendorCDR_20' ) start [2025-02-28 11:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576221', 'tblTempVendorCDR_20' ) end [2025-02-28 11:43:21] Production.INFO: ProcessCDR(1,14576221,1,1,2) [2025-02-28 11:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576221', 'tblTempUsageDetail_20' ) start [2025-02-28 11:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576221', 'tblTempUsageDetail_20' ) end [2025-02-28 11:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:43:27] Production.INFO: ==12483== Releasing lock... [2025-02-28 11:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:43:27] Production.INFO: 60.25 MB #Memory Used# [2025-02-28 11:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:44:05 [end_date_ymd] => 2025-02-28 11:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:44:05' and `end` < '2025-02-28 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-02-28 11:44:18] Production.INFO: count ==4357 [2025-02-28 11:44:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:44:05 - End Time 2025-02-28 11:44:05 [2025-02-28 11:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576226', 'tblTempUsageDetail_20' ) start [2025-02-28 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576226', 'tblTempUsageDetail_20' ) end [2025-02-28 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576226', 'tblTempVendorCDR_20' ) start [2025-02-28 11:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576226', 'tblTempVendorCDR_20' ) end [2025-02-28 11:44:20] Production.INFO: ProcessCDR(1,14576226,1,1,2) [2025-02-28 11:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576226', 'tblTempUsageDetail_20' ) start [2025-02-28 11:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576226', 'tblTempUsageDetail_20' ) end [2025-02-28 11:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:44:26] Production.INFO: ==12558== Releasing lock... [2025-02-28 11:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:44:26] Production.INFO: 60.5 MB #Memory Used# [2025-02-28 11:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:45:06 [end_date_ymd] => 2025-02-28 11:45:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:45:06' and `end` < '2025-02-28 11: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-02-28 11:45:19] Production.INFO: count ==4362 [2025-02-28 11:45:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:45:06 - End Time 2025-02-28 11:45:06 [2025-02-28 11:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576231', 'tblTempUsageDetail_20' ) start [2025-02-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576231', 'tblTempUsageDetail_20' ) end [2025-02-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576231', 'tblTempVendorCDR_20' ) start [2025-02-28 11:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576231', 'tblTempVendorCDR_20' ) end [2025-02-28 11:45:21] Production.INFO: ProcessCDR(1,14576231,1,1,2) [2025-02-28 11:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576231', 'tblTempUsageDetail_20' ) start [2025-02-28 11:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576231', 'tblTempUsageDetail_20' ) end [2025-02-28 11:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:45:27] Production.INFO: ==12631== Releasing lock... [2025-02-28 11:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:45:27] Production.INFO: 60.75 MB #Memory Used# [2025-02-28 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:46:05 [end_date_ymd] => 2025-02-28 11:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:46:05' and `end` < '2025-02-28 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-02-28 11:46:18] Production.INFO: count ==4372 [2025-02-28 11:46:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:46:05 - End Time 2025-02-28 11:46:05 [2025-02-28 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576236', 'tblTempUsageDetail_20' ) start [2025-02-28 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576236', 'tblTempUsageDetail_20' ) end [2025-02-28 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576236', 'tblTempVendorCDR_20' ) start [2025-02-28 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576236', 'tblTempVendorCDR_20' ) end [2025-02-28 11:46:20] Production.INFO: ProcessCDR(1,14576236,1,1,2) [2025-02-28 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576236', 'tblTempUsageDetail_20' ) start [2025-02-28 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576236', 'tblTempUsageDetail_20' ) end [2025-02-28 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:46:26] Production.INFO: ==12708== Releasing lock... [2025-02-28 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:46:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-28 11:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:47:06 [end_date_ymd] => 2025-02-28 11:47:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:47:06' and `end` < '2025-02-28 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-02-28 11:47:19] Production.INFO: count ==4373 [2025-02-28 11:47:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:47:06 - End Time 2025-02-28 11:47:06 [2025-02-28 11:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576241', 'tblTempUsageDetail_20' ) start [2025-02-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576241', 'tblTempUsageDetail_20' ) end [2025-02-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576241', 'tblTempVendorCDR_20' ) start [2025-02-28 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576241', 'tblTempVendorCDR_20' ) end [2025-02-28 11:47:21] Production.INFO: ProcessCDR(1,14576241,1,1,2) [2025-02-28 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576241', 'tblTempUsageDetail_20' ) start [2025-02-28 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576241', 'tblTempUsageDetail_20' ) end [2025-02-28 11:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:47:26] Production.INFO: ==12785== Releasing lock... [2025-02-28 11:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:47:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-28 11:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:48:06 [end_date_ymd] => 2025-02-28 11:48:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:48:06' and `end` < '2025-02-28 11: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-02-28 11:48:18] Production.INFO: count ==4378 [2025-02-28 11:48:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:48:06 - End Time 2025-02-28 11:48:06 [2025-02-28 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576246', 'tblTempUsageDetail_20' ) start [2025-02-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576246', 'tblTempUsageDetail_20' ) end [2025-02-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576246', 'tblTempVendorCDR_20' ) start [2025-02-28 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576246', 'tblTempVendorCDR_20' ) end [2025-02-28 11:48:21] Production.INFO: ProcessCDR(1,14576246,1,1,2) [2025-02-28 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576246', 'tblTempUsageDetail_20' ) start [2025-02-28 11:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576246', 'tblTempUsageDetail_20' ) end [2025-02-28 11:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:48:26] Production.INFO: ==12900== Releasing lock... [2025-02-28 11:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:48:26] Production.INFO: 60.75 MB #Memory Used# [2025-02-28 11:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:49:05 [end_date_ymd] => 2025-02-28 11:49:05 [RateCDR] => 1 ) [2025-02-28 11:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:49:05' and `end` < '2025-02-28 11:49:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:49:18] Production.INFO: count ==4400 [2025-02-28 11:49:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:49:05 - End Time 2025-02-28 11:49:05 [2025-02-28 11:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576248', 'tblTempUsageDetail_20' ) start [2025-02-28 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576248', 'tblTempUsageDetail_20' ) end [2025-02-28 11:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576248', 'tblTempVendorCDR_20' ) start [2025-02-28 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576248', 'tblTempVendorCDR_20' ) end [2025-02-28 11:49:21] Production.INFO: ProcessCDR(1,14576248,1,1,2) [2025-02-28 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576248', 'tblTempUsageDetail_20' ) start [2025-02-28 11:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576248', 'tblTempUsageDetail_20' ) end [2025-02-28 11:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:49:26] Production.INFO: ==12976== Releasing lock... [2025-02-28 11:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:49:26] Production.INFO: 61 MB #Memory Used# [2025-02-28 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:50:06 [end_date_ymd] => 2025-02-28 11:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:50:06' and `end` < '2025-02-28 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-02-28 11:50:19] Production.INFO: count ==4409 [2025-02-28 11:50:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:50:06 - End Time 2025-02-28 11:50:06 [2025-02-28 11:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576257', 'tblTempUsageDetail_20' ) start [2025-02-28 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576257', 'tblTempUsageDetail_20' ) end [2025-02-28 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576257', 'tblTempVendorCDR_20' ) start [2025-02-28 11:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576257', 'tblTempVendorCDR_20' ) end [2025-02-28 11:50:21] Production.INFO: ProcessCDR(1,14576257,1,1,2) [2025-02-28 11:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576257', 'tblTempUsageDetail_20' ) start [2025-02-28 11:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576257', 'tblTempUsageDetail_20' ) end [2025-02-28 11:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:50:26] Production.INFO: ==13056== Releasing lock... [2025-02-28 11:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:50:26] Production.INFO: 61 MB #Memory Used# [2025-02-28 11:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:51:06 [end_date_ymd] => 2025-02-28 11:51:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:51:06' and `end` < '2025-02-28 11: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-02-28 11:51:18] Production.INFO: count ==4469 [2025-02-28 11:51:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:51:06 - End Time 2025-02-28 11:51:06 [2025-02-28 11:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576262', 'tblTempUsageDetail_20' ) start [2025-02-28 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576262', 'tblTempUsageDetail_20' ) end [2025-02-28 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576262', 'tblTempVendorCDR_20' ) start [2025-02-28 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576262', 'tblTempVendorCDR_20' ) end [2025-02-28 11:51:21] Production.INFO: ProcessCDR(1,14576262,1,1,2) [2025-02-28 11:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576262', 'tblTempUsageDetail_20' ) start [2025-02-28 11:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576262', 'tblTempUsageDetail_20' ) end [2025-02-28 11:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:51:25] Production.INFO: ==13133== Releasing lock... [2025-02-28 11:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:51:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:52:05 [end_date_ymd] => 2025-02-28 11:52:05 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:52:05' and `end` < '2025-02-28 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-02-28 11:52:18] Production.INFO: count ==4475 [2025-02-28 11:52:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:52:05 - End Time 2025-02-28 11:52:05 [2025-02-28 11:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576267', 'tblTempUsageDetail_20' ) start [2025-02-28 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576267', 'tblTempUsageDetail_20' ) end [2025-02-28 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576267', 'tblTempVendorCDR_20' ) start [2025-02-28 11:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576267', 'tblTempVendorCDR_20' ) end [2025-02-28 11:52:20] Production.INFO: ProcessCDR(1,14576267,1,1,2) [2025-02-28 11:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576267', 'tblTempUsageDetail_20' ) start [2025-02-28 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576267', 'tblTempUsageDetail_20' ) end [2025-02-28 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:52:23] Production.INFO: ==13208== Releasing lock... [2025-02-28 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:52:23] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:53:05 [end_date_ymd] => 2025-02-28 11:53:05 [RateCDR] => 1 ) [2025-02-28 11:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 08:53:05' and `end` < '2025-02-28 11:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 11:53:18] Production.INFO: count ==4470 [2025-02-28 11:53:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:53:05 - End Time 2025-02-28 11:53:05 [2025-02-28 11:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576272', 'tblTempUsageDetail_20' ) start [2025-02-28 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576272', 'tblTempUsageDetail_20' ) end [2025-02-28 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576272', 'tblTempVendorCDR_20' ) start [2025-02-28 11:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576272', 'tblTempVendorCDR_20' ) end [2025-02-28 11:53:20] Production.INFO: ProcessCDR(1,14576272,1,1,2) [2025-02-28 11:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576272', 'tblTempUsageDetail_20' ) start [2025-02-28 11:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576272', 'tblTempUsageDetail_20' ) end [2025-02-28 11:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:53:25] Production.INFO: ==13283== Releasing lock... [2025-02-28 11:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:53:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:54:06 [end_date_ymd] => 2025-02-28 11:54:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:54:06' and `end` < '2025-02-28 11: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-02-28 11:54:19] Production.INFO: count ==4456 [2025-02-28 11:54:21] Production.ERROR: pbx CDR StartTime 2025-02-28 08:54:06 - End Time 2025-02-28 11:54:06 [2025-02-28 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576277', 'tblTempUsageDetail_20' ) start [2025-02-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576277', 'tblTempUsageDetail_20' ) end [2025-02-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576277', 'tblTempVendorCDR_20' ) start [2025-02-28 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576277', 'tblTempVendorCDR_20' ) end [2025-02-28 11:54:21] Production.INFO: ProcessCDR(1,14576277,1,1,2) [2025-02-28 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576277', 'tblTempUsageDetail_20' ) start [2025-02-28 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576277', 'tblTempUsageDetail_20' ) end [2025-02-28 11:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:54:26] Production.INFO: ==13365== Releasing lock... [2025-02-28 11:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:54:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:55:05 [end_date_ymd] => 2025-02-28 11:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:55:05' and `end` < '2025-02-28 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-02-28 11:55:18] Production.INFO: count ==4453 [2025-02-28 11:55:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:55:05 - End Time 2025-02-28 11:55:05 [2025-02-28 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576282', 'tblTempUsageDetail_20' ) start [2025-02-28 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576282', 'tblTempUsageDetail_20' ) end [2025-02-28 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576282', 'tblTempVendorCDR_20' ) start [2025-02-28 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576282', 'tblTempVendorCDR_20' ) end [2025-02-28 11:55:20] Production.INFO: ProcessCDR(1,14576282,1,1,2) [2025-02-28 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576282', 'tblTempUsageDetail_20' ) start [2025-02-28 11:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576282', 'tblTempUsageDetail_20' ) end [2025-02-28 11:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:55:25] Production.INFO: ==13444== Releasing lock... [2025-02-28 11:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:55:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:56:06 [end_date_ymd] => 2025-02-28 11:56:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:56:06' and `end` < '2025-02-28 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-02-28 11:56:18] Production.INFO: count ==4463 [2025-02-28 11:56:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:56:06 - End Time 2025-02-28 11:56:06 [2025-02-28 11:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576287', 'tblTempUsageDetail_20' ) start [2025-02-28 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576287', 'tblTempUsageDetail_20' ) end [2025-02-28 11:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576287', 'tblTempVendorCDR_20' ) start [2025-02-28 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576287', 'tblTempVendorCDR_20' ) end [2025-02-28 11:56:21] Production.INFO: ProcessCDR(1,14576287,1,1,2) [2025-02-28 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576287', 'tblTempUsageDetail_20' ) start [2025-02-28 11:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576287', 'tblTempUsageDetail_20' ) end [2025-02-28 11:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:56:26] Production.INFO: ==13518== Releasing lock... [2025-02-28 11:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:56:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:57:05 [end_date_ymd] => 2025-02-28 11:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:57:05' and `end` < '2025-02-28 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-02-28 11:57:18] Production.INFO: count ==4466 [2025-02-28 11:57:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:57:05 - End Time 2025-02-28 11:57:05 [2025-02-28 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576292', 'tblTempUsageDetail_20' ) start [2025-02-28 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576292', 'tblTempUsageDetail_20' ) end [2025-02-28 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576292', 'tblTempVendorCDR_20' ) start [2025-02-28 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576292', 'tblTempVendorCDR_20' ) end [2025-02-28 11:57:20] Production.INFO: ProcessCDR(1,14576292,1,1,2) [2025-02-28 11:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576292', 'tblTempUsageDetail_20' ) start [2025-02-28 11:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576292', 'tblTempUsageDetail_20' ) end [2025-02-28 11:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:57:25] Production.INFO: ==13592== Releasing lock... [2025-02-28 11:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:57:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:58:06 [end_date_ymd] => 2025-02-28 11:58:06 [RateCDR] => 1 ) [2025-02-28 11: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-02-28 08:58:06' and `end` < '2025-02-28 11: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-02-28 11:58:19] Production.INFO: count ==4478 [2025-02-28 11:58:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:58:06 - End Time 2025-02-28 11:58:06 [2025-02-28 11:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576297', 'tblTempUsageDetail_20' ) start [2025-02-28 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576297', 'tblTempUsageDetail_20' ) end [2025-02-28 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576297', 'tblTempVendorCDR_20' ) start [2025-02-28 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576297', 'tblTempVendorCDR_20' ) end [2025-02-28 11:58:21] Production.INFO: ProcessCDR(1,14576297,1,1,2) [2025-02-28 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576297', 'tblTempUsageDetail_20' ) start [2025-02-28 11:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576297', 'tblTempUsageDetail_20' ) end [2025-02-28 11:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:58:25] Production.INFO: ==13669== Releasing lock... [2025-02-28 11:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:58:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 08:59:05 [end_date_ymd] => 2025-02-28 11:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 08:59:05' and `end` < '2025-02-28 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-02-28 11:59:18] Production.INFO: count ==4475 [2025-02-28 11:59:20] Production.ERROR: pbx CDR StartTime 2025-02-28 08:59:05 - End Time 2025-02-28 11:59:05 [2025-02-28 11:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576302', 'tblTempUsageDetail_20' ) start [2025-02-28 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576302', 'tblTempUsageDetail_20' ) end [2025-02-28 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576302', 'tblTempVendorCDR_20' ) start [2025-02-28 11:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576302', 'tblTempVendorCDR_20' ) end [2025-02-28 11:59:20] Production.INFO: ProcessCDR(1,14576302,1,1,2) [2025-02-28 11:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 11:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576302', 'tblTempUsageDetail_20' ) start [2025-02-28 11:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576302', 'tblTempUsageDetail_20' ) end [2025-02-28 11:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 11:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 11:59:25] Production.INFO: ==13743== Releasing lock... [2025-02-28 11:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 11:59:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:00:06 [end_date_ymd] => 2025-02-28 12:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:00:06' and `end` < '2025-02-28 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-02-28 12:00:19] Production.INFO: count ==4474 [2025-02-28 12:00:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:00:06 - End Time 2025-02-28 12:00:06 [2025-02-28 12:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576308', 'tblTempUsageDetail_20' ) start [2025-02-28 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576308', 'tblTempUsageDetail_20' ) end [2025-02-28 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576308', 'tblTempVendorCDR_20' ) start [2025-02-28 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576308', 'tblTempVendorCDR_20' ) end [2025-02-28 12:00:22] Production.INFO: ProcessCDR(1,14576308,1,1,2) [2025-02-28 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576308', 'tblTempUsageDetail_20' ) start [2025-02-28 12:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576308', 'tblTempUsageDetail_20' ) end [2025-02-28 12:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:00:27] Production.INFO: ==13824== Releasing lock... [2025-02-28 12:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:00:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:01:05 [end_date_ymd] => 2025-02-28 12:01:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:01:05' and `end` < '2025-02-28 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-02-28 12:01:18] Production.INFO: count ==4528 [2025-02-28 12:01:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:01:05 - End Time 2025-02-28 12:01:05 [2025-02-28 12:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576313', 'tblTempUsageDetail_20' ) start [2025-02-28 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576313', 'tblTempUsageDetail_20' ) end [2025-02-28 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576313', 'tblTempVendorCDR_20' ) start [2025-02-28 12:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576313', 'tblTempVendorCDR_20' ) end [2025-02-28 12:01:20] Production.INFO: ProcessCDR(1,14576313,1,1,2) [2025-02-28 12:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576313', 'tblTempUsageDetail_20' ) start [2025-02-28 12:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576313', 'tblTempUsageDetail_20' ) end [2025-02-28 12:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:01:25] Production.INFO: ==13913== Releasing lock... [2025-02-28 12:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:01:25] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:02:06 [end_date_ymd] => 2025-02-28 12:02:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:02:06' and `end` < '2025-02-28 12: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-02-28 12:02:18] Production.INFO: count ==4506 [2025-02-28 12:02:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:02:06 - End Time 2025-02-28 12:02:06 [2025-02-28 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576318', 'tblTempUsageDetail_20' ) start [2025-02-28 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576318', 'tblTempUsageDetail_20' ) end [2025-02-28 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576318', 'tblTempVendorCDR_20' ) start [2025-02-28 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576318', 'tblTempVendorCDR_20' ) end [2025-02-28 12:02:21] Production.INFO: ProcessCDR(1,14576318,1,1,2) [2025-02-28 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576318', 'tblTempUsageDetail_20' ) start [2025-02-28 12:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576318', 'tblTempUsageDetail_20' ) end [2025-02-28 12:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:02:26] Production.INFO: ==13990== Releasing lock... [2025-02-28 12:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:02:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:03:05 [end_date_ymd] => 2025-02-28 12:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:03:05' and `end` < '2025-02-28 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-02-28 12:03:18] Production.INFO: count ==4497 [2025-02-28 12:03:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:03:05 - End Time 2025-02-28 12:03:05 [2025-02-28 12:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576323', 'tblTempUsageDetail_20' ) start [2025-02-28 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576323', 'tblTempUsageDetail_20' ) end [2025-02-28 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576323', 'tblTempVendorCDR_20' ) start [2025-02-28 12:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576323', 'tblTempVendorCDR_20' ) end [2025-02-28 12:03:20] Production.INFO: ProcessCDR(1,14576323,1,1,2) [2025-02-28 12:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576323', 'tblTempUsageDetail_20' ) start [2025-02-28 12:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576323', 'tblTempUsageDetail_20' ) end [2025-02-28 12:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:03:25] Production.INFO: ==14104== Releasing lock... [2025-02-28 12:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:03:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:04:05 [end_date_ymd] => 2025-02-28 12:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:04:05' and `end` < '2025-02-28 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-02-28 12:04:18] Production.INFO: count ==4488 [2025-02-28 12:04:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:04:05 - End Time 2025-02-28 12:04:05 [2025-02-28 12:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576328', 'tblTempUsageDetail_20' ) start [2025-02-28 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576328', 'tblTempUsageDetail_20' ) end [2025-02-28 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576328', 'tblTempVendorCDR_20' ) start [2025-02-28 12:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576328', 'tblTempVendorCDR_20' ) end [2025-02-28 12:04:20] Production.INFO: ProcessCDR(1,14576328,1,1,2) [2025-02-28 12:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576328', 'tblTempUsageDetail_20' ) start [2025-02-28 12:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576328', 'tblTempUsageDetail_20' ) end [2025-02-28 12:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:04:25] Production.INFO: ==14179== Releasing lock... [2025-02-28 12:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:04:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:05:05 [end_date_ymd] => 2025-02-28 12:05:05 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:05:05' and `end` < '2025-02-28 12: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-02-28 12:05:18] Production.INFO: count ==4478 [2025-02-28 12:05:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:05:05 - End Time 2025-02-28 12:05:05 [2025-02-28 12:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576333', 'tblTempUsageDetail_20' ) start [2025-02-28 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576333', 'tblTempUsageDetail_20' ) end [2025-02-28 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576333', 'tblTempVendorCDR_20' ) start [2025-02-28 12:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576333', 'tblTempVendorCDR_20' ) end [2025-02-28 12:05:20] Production.INFO: ProcessCDR(1,14576333,1,1,2) [2025-02-28 12:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576333', 'tblTempUsageDetail_20' ) start [2025-02-28 12:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576333', 'tblTempUsageDetail_20' ) end [2025-02-28 12:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:05:25] Production.INFO: ==14255== Releasing lock... [2025-02-28 12:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:05:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:06:05 [end_date_ymd] => 2025-02-28 12:06:05 [RateCDR] => 1 ) [2025-02-28 12:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 09:06:05' and `end` < '2025-02-28 12:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 12:06:18] Production.INFO: count ==4456 [2025-02-28 12:06:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:06:05 - End Time 2025-02-28 12:06:05 [2025-02-28 12:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576338', 'tblTempUsageDetail_20' ) start [2025-02-28 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576338', 'tblTempUsageDetail_20' ) end [2025-02-28 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576338', 'tblTempVendorCDR_20' ) start [2025-02-28 12:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576338', 'tblTempVendorCDR_20' ) end [2025-02-28 12:06:20] Production.INFO: ProcessCDR(1,14576338,1,1,2) [2025-02-28 12:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576338', 'tblTempUsageDetail_20' ) start [2025-02-28 12:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576338', 'tblTempUsageDetail_20' ) end [2025-02-28 12:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:06:25] Production.INFO: ==14325== Releasing lock... [2025-02-28 12:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:06:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:07:05 [end_date_ymd] => 2025-02-28 12:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:07:05' and `end` < '2025-02-28 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-02-28 12:07:18] Production.INFO: count ==4441 [2025-02-28 12:07:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:07:05 - End Time 2025-02-28 12:07:05 [2025-02-28 12:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576343', 'tblTempUsageDetail_20' ) start [2025-02-28 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576343', 'tblTempUsageDetail_20' ) end [2025-02-28 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576343', 'tblTempVendorCDR_20' ) start [2025-02-28 12:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576343', 'tblTempVendorCDR_20' ) end [2025-02-28 12:07:20] Production.INFO: ProcessCDR(1,14576343,1,1,2) [2025-02-28 12:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576343', 'tblTempUsageDetail_20' ) start [2025-02-28 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576343', 'tblTempUsageDetail_20' ) end [2025-02-28 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:07:26] Production.INFO: ==14405== Releasing lock... [2025-02-28 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:07:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:08:06 [end_date_ymd] => 2025-02-28 12:08:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:08:06' and `end` < '2025-02-28 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-02-28 12:08:19] Production.INFO: count ==4423 [2025-02-28 12:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:08:06 - End Time 2025-02-28 12:08:06 [2025-02-28 12:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576348', 'tblTempUsageDetail_20' ) start [2025-02-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576348', 'tblTempUsageDetail_20' ) end [2025-02-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576348', 'tblTempVendorCDR_20' ) start [2025-02-28 12:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576348', 'tblTempVendorCDR_20' ) end [2025-02-28 12:08:21] Production.INFO: ProcessCDR(1,14576348,1,1,2) [2025-02-28 12:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576348', 'tblTempUsageDetail_20' ) start [2025-02-28 12:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576348', 'tblTempUsageDetail_20' ) end [2025-02-28 12:08:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:08:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:08:26] Production.INFO: ==14481== Releasing lock... [2025-02-28 12:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:08:26] Production.INFO: 61 MB #Memory Used# [2025-02-28 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:09:06 [end_date_ymd] => 2025-02-28 12:09:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:09:06' and `end` < '2025-02-28 12: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-02-28 12:09:18] Production.INFO: count ==4418 [2025-02-28 12:09:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:09:06 - End Time 2025-02-28 12:09:06 [2025-02-28 12:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576353', 'tblTempUsageDetail_20' ) start [2025-02-28 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576353', 'tblTempUsageDetail_20' ) end [2025-02-28 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576353', 'tblTempVendorCDR_20' ) start [2025-02-28 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576353', 'tblTempVendorCDR_20' ) end [2025-02-28 12:09:21] Production.INFO: ProcessCDR(1,14576353,1,1,2) [2025-02-28 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576353', 'tblTempUsageDetail_20' ) start [2025-02-28 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576353', 'tblTempUsageDetail_20' ) end [2025-02-28 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:09:26] Production.INFO: ==14556== Releasing lock... [2025-02-28 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:09:26] Production.INFO: 61 MB #Memory Used# [2025-02-28 12:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:10:06 [end_date_ymd] => 2025-02-28 12:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:10:06' and `end` < '2025-02-28 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-02-28 12:10:19] Production.INFO: count ==4436 [2025-02-28 12:10:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:10:06 - End Time 2025-02-28 12:10:06 [2025-02-28 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576358', 'tblTempUsageDetail_20' ) start [2025-02-28 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576358', 'tblTempUsageDetail_20' ) end [2025-02-28 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576358', 'tblTempVendorCDR_20' ) start [2025-02-28 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576358', 'tblTempVendorCDR_20' ) end [2025-02-28 12:10:21] Production.INFO: ProcessCDR(1,14576358,1,1,2) [2025-02-28 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576358', 'tblTempUsageDetail_20' ) start [2025-02-28 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576358', 'tblTempUsageDetail_20' ) end [2025-02-28 12:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:10:26] Production.INFO: ==14633== Releasing lock... [2025-02-28 12:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:10:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:11:05 [end_date_ymd] => 2025-02-28 12:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:11:05' and `end` < '2025-02-28 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-02-28 12:11:18] Production.INFO: count ==4472 [2025-02-28 12:11:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:11:05 - End Time 2025-02-28 12:11:05 [2025-02-28 12:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576364', 'tblTempUsageDetail_20' ) start [2025-02-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576364', 'tblTempUsageDetail_20' ) end [2025-02-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576364', 'tblTempVendorCDR_20' ) start [2025-02-28 12:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576364', 'tblTempVendorCDR_20' ) end [2025-02-28 12:11:20] Production.INFO: ProcessCDR(1,14576364,1,1,2) [2025-02-28 12:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576364', 'tblTempUsageDetail_20' ) start [2025-02-28 12:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576364', 'tblTempUsageDetail_20' ) end [2025-02-28 12:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:11:25] Production.INFO: ==14710== Releasing lock... [2025-02-28 12:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:11:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:12:05 [end_date_ymd] => 2025-02-28 12:12:05 [RateCDR] => 1 ) [2025-02-28 12:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 09:12:05' and `end` < '2025-02-28 12:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 12:12:18] Production.INFO: count ==4475 [2025-02-28 12:12:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:12:05 - End Time 2025-02-28 12:12:05 [2025-02-28 12:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576369', 'tblTempUsageDetail_20' ) start [2025-02-28 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576369', 'tblTempUsageDetail_20' ) end [2025-02-28 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576369', 'tblTempVendorCDR_20' ) start [2025-02-28 12:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576369', 'tblTempVendorCDR_20' ) end [2025-02-28 12:12:20] Production.INFO: ProcessCDR(1,14576369,1,1,2) [2025-02-28 12:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576369', 'tblTempUsageDetail_20' ) start [2025-02-28 12:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576369', 'tblTempUsageDetail_20' ) end [2025-02-28 12:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:12:25] Production.INFO: ==14784== Releasing lock... [2025-02-28 12:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:12:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:13:05 [end_date_ymd] => 2025-02-28 12:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:13:05' and `end` < '2025-02-28 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-02-28 12:13:18] Production.INFO: count ==4506 [2025-02-28 12:13:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:13:05 - End Time 2025-02-28 12:13:05 [2025-02-28 12:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576374', 'tblTempUsageDetail_20' ) start [2025-02-28 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576374', 'tblTempUsageDetail_20' ) end [2025-02-28 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576374', 'tblTempVendorCDR_20' ) start [2025-02-28 12:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576374', 'tblTempVendorCDR_20' ) end [2025-02-28 12:13:20] Production.INFO: ProcessCDR(1,14576374,1,1,2) [2025-02-28 12:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576374', 'tblTempUsageDetail_20' ) start [2025-02-28 12:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576374', 'tblTempUsageDetail_20' ) end [2025-02-28 12:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:13:25] Production.INFO: ==14857== Releasing lock... [2025-02-28 12:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:13:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:14:06 [end_date_ymd] => 2025-02-28 12:14:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:14:06' and `end` < '2025-02-28 12: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-02-28 12:14:19] Production.INFO: count ==4507 [2025-02-28 12:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:14:06 - End Time 2025-02-28 12:14:06 [2025-02-28 12:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576379', 'tblTempUsageDetail_20' ) start [2025-02-28 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576379', 'tblTempUsageDetail_20' ) end [2025-02-28 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576379', 'tblTempVendorCDR_20' ) start [2025-02-28 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576379', 'tblTempVendorCDR_20' ) end [2025-02-28 12:14:21] Production.INFO: ProcessCDR(1,14576379,1,1,2) [2025-02-28 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576379', 'tblTempUsageDetail_20' ) start [2025-02-28 12:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576379', 'tblTempUsageDetail_20' ) end [2025-02-28 12:14:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:14:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:14:25] Production.INFO: ==14930== Releasing lock... [2025-02-28 12:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:14:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:15:05 [end_date_ymd] => 2025-02-28 12:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:15:05' and `end` < '2025-02-28 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-02-28 12:15:18] Production.INFO: count ==4509 [2025-02-28 12:15:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:15:05 - End Time 2025-02-28 12:15:05 [2025-02-28 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576384', 'tblTempUsageDetail_20' ) start [2025-02-28 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576384', 'tblTempUsageDetail_20' ) end [2025-02-28 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576384', 'tblTempVendorCDR_20' ) start [2025-02-28 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576384', 'tblTempVendorCDR_20' ) end [2025-02-28 12:15:20] Production.INFO: ProcessCDR(1,14576384,1,1,2) [2025-02-28 12:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576384', 'tblTempUsageDetail_20' ) start [2025-02-28 12:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576384', 'tblTempUsageDetail_20' ) end [2025-02-28 12:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:15:25] Production.INFO: ==15003== Releasing lock... [2025-02-28 12:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:15:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:16:06 [end_date_ymd] => 2025-02-28 12:16:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:16:06' and `end` < '2025-02-28 12: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-02-28 12:16:18] Production.INFO: count ==4499 [2025-02-28 12:16:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:16:06 - End Time 2025-02-28 12:16:06 [2025-02-28 12:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576389', 'tblTempUsageDetail_20' ) start [2025-02-28 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576389', 'tblTempUsageDetail_20' ) end [2025-02-28 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576389', 'tblTempVendorCDR_20' ) start [2025-02-28 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576389', 'tblTempVendorCDR_20' ) end [2025-02-28 12:16:21] Production.INFO: ProcessCDR(1,14576389,1,1,2) [2025-02-28 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576389', 'tblTempUsageDetail_20' ) start [2025-02-28 12:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576389', 'tblTempUsageDetail_20' ) end [2025-02-28 12:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:16:25] Production.INFO: ==15081== Releasing lock... [2025-02-28 12:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:16:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:17:05 [end_date_ymd] => 2025-02-28 12:17:05 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:17:05' and `end` < '2025-02-28 12: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-02-28 12:17:18] Production.INFO: count ==4478 [2025-02-28 12:17:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:17:05 - End Time 2025-02-28 12:17:05 [2025-02-28 12:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576394', 'tblTempUsageDetail_20' ) start [2025-02-28 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576394', 'tblTempUsageDetail_20' ) end [2025-02-28 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576394', 'tblTempVendorCDR_20' ) start [2025-02-28 12:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576394', 'tblTempVendorCDR_20' ) end [2025-02-28 12:17:20] Production.INFO: ProcessCDR(1,14576394,1,1,2) [2025-02-28 12:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576394', 'tblTempUsageDetail_20' ) start [2025-02-28 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576394', 'tblTempUsageDetail_20' ) end [2025-02-28 12:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:17:26] Production.INFO: ==15157== Releasing lock... [2025-02-28 12:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:17:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:18:05 [end_date_ymd] => 2025-02-28 12:18:05 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:18:05' and `end` < '2025-02-28 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-02-28 12:18:18] Production.INFO: count ==4479 [2025-02-28 12:18:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:18:05 - End Time 2025-02-28 12:18:05 [2025-02-28 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576399', 'tblTempUsageDetail_20' ) start [2025-02-28 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576399', 'tblTempUsageDetail_20' ) end [2025-02-28 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576399', 'tblTempVendorCDR_20' ) start [2025-02-28 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576399', 'tblTempVendorCDR_20' ) end [2025-02-28 12:18:20] Production.INFO: ProcessCDR(1,14576399,1,1,2) [2025-02-28 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576399', 'tblTempUsageDetail_20' ) start [2025-02-28 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576399', 'tblTempUsageDetail_20' ) end [2025-02-28 12:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:18:26] Production.INFO: ==15243== Releasing lock... [2025-02-28 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:18:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:19:05 [end_date_ymd] => 2025-02-28 12:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:19:05' and `end` < '2025-02-28 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-02-28 12:19:18] Production.INFO: count ==4487 [2025-02-28 12:19:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:19:05 - End Time 2025-02-28 12:19:05 [2025-02-28 12:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576404', 'tblTempUsageDetail_20' ) start [2025-02-28 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576404', 'tblTempUsageDetail_20' ) end [2025-02-28 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576404', 'tblTempVendorCDR_20' ) start [2025-02-28 12:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576404', 'tblTempVendorCDR_20' ) end [2025-02-28 12:19:20] Production.INFO: ProcessCDR(1,14576404,1,1,2) [2025-02-28 12:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576404', 'tblTempUsageDetail_20' ) start [2025-02-28 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576404', 'tblTempUsageDetail_20' ) end [2025-02-28 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:19:26] Production.INFO: ==15361== Releasing lock... [2025-02-28 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:19:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:20:07 [end_date_ymd] => 2025-02-28 12:20:07 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:20:07' and `end` < '2025-02-28 12: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-02-28 12:20:19] Production.INFO: count ==4480 [2025-02-28 12:20:22] Production.ERROR: pbx CDR StartTime 2025-02-28 09:20:07 - End Time 2025-02-28 12:20:07 [2025-02-28 12:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576410', 'tblTempUsageDetail_20' ) start [2025-02-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576410', 'tblTempUsageDetail_20' ) end [2025-02-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576410', 'tblTempVendorCDR_20' ) start [2025-02-28 12:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576410', 'tblTempVendorCDR_20' ) end [2025-02-28 12:20:22] Production.INFO: ProcessCDR(1,14576410,1,1,2) [2025-02-28 12:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576410', 'tblTempUsageDetail_20' ) start [2025-02-28 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576410', 'tblTempUsageDetail_20' ) end [2025-02-28 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:20:27] Production.INFO: ==15444== Releasing lock... [2025-02-28 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:20:27] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:21:05 [end_date_ymd] => 2025-02-28 12:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:21:05' and `end` < '2025-02-28 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-02-28 12:21:18] Production.INFO: count ==4456 [2025-02-28 12:21:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:21:05 - End Time 2025-02-28 12:21:05 [2025-02-28 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576415', 'tblTempUsageDetail_20' ) start [2025-02-28 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576415', 'tblTempUsageDetail_20' ) end [2025-02-28 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576415', 'tblTempVendorCDR_20' ) start [2025-02-28 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576415', 'tblTempVendorCDR_20' ) end [2025-02-28 12:21:20] Production.INFO: ProcessCDR(1,14576415,1,1,2) [2025-02-28 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576415', 'tblTempUsageDetail_20' ) start [2025-02-28 12:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576415', 'tblTempUsageDetail_20' ) end [2025-02-28 12:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:21:25] Production.INFO: ==15526== Releasing lock... [2025-02-28 12:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:21:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:22:06 [end_date_ymd] => 2025-02-28 12:22:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:22:06' and `end` < '2025-02-28 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-02-28 12:22:19] Production.INFO: count ==4455 [2025-02-28 12:22:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:22:06 - End Time 2025-02-28 12:22:06 [2025-02-28 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576420', 'tblTempUsageDetail_20' ) start [2025-02-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576420', 'tblTempUsageDetail_20' ) end [2025-02-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576420', 'tblTempVendorCDR_20' ) start [2025-02-28 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576420', 'tblTempVendorCDR_20' ) end [2025-02-28 12:22:21] Production.INFO: ProcessCDR(1,14576420,1,1,2) [2025-02-28 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576420', 'tblTempUsageDetail_20' ) start [2025-02-28 12:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576420', 'tblTempUsageDetail_20' ) end [2025-02-28 12:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:22:26] Production.INFO: ==15614== Releasing lock... [2025-02-28 12:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:22:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:23:04 [end_date_ymd] => 2025-02-28 12:23:04 [RateCDR] => 1 ) [2025-02-28 12:23:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 09:23:04' and `end` < '2025-02-28 12:23:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 12:23:17] Production.INFO: count ==4439 [2025-02-28 12:23:19] Production.ERROR: pbx CDR StartTime 2025-02-28 09:23:04 - End Time 2025-02-28 12:23:04 [2025-02-28 12:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576425', 'tblTempUsageDetail_20' ) start [2025-02-28 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576425', 'tblTempUsageDetail_20' ) end [2025-02-28 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576425', 'tblTempVendorCDR_20' ) start [2025-02-28 12:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576425', 'tblTempVendorCDR_20' ) end [2025-02-28 12:23:19] Production.INFO: ProcessCDR(1,14576425,1,1,2) [2025-02-28 12:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576425', 'tblTempUsageDetail_20' ) start [2025-02-28 12:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576425', 'tblTempUsageDetail_20' ) end [2025-02-28 12:23:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:23:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:23:24] Production.INFO: ==15693== Releasing lock... [2025-02-28 12:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:23:24] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:24:05 [end_date_ymd] => 2025-02-28 12:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:24:05' and `end` < '2025-02-28 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-02-28 12:24:18] Production.INFO: count ==4450 [2025-02-28 12:24:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:24:05 - End Time 2025-02-28 12:24:05 [2025-02-28 12:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576430', 'tblTempUsageDetail_20' ) start [2025-02-28 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576430', 'tblTempUsageDetail_20' ) end [2025-02-28 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576430', 'tblTempVendorCDR_20' ) start [2025-02-28 12:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576430', 'tblTempVendorCDR_20' ) end [2025-02-28 12:24:20] Production.INFO: ProcessCDR(1,14576430,1,1,2) [2025-02-28 12:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576430', 'tblTempUsageDetail_20' ) start [2025-02-28 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576430', 'tblTempUsageDetail_20' ) end [2025-02-28 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:24:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:24:26] Production.INFO: ==15773== Releasing lock... [2025-02-28 12:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:24:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:25:06 [end_date_ymd] => 2025-02-28 12:25:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:25:06' and `end` < '2025-02-28 12: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-02-28 12:25:18] Production.INFO: count ==4446 [2025-02-28 12:25:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:25:06 - End Time 2025-02-28 12:25:06 [2025-02-28 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576435', 'tblTempUsageDetail_20' ) start [2025-02-28 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576435', 'tblTempUsageDetail_20' ) end [2025-02-28 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576435', 'tblTempVendorCDR_20' ) start [2025-02-28 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576435', 'tblTempVendorCDR_20' ) end [2025-02-28 12:25:20] Production.INFO: ProcessCDR(1,14576435,1,1,2) [2025-02-28 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576435', 'tblTempUsageDetail_20' ) start [2025-02-28 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576435', 'tblTempUsageDetail_20' ) end [2025-02-28 12:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:25:26] Production.INFO: ==15856== Releasing lock... [2025-02-28 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:25:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:26:05 [end_date_ymd] => 2025-02-28 12:26:05 [RateCDR] => 1 ) [2025-02-28 12:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 09:26:05' and `end` < '2025-02-28 12:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 12:26:18] Production.INFO: count ==4428 [2025-02-28 12:26:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:26:05 - End Time 2025-02-28 12:26:05 [2025-02-28 12:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576440', 'tblTempUsageDetail_20' ) start [2025-02-28 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576440', 'tblTempUsageDetail_20' ) end [2025-02-28 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576440', 'tblTempVendorCDR_20' ) start [2025-02-28 12:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576440', 'tblTempVendorCDR_20' ) end [2025-02-28 12:26:20] Production.INFO: ProcessCDR(1,14576440,1,1,2) [2025-02-28 12:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576440', 'tblTempUsageDetail_20' ) start [2025-02-28 12:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576440', 'tblTempUsageDetail_20' ) end [2025-02-28 12:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:26:25] Production.INFO: ==15938== Releasing lock... [2025-02-28 12:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:26:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:27:06 [end_date_ymd] => 2025-02-28 12:27:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:27:06' and `end` < '2025-02-28 12: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-02-28 12:27:18] Production.INFO: count ==4443 [2025-02-28 12:27:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:27:06 - End Time 2025-02-28 12:27:06 [2025-02-28 12:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576445', 'tblTempUsageDetail_20' ) start [2025-02-28 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576445', 'tblTempUsageDetail_20' ) end [2025-02-28 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576445', 'tblTempVendorCDR_20' ) start [2025-02-28 12:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576445', 'tblTempVendorCDR_20' ) end [2025-02-28 12:27:20] Production.INFO: ProcessCDR(1,14576445,1,1,2) [2025-02-28 12:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576445', 'tblTempUsageDetail_20' ) start [2025-02-28 12:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576445', 'tblTempUsageDetail_20' ) end [2025-02-28 12:27:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:27:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:27:25] Production.INFO: ==16020== Releasing lock... [2025-02-28 12:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:27:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:28:05 [end_date_ymd] => 2025-02-28 12:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:28:05' and `end` < '2025-02-28 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-02-28 12:28:18] Production.INFO: count ==4425 [2025-02-28 12:28:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:28:05 - End Time 2025-02-28 12:28:05 [2025-02-28 12:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576450', 'tblTempUsageDetail_20' ) start [2025-02-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576450', 'tblTempUsageDetail_20' ) end [2025-02-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576450', 'tblTempVendorCDR_20' ) start [2025-02-28 12:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576450', 'tblTempVendorCDR_20' ) end [2025-02-28 12:28:20] Production.INFO: ProcessCDR(1,14576450,1,1,2) [2025-02-28 12:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576450', 'tblTempUsageDetail_20' ) start [2025-02-28 12:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576450', 'tblTempUsageDetail_20' ) end [2025-02-28 12:28:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:28:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:28:25] Production.INFO: ==16104== Releasing lock... [2025-02-28 12:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:28:25] Production.INFO: 61 MB #Memory Used# [2025-02-28 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:29:06 [end_date_ymd] => 2025-02-28 12:29:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:29:06' and `end` < '2025-02-28 12: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-02-28 12:29:19] Production.INFO: count ==4451 [2025-02-28 12:29:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:29:06 - End Time 2025-02-28 12:29:06 [2025-02-28 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576455', 'tblTempUsageDetail_20' ) start [2025-02-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576455', 'tblTempUsageDetail_20' ) end [2025-02-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576455', 'tblTempVendorCDR_20' ) start [2025-02-28 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576455', 'tblTempVendorCDR_20' ) end [2025-02-28 12:29:21] Production.INFO: ProcessCDR(1,14576455,1,1,2) [2025-02-28 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576455', 'tblTempUsageDetail_20' ) start [2025-02-28 12:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576455', 'tblTempUsageDetail_20' ) end [2025-02-28 12:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:29:25] Production.INFO: ==16187== Releasing lock... [2025-02-28 12:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:29:25] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:30:06 [end_date_ymd] => 2025-02-28 12:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:30:06' and `end` < '2025-02-28 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-02-28 12:30:19] Production.INFO: count ==4448 [2025-02-28 12:30:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:30:06 - End Time 2025-02-28 12:30:06 [2025-02-28 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576461', 'tblTempUsageDetail_20' ) start [2025-02-28 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576461', 'tblTempUsageDetail_20' ) end [2025-02-28 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576461', 'tblTempVendorCDR_20' ) start [2025-02-28 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576461', 'tblTempVendorCDR_20' ) end [2025-02-28 12:30:21] Production.INFO: ProcessCDR(1,14576461,1,1,2) [2025-02-28 12:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576461', 'tblTempUsageDetail_20' ) start [2025-02-28 12:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576461', 'tblTempUsageDetail_20' ) end [2025-02-28 12:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:30:26] Production.INFO: ==16270== Releasing lock... [2025-02-28 12:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:30:26] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:31:06 [end_date_ymd] => 2025-02-28 12:31:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:31:06' and `end` < '2025-02-28 12: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-02-28 12:31:18] Production.INFO: count ==4476 [2025-02-28 12:31:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:31:06 - End Time 2025-02-28 12:31:06 [2025-02-28 12:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576466', 'tblTempUsageDetail_20' ) start [2025-02-28 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576466', 'tblTempUsageDetail_20' ) end [2025-02-28 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576466', 'tblTempVendorCDR_20' ) start [2025-02-28 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576466', 'tblTempVendorCDR_20' ) end [2025-02-28 12:31:21] Production.INFO: ProcessCDR(1,14576466,1,1,2) [2025-02-28 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576466', 'tblTempUsageDetail_20' ) start [2025-02-28 12:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576466', 'tblTempUsageDetail_20' ) end [2025-02-28 12:31:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:31:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:31:26] Production.INFO: ==16354== Releasing lock... [2025-02-28 12:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:31:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:32:06 [end_date_ymd] => 2025-02-28 12:32:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:32:06' and `end` < '2025-02-28 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-02-28 12:32:18] Production.INFO: count ==4483 [2025-02-28 12:32:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:32:06 - End Time 2025-02-28 12:32:06 [2025-02-28 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576471', 'tblTempUsageDetail_20' ) start [2025-02-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576471', 'tblTempUsageDetail_20' ) end [2025-02-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576471', 'tblTempVendorCDR_20' ) start [2025-02-28 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576471', 'tblTempVendorCDR_20' ) end [2025-02-28 12:32:21] Production.INFO: ProcessCDR(1,14576471,1,1,2) [2025-02-28 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576471', 'tblTempUsageDetail_20' ) start [2025-02-28 12:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576471', 'tblTempUsageDetail_20' ) end [2025-02-28 12:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:32:26] Production.INFO: ==16434== Releasing lock... [2025-02-28 12:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:32:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:33:06 [end_date_ymd] => 2025-02-28 12:33:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:33:06' and `end` < '2025-02-28 12: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-02-28 12:33:18] Production.INFO: count ==4480 [2025-02-28 12:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:33:06 - End Time 2025-02-28 12:33:06 [2025-02-28 12:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576476', 'tblTempUsageDetail_20' ) start [2025-02-28 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576476', 'tblTempUsageDetail_20' ) end [2025-02-28 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576476', 'tblTempVendorCDR_20' ) start [2025-02-28 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576476', 'tblTempVendorCDR_20' ) end [2025-02-28 12:33:21] Production.INFO: ProcessCDR(1,14576476,1,1,2) [2025-02-28 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576476', 'tblTempUsageDetail_20' ) start [2025-02-28 12:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576476', 'tblTempUsageDetail_20' ) end [2025-02-28 12:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:33:26] Production.INFO: ==16515== Releasing lock... [2025-02-28 12:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:33:26] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:34:05 [end_date_ymd] => 2025-02-28 12:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:34:05' and `end` < '2025-02-28 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-02-28 12:34:18] Production.INFO: count ==4489 [2025-02-28 12:34:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:34:05 - End Time 2025-02-28 12:34:05 [2025-02-28 12:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576481', 'tblTempUsageDetail_20' ) start [2025-02-28 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576481', 'tblTempUsageDetail_20' ) end [2025-02-28 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576481', 'tblTempVendorCDR_20' ) start [2025-02-28 12:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576481', 'tblTempVendorCDR_20' ) end [2025-02-28 12:34:20] Production.INFO: ProcessCDR(1,14576481,1,1,2) [2025-02-28 12:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576481', 'tblTempUsageDetail_20' ) start [2025-02-28 12:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576481', 'tblTempUsageDetail_20' ) end [2025-02-28 12:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:34:25] Production.INFO: ==16638== Releasing lock... [2025-02-28 12:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:34:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:35:05 [end_date_ymd] => 2025-02-28 12:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:35:05' and `end` < '2025-02-28 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-02-28 12:35:18] Production.INFO: count ==4496 [2025-02-28 12:35:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:35:05 - End Time 2025-02-28 12:35:05 [2025-02-28 12:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576486', 'tblTempUsageDetail_20' ) start [2025-02-28 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576486', 'tblTempUsageDetail_20' ) end [2025-02-28 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576486', 'tblTempVendorCDR_20' ) start [2025-02-28 12:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576486', 'tblTempVendorCDR_20' ) end [2025-02-28 12:35:20] Production.INFO: ProcessCDR(1,14576486,1,1,2) [2025-02-28 12:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576486', 'tblTempUsageDetail_20' ) start [2025-02-28 12:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576486', 'tblTempUsageDetail_20' ) end [2025-02-28 12:35:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:35:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:35:25] Production.INFO: ==16718== Releasing lock... [2025-02-28 12:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:35:25] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:36:05 [end_date_ymd] => 2025-02-28 12:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:36:05' and `end` < '2025-02-28 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-02-28 12:36:18] Production.INFO: count ==4508 [2025-02-28 12:36:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:36:05 - End Time 2025-02-28 12:36:05 [2025-02-28 12:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576491', 'tblTempUsageDetail_20' ) start [2025-02-28 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576491', 'tblTempUsageDetail_20' ) end [2025-02-28 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576491', 'tblTempVendorCDR_20' ) start [2025-02-28 12:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576491', 'tblTempVendorCDR_20' ) end [2025-02-28 12:36:20] Production.INFO: ProcessCDR(1,14576491,1,1,2) [2025-02-28 12:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576491', 'tblTempUsageDetail_20' ) start [2025-02-28 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576491', 'tblTempUsageDetail_20' ) end [2025-02-28 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:36:26] Production.INFO: ==16802== Releasing lock... [2025-02-28 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:36:26] Production.INFO: 61.75 MB #Memory Used# [2025-02-28 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:37:05 [end_date_ymd] => 2025-02-28 12:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:37:05' and `end` < '2025-02-28 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-02-28 12:37:18] Production.INFO: count ==4537 [2025-02-28 12:37:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:37:05 - End Time 2025-02-28 12:37:05 [2025-02-28 12:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576496', 'tblTempUsageDetail_20' ) start [2025-02-28 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576496', 'tblTempUsageDetail_20' ) end [2025-02-28 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576496', 'tblTempVendorCDR_20' ) start [2025-02-28 12:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576496', 'tblTempVendorCDR_20' ) end [2025-02-28 12:37:20] Production.INFO: ProcessCDR(1,14576496,1,1,2) [2025-02-28 12:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576496', 'tblTempUsageDetail_20' ) start [2025-02-28 12:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576496', 'tblTempUsageDetail_20' ) end [2025-02-28 12:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:37:25] Production.INFO: ==16881== Releasing lock... [2025-02-28 12:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:37:25] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:38:05 [end_date_ymd] => 2025-02-28 12:38:05 [RateCDR] => 1 ) [2025-02-28 12:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 09:38:05' and `end` < '2025-02-28 12:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 12:38:18] Production.INFO: count ==4540 [2025-02-28 12:38:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:38:05 - End Time 2025-02-28 12:38:05 [2025-02-28 12:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576501', 'tblTempUsageDetail_20' ) start [2025-02-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576501', 'tblTempUsageDetail_20' ) end [2025-02-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576501', 'tblTempVendorCDR_20' ) start [2025-02-28 12:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576501', 'tblTempVendorCDR_20' ) end [2025-02-28 12:38:20] Production.INFO: ProcessCDR(1,14576501,1,1,2) [2025-02-28 12:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576501', 'tblTempUsageDetail_20' ) start [2025-02-28 12:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576501', 'tblTempUsageDetail_20' ) end [2025-02-28 12:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:38:25] Production.INFO: ==16964== Releasing lock... [2025-02-28 12:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:38:25] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:39:05 [end_date_ymd] => 2025-02-28 12:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:39:05' and `end` < '2025-02-28 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-02-28 12:39:18] Production.INFO: count ==4539 [2025-02-28 12:39:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:39:05 - End Time 2025-02-28 12:39:05 [2025-02-28 12:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576506', 'tblTempUsageDetail_20' ) start [2025-02-28 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576506', 'tblTempUsageDetail_20' ) end [2025-02-28 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576506', 'tblTempVendorCDR_20' ) start [2025-02-28 12:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576506', 'tblTempVendorCDR_20' ) end [2025-02-28 12:39:20] Production.INFO: ProcessCDR(1,14576506,1,1,2) [2025-02-28 12:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576506', 'tblTempUsageDetail_20' ) start [2025-02-28 12:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576506', 'tblTempUsageDetail_20' ) end [2025-02-28 12:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:39:25] Production.INFO: ==17044== Releasing lock... [2025-02-28 12:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:39:25] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:40:05 [end_date_ymd] => 2025-02-28 12:40:05 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:40:05' and `end` < '2025-02-28 12:40:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 12:40:18] Production.INFO: count ==4536 [2025-02-28 12:40:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:40:05 - End Time 2025-02-28 12:40:05 [2025-02-28 12:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576511', 'tblTempUsageDetail_20' ) start [2025-02-28 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576511', 'tblTempUsageDetail_20' ) end [2025-02-28 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576511', 'tblTempVendorCDR_20' ) start [2025-02-28 12:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576511', 'tblTempVendorCDR_20' ) end [2025-02-28 12:40:20] Production.INFO: ProcessCDR(1,14576511,1,1,2) [2025-02-28 12:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576511', 'tblTempUsageDetail_20' ) start [2025-02-28 12:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576511', 'tblTempUsageDetail_20' ) end [2025-02-28 12:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:40:26] Production.INFO: ==17128== Releasing lock... [2025-02-28 12:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:40:26] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:41:05 [end_date_ymd] => 2025-02-28 12:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:41:05' and `end` < '2025-02-28 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-02-28 12:41:18] Production.INFO: count ==4533 [2025-02-28 12:41:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:41:05 - End Time 2025-02-28 12:41:05 [2025-02-28 12:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576517', 'tblTempUsageDetail_20' ) start [2025-02-28 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576517', 'tblTempUsageDetail_20' ) end [2025-02-28 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576517', 'tblTempVendorCDR_20' ) start [2025-02-28 12:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576517', 'tblTempVendorCDR_20' ) end [2025-02-28 12:41:20] Production.INFO: ProcessCDR(1,14576517,1,1,2) [2025-02-28 12:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576517', 'tblTempUsageDetail_20' ) start [2025-02-28 12:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576517', 'tblTempUsageDetail_20' ) end [2025-02-28 12:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:41:25] Production.INFO: ==17214== Releasing lock... [2025-02-28 12:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:41:25] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:42:05 [end_date_ymd] => 2025-02-28 12:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:42:05' and `end` < '2025-02-28 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-02-28 12:42:18] Production.INFO: count ==4554 [2025-02-28 12:42:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:42:05 - End Time 2025-02-28 12:42:05 [2025-02-28 12:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576522', 'tblTempUsageDetail_20' ) start [2025-02-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576522', 'tblTempUsageDetail_20' ) end [2025-02-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576522', 'tblTempVendorCDR_20' ) start [2025-02-28 12:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576522', 'tblTempVendorCDR_20' ) end [2025-02-28 12:42:20] Production.INFO: ProcessCDR(1,14576522,1,1,2) [2025-02-28 12:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576522', 'tblTempUsageDetail_20' ) start [2025-02-28 12:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576522', 'tblTempUsageDetail_20' ) end [2025-02-28 12:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:42:25] Production.INFO: ==17296== Releasing lock... [2025-02-28 12:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:42:25] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:43:05 [end_date_ymd] => 2025-02-28 12:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:43:05' and `end` < '2025-02-28 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-02-28 12:43:18] Production.INFO: count ==4543 [2025-02-28 12:43:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:43:05 - End Time 2025-02-28 12:43:05 [2025-02-28 12:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576527', 'tblTempUsageDetail_20' ) start [2025-02-28 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576527', 'tblTempUsageDetail_20' ) end [2025-02-28 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576527', 'tblTempVendorCDR_20' ) start [2025-02-28 12:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576527', 'tblTempVendorCDR_20' ) end [2025-02-28 12:43:20] Production.INFO: ProcessCDR(1,14576527,1,1,2) [2025-02-28 12:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576527', 'tblTempUsageDetail_20' ) start [2025-02-28 12:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576527', 'tblTempUsageDetail_20' ) end [2025-02-28 12:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:43:25] Production.INFO: ==17379== Releasing lock... [2025-02-28 12:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:43:25] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:44:06 [end_date_ymd] => 2025-02-28 12:44:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:44:06' and `end` < '2025-02-28 12: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-02-28 12:44:19] Production.INFO: count ==4547 [2025-02-28 12:44:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:44:06 - End Time 2025-02-28 12:44:06 [2025-02-28 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576532', 'tblTempUsageDetail_20' ) start [2025-02-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576532', 'tblTempUsageDetail_20' ) end [2025-02-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576532', 'tblTempVendorCDR_20' ) start [2025-02-28 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576532', 'tblTempVendorCDR_20' ) end [2025-02-28 12:44:21] Production.INFO: ProcessCDR(1,14576532,1,1,2) [2025-02-28 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576532', 'tblTempUsageDetail_20' ) start [2025-02-28 12:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576532', 'tblTempUsageDetail_20' ) end [2025-02-28 12:44:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:44:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:44:24] Production.INFO: ==17458== Releasing lock... [2025-02-28 12:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:44:24] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:45:04 [end_date_ymd] => 2025-02-28 12:45:04 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:45:04' and `end` < '2025-02-28 12: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-02-28 12:45:17] Production.INFO: count ==4554 [2025-02-28 12:45:19] Production.ERROR: pbx CDR StartTime 2025-02-28 09:45:04 - End Time 2025-02-28 12:45:04 [2025-02-28 12:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576537', 'tblTempUsageDetail_20' ) start [2025-02-28 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576537', 'tblTempUsageDetail_20' ) end [2025-02-28 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576537', 'tblTempVendorCDR_20' ) start [2025-02-28 12:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576537', 'tblTempVendorCDR_20' ) end [2025-02-28 12:45:20] Production.INFO: ProcessCDR(1,14576537,1,1,2) [2025-02-28 12:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576537', 'tblTempUsageDetail_20' ) start [2025-02-28 12:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576537', 'tblTempUsageDetail_20' ) end [2025-02-28 12:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:45:24] Production.INFO: ==17538== Releasing lock... [2025-02-28 12:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:45:24] Production.INFO: 62 MB #Memory Used# [2025-02-28 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:46:05 [end_date_ymd] => 2025-02-28 12:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:46:05' and `end` < '2025-02-28 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-02-28 12:46:19] Production.INFO: count ==4596 [2025-02-28 12:46:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:46:05 - End Time 2025-02-28 12:46:05 [2025-02-28 12:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576542', 'tblTempUsageDetail_20' ) start [2025-02-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576542', 'tblTempUsageDetail_20' ) end [2025-02-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576542', 'tblTempVendorCDR_20' ) start [2025-02-28 12:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576542', 'tblTempVendorCDR_20' ) end [2025-02-28 12:46:21] Production.INFO: ProcessCDR(1,14576542,1,1,2) [2025-02-28 12:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576542', 'tblTempUsageDetail_20' ) start [2025-02-28 12:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576542', 'tblTempUsageDetail_20' ) end [2025-02-28 12:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:46:26] Production.INFO: ==17620== Releasing lock... [2025-02-28 12:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:46:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-28 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:47:05 [end_date_ymd] => 2025-02-28 12:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:47:05' and `end` < '2025-02-28 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-02-28 12:47:19] Production.INFO: count ==4609 [2025-02-28 12:47:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:47:05 - End Time 2025-02-28 12:47:05 [2025-02-28 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576547', 'tblTempUsageDetail_20' ) start [2025-02-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576547', 'tblTempUsageDetail_20' ) end [2025-02-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576547', 'tblTempVendorCDR_20' ) start [2025-02-28 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576547', 'tblTempVendorCDR_20' ) end [2025-02-28 12:47:21] Production.INFO: ProcessCDR(1,14576547,1,1,2) [2025-02-28 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576547', 'tblTempUsageDetail_20' ) start [2025-02-28 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576547', 'tblTempUsageDetail_20' ) end [2025-02-28 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:47:26] Production.INFO: ==17698== Releasing lock... [2025-02-28 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:47:26] Production.INFO: 62.5 MB #Memory Used# [2025-02-28 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:48:05 [end_date_ymd] => 2025-02-28 12:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:48:05' and `end` < '2025-02-28 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-02-28 12:48:18] Production.INFO: count ==4632 [2025-02-28 12:48:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:48:05 - End Time 2025-02-28 12:48:05 [2025-02-28 12:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576552', 'tblTempUsageDetail_20' ) start [2025-02-28 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576552', 'tblTempUsageDetail_20' ) end [2025-02-28 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576552', 'tblTempVendorCDR_20' ) start [2025-02-28 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576552', 'tblTempVendorCDR_20' ) end [2025-02-28 12:48:21] Production.INFO: ProcessCDR(1,14576552,1,1,2) [2025-02-28 12:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576552', 'tblTempUsageDetail_20' ) start [2025-02-28 12:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576552', 'tblTempUsageDetail_20' ) end [2025-02-28 12:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:48:26] Production.INFO: ==17776== Releasing lock... [2025-02-28 12:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:48:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:49:05 [end_date_ymd] => 2025-02-28 12:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:49:05' and `end` < '2025-02-28 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-02-28 12:49:18] Production.INFO: count ==4619 [2025-02-28 12:49:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:49:05 - End Time 2025-02-28 12:49:05 [2025-02-28 12:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576557', 'tblTempUsageDetail_20' ) start [2025-02-28 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576557', 'tblTempUsageDetail_20' ) end [2025-02-28 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576557', 'tblTempVendorCDR_20' ) start [2025-02-28 12:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576557', 'tblTempVendorCDR_20' ) end [2025-02-28 12:49:20] Production.INFO: ProcessCDR(1,14576557,1,1,2) [2025-02-28 12:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576557', 'tblTempUsageDetail_20' ) start [2025-02-28 12:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576557', 'tblTempUsageDetail_20' ) end [2025-02-28 12:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:49:25] Production.INFO: ==17857== Releasing lock... [2025-02-28 12:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:49:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-28 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:50:06 [end_date_ymd] => 2025-02-28 12:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:50:06' and `end` < '2025-02-28 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-02-28 12:50:20] Production.INFO: count ==4625 [2025-02-28 12:50:22] Production.ERROR: pbx CDR StartTime 2025-02-28 09:50:06 - End Time 2025-02-28 12:50:06 [2025-02-28 12:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576563', 'tblTempUsageDetail_20' ) start [2025-02-28 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576563', 'tblTempUsageDetail_20' ) end [2025-02-28 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576563', 'tblTempVendorCDR_20' ) start [2025-02-28 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576563', 'tblTempVendorCDR_20' ) end [2025-02-28 12:50:22] Production.INFO: ProcessCDR(1,14576563,1,1,2) [2025-02-28 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576563', 'tblTempUsageDetail_20' ) start [2025-02-28 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576563', 'tblTempUsageDetail_20' ) end [2025-02-28 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:50:27] Production.INFO: ==17980== Releasing lock... [2025-02-28 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:50:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:51:04 [end_date_ymd] => 2025-02-28 12:51:04 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:51:04' and `end` < '2025-02-28 12: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-02-28 12:51:17] Production.INFO: count ==4643 [2025-02-28 12:51:19] Production.ERROR: pbx CDR StartTime 2025-02-28 09:51:04 - End Time 2025-02-28 12:51:04 [2025-02-28 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576568', 'tblTempUsageDetail_20' ) start [2025-02-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576568', 'tblTempUsageDetail_20' ) end [2025-02-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576568', 'tblTempVendorCDR_20' ) start [2025-02-28 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576568', 'tblTempVendorCDR_20' ) end [2025-02-28 12:51:19] Production.INFO: ProcessCDR(1,14576568,1,1,2) [2025-02-28 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576568', 'tblTempUsageDetail_20' ) start [2025-02-28 12:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576568', 'tblTempUsageDetail_20' ) end [2025-02-28 12:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:51:25] Production.INFO: ==18062== Releasing lock... [2025-02-28 12:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:51:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:52:06 [end_date_ymd] => 2025-02-28 12:52:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:52:06' and `end` < '2025-02-28 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-02-28 12:52:18] Production.INFO: count ==4644 [2025-02-28 12:52:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:52:06 - End Time 2025-02-28 12:52:06 [2025-02-28 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576573', 'tblTempUsageDetail_20' ) start [2025-02-28 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576573', 'tblTempUsageDetail_20' ) end [2025-02-28 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576573', 'tblTempVendorCDR_20' ) start [2025-02-28 12:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576573', 'tblTempVendorCDR_20' ) end [2025-02-28 12:52:21] Production.INFO: ProcessCDR(1,14576573,1,1,2) [2025-02-28 12:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576573', 'tblTempUsageDetail_20' ) start [2025-02-28 12:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576573', 'tblTempUsageDetail_20' ) end [2025-02-28 12:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:52:24] Production.INFO: ==18143== Releasing lock... [2025-02-28 12:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:52:24] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:53:05 [end_date_ymd] => 2025-02-28 12:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:53:05' and `end` < '2025-02-28 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-02-28 12:53:18] Production.INFO: count ==4646 [2025-02-28 12:53:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:53:05 - End Time 2025-02-28 12:53:05 [2025-02-28 12:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576578', 'tblTempUsageDetail_20' ) start [2025-02-28 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576578', 'tblTempUsageDetail_20' ) end [2025-02-28 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576578', 'tblTempVendorCDR_20' ) start [2025-02-28 12:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576578', 'tblTempVendorCDR_20' ) end [2025-02-28 12:53:20] Production.INFO: ProcessCDR(1,14576578,1,1,2) [2025-02-28 12:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576578', 'tblTempUsageDetail_20' ) start [2025-02-28 12:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576578', 'tblTempUsageDetail_20' ) end [2025-02-28 12:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:53:25] Production.INFO: ==18222== Releasing lock... [2025-02-28 12:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:53:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:54:05 [end_date_ymd] => 2025-02-28 12:54:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:54:05' and `end` < '2025-02-28 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-02-28 12:54:18] Production.INFO: count ==4660 [2025-02-28 12:54:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:54:05 - End Time 2025-02-28 12:54:05 [2025-02-28 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576583', 'tblTempUsageDetail_20' ) start [2025-02-28 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576583', 'tblTempUsageDetail_20' ) end [2025-02-28 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576583', 'tblTempVendorCDR_20' ) start [2025-02-28 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576583', 'tblTempVendorCDR_20' ) end [2025-02-28 12:54:20] Production.INFO: ProcessCDR(1,14576583,1,1,2) [2025-02-28 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576583', 'tblTempUsageDetail_20' ) start [2025-02-28 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576583', 'tblTempUsageDetail_20' ) end [2025-02-28 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:54:25] Production.INFO: ==18297== Releasing lock... [2025-02-28 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:54:25] Production.INFO: 63 MB #Memory Used# [2025-02-28 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:55:05 [end_date_ymd] => 2025-02-28 12:55:05 [RateCDR] => 1 ) [2025-02-28 12:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 09:55:05' and `end` < '2025-02-28 12:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 12:55:18] Production.INFO: count ==4679 [2025-02-28 12:55:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:55:05 - End Time 2025-02-28 12:55:05 [2025-02-28 12:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576588', 'tblTempUsageDetail_20' ) start [2025-02-28 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576588', 'tblTempUsageDetail_20' ) end [2025-02-28 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576588', 'tblTempVendorCDR_20' ) start [2025-02-28 12:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576588', 'tblTempVendorCDR_20' ) end [2025-02-28 12:55:20] Production.INFO: ProcessCDR(1,14576588,1,1,2) [2025-02-28 12:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576588', 'tblTempUsageDetail_20' ) start [2025-02-28 12:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576588', 'tblTempUsageDetail_20' ) end [2025-02-28 12:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:55:25] Production.INFO: ==18373== Releasing lock... [2025-02-28 12:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:55:25] Production.INFO: 63 MB #Memory Used# [2025-02-28 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:56:05 [end_date_ymd] => 2025-02-28 12:56:05 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:56:05' and `end` < '2025-02-28 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-02-28 12:56:18] Production.INFO: count ==4686 [2025-02-28 12:56:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:56:05 - End Time 2025-02-28 12:56:05 [2025-02-28 12:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576593', 'tblTempUsageDetail_20' ) start [2025-02-28 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576593', 'tblTempUsageDetail_20' ) end [2025-02-28 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576593', 'tblTempVendorCDR_20' ) start [2025-02-28 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576593', 'tblTempVendorCDR_20' ) end [2025-02-28 12:56:21] Production.INFO: ProcessCDR(1,14576593,1,1,2) [2025-02-28 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576593', 'tblTempUsageDetail_20' ) start [2025-02-28 12:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576593', 'tblTempUsageDetail_20' ) end [2025-02-28 12:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:56:26] Production.INFO: ==18454== Releasing lock... [2025-02-28 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:56:26] Production.INFO: 63 MB #Memory Used# [2025-02-28 12:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:57:06 [end_date_ymd] => 2025-02-28 12:57:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:57:06' and `end` < '2025-02-28 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-02-28 12:57:19] Production.INFO: count ==4679 [2025-02-28 12:57:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:57:06 - End Time 2025-02-28 12:57:06 [2025-02-28 12:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576598', 'tblTempUsageDetail_20' ) start [2025-02-28 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576598', 'tblTempUsageDetail_20' ) end [2025-02-28 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576598', 'tblTempVendorCDR_20' ) start [2025-02-28 12:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576598', 'tblTempVendorCDR_20' ) end [2025-02-28 12:57:21] Production.INFO: ProcessCDR(1,14576598,1,1,2) [2025-02-28 12:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576598', 'tblTempUsageDetail_20' ) start [2025-02-28 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576598', 'tblTempUsageDetail_20' ) end [2025-02-28 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:57:26] Production.INFO: ==18531== Releasing lock... [2025-02-28 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:57:26] Production.INFO: 63 MB #Memory Used# [2025-02-28 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:58:05 [end_date_ymd] => 2025-02-28 12:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 09:58:05' and `end` < '2025-02-28 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-02-28 12:58:18] Production.INFO: count ==4673 [2025-02-28 12:58:20] Production.ERROR: pbx CDR StartTime 2025-02-28 09:58:05 - End Time 2025-02-28 12:58:05 [2025-02-28 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576603', 'tblTempUsageDetail_20' ) start [2025-02-28 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576603', 'tblTempUsageDetail_20' ) end [2025-02-28 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576603', 'tblTempVendorCDR_20' ) start [2025-02-28 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576603', 'tblTempVendorCDR_20' ) end [2025-02-28 12:58:20] Production.INFO: ProcessCDR(1,14576603,1,1,2) [2025-02-28 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576603', 'tblTempUsageDetail_20' ) start [2025-02-28 12:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576603', 'tblTempUsageDetail_20' ) end [2025-02-28 12:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:58:26] Production.INFO: ==18601== Releasing lock... [2025-02-28 12:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:58:26] Production.INFO: 63 MB #Memory Used# [2025-02-28 12:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 09:59:06 [end_date_ymd] => 2025-02-28 12:59:06 [RateCDR] => 1 ) [2025-02-28 12: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-02-28 09:59:06' and `end` < '2025-02-28 12: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-02-28 12:59:19] Production.INFO: count ==4663 [2025-02-28 12:59:21] Production.ERROR: pbx CDR StartTime 2025-02-28 09:59:06 - End Time 2025-02-28 12:59:06 [2025-02-28 12:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576608', 'tblTempUsageDetail_20' ) start [2025-02-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576608', 'tblTempUsageDetail_20' ) end [2025-02-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576608', 'tblTempVendorCDR_20' ) start [2025-02-28 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576608', 'tblTempVendorCDR_20' ) end [2025-02-28 12:59:21] Production.INFO: ProcessCDR(1,14576608,1,1,2) [2025-02-28 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576608', 'tblTempUsageDetail_20' ) start [2025-02-28 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576608', 'tblTempUsageDetail_20' ) end [2025-02-28 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 12:59:26] Production.INFO: ==18680== Releasing lock... [2025-02-28 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 12:59:26] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:00:07 [end_date_ymd] => 2025-02-28 13:00:07 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:00:07' and `end` < '2025-02-28 13: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-02-28 13:00:20] Production.INFO: count ==4667 [2025-02-28 13:00:22] Production.ERROR: pbx CDR StartTime 2025-02-28 10:00:07 - End Time 2025-02-28 13:00:07 [2025-02-28 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576614', 'tblTempUsageDetail_20' ) start [2025-02-28 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576614', 'tblTempUsageDetail_20' ) end [2025-02-28 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576614', 'tblTempVendorCDR_20' ) start [2025-02-28 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576614', 'tblTempVendorCDR_20' ) end [2025-02-28 13:00:22] Production.INFO: ProcessCDR(1,14576614,1,1,2) [2025-02-28 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576614', 'tblTempUsageDetail_20' ) start [2025-02-28 13:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576614', 'tblTempUsageDetail_20' ) end [2025-02-28 13:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:00:27] Production.INFO: ==18756== Releasing lock... [2025-02-28 13:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:00:27] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:01:06 [end_date_ymd] => 2025-02-28 13:01:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:01:06' and `end` < '2025-02-28 13: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-02-28 13:01:19] Production.INFO: count ==4656 [2025-02-28 13:01:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:01:06 - End Time 2025-02-28 13:01:06 [2025-02-28 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576619', 'tblTempUsageDetail_20' ) start [2025-02-28 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576619', 'tblTempUsageDetail_20' ) end [2025-02-28 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576619', 'tblTempVendorCDR_20' ) start [2025-02-28 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576619', 'tblTempVendorCDR_20' ) end [2025-02-28 13:01:21] Production.INFO: ProcessCDR(1,14576619,1,1,2) [2025-02-28 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576619', 'tblTempUsageDetail_20' ) start [2025-02-28 13:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576619', 'tblTempUsageDetail_20' ) end [2025-02-28 13:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:01:27] Production.INFO: ==18849== Releasing lock... [2025-02-28 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:01:27] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:02:06 [end_date_ymd] => 2025-02-28 13:02:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:02:06' and `end` < '2025-02-28 13: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-02-28 13:02:19] Production.INFO: count ==4645 [2025-02-28 13:02:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:02:06 - End Time 2025-02-28 13:02:06 [2025-02-28 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576624', 'tblTempUsageDetail_20' ) start [2025-02-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576624', 'tblTempUsageDetail_20' ) end [2025-02-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576624', 'tblTempVendorCDR_20' ) start [2025-02-28 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576624', 'tblTempVendorCDR_20' ) end [2025-02-28 13:02:21] Production.INFO: ProcessCDR(1,14576624,1,1,2) [2025-02-28 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576624', 'tblTempUsageDetail_20' ) start [2025-02-28 13:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576624', 'tblTempUsageDetail_20' ) end [2025-02-28 13:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:02:26] Production.INFO: ==18925== Releasing lock... [2025-02-28 13:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:02:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:03:06 [end_date_ymd] => 2025-02-28 13:03:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:03:06' and `end` < '2025-02-28 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-02-28 13:03:19] Production.INFO: count ==4641 [2025-02-28 13:03:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:03:06 - End Time 2025-02-28 13:03:06 [2025-02-28 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576629', 'tblTempUsageDetail_20' ) start [2025-02-28 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576629', 'tblTempUsageDetail_20' ) end [2025-02-28 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576629', 'tblTempVendorCDR_20' ) start [2025-02-28 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576629', 'tblTempVendorCDR_20' ) end [2025-02-28 13:03:21] Production.INFO: ProcessCDR(1,14576629,1,1,2) [2025-02-28 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576629', 'tblTempUsageDetail_20' ) start [2025-02-28 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576629', 'tblTempUsageDetail_20' ) end [2025-02-28 13:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:03:26] Production.INFO: ==18997== Releasing lock... [2025-02-28 13:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:03:26] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:04:06 [end_date_ymd] => 2025-02-28 13:04:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:04:06' and `end` < '2025-02-28 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-02-28 13:04:18] Production.INFO: count ==4673 [2025-02-28 13:04:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:04:06 - End Time 2025-02-28 13:04:06 [2025-02-28 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576634', 'tblTempUsageDetail_20' ) start [2025-02-28 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576634', 'tblTempUsageDetail_20' ) end [2025-02-28 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576634', 'tblTempVendorCDR_20' ) start [2025-02-28 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576634', 'tblTempVendorCDR_20' ) end [2025-02-28 13:04:21] Production.INFO: ProcessCDR(1,14576634,1,1,2) [2025-02-28 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576634', 'tblTempUsageDetail_20' ) start [2025-02-28 13:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576634', 'tblTempUsageDetail_20' ) end [2025-02-28 13:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:04:27] Production.INFO: ==19099== Releasing lock... [2025-02-28 13:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:04:27] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:05:05 [end_date_ymd] => 2025-02-28 13:05:05 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:05:05' and `end` < '2025-02-28 13: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-02-28 13:05:18] Production.INFO: count ==4669 [2025-02-28 13:05:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:05:05 - End Time 2025-02-28 13:05:05 [2025-02-28 13:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576639', 'tblTempUsageDetail_20' ) start [2025-02-28 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576639', 'tblTempUsageDetail_20' ) end [2025-02-28 13:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576639', 'tblTempVendorCDR_20' ) start [2025-02-28 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576639', 'tblTempVendorCDR_20' ) end [2025-02-28 13:05:21] Production.INFO: ProcessCDR(1,14576639,1,1,2) [2025-02-28 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576639', 'tblTempUsageDetail_20' ) start [2025-02-28 13:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576639', 'tblTempUsageDetail_20' ) end [2025-02-28 13:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:05:26] Production.INFO: ==19212== Releasing lock... [2025-02-28 13:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:05:26] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:06:06 [end_date_ymd] => 2025-02-28 13:06:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:06:06' and `end` < '2025-02-28 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-02-28 13:06:19] Production.INFO: count ==4663 [2025-02-28 13:06:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:06:06 - End Time 2025-02-28 13:06:06 [2025-02-28 13:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576644', 'tblTempUsageDetail_20' ) start [2025-02-28 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576644', 'tblTempUsageDetail_20' ) end [2025-02-28 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576644', 'tblTempVendorCDR_20' ) start [2025-02-28 13:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576644', 'tblTempVendorCDR_20' ) end [2025-02-28 13:06:21] Production.INFO: ProcessCDR(1,14576644,1,1,2) [2025-02-28 13:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576644', 'tblTempUsageDetail_20' ) start [2025-02-28 13:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576644', 'tblTempUsageDetail_20' ) end [2025-02-28 13:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:06:27] Production.INFO: ==19287== Releasing lock... [2025-02-28 13:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:06:27] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:07:06 [end_date_ymd] => 2025-02-28 13:07:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:07:06' and `end` < '2025-02-28 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-02-28 13:07:19] Production.INFO: count ==4672 [2025-02-28 13:07:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:07:06 - End Time 2025-02-28 13:07:06 [2025-02-28 13:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576649', 'tblTempUsageDetail_20' ) start [2025-02-28 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576649', 'tblTempUsageDetail_20' ) end [2025-02-28 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576649', 'tblTempVendorCDR_20' ) start [2025-02-28 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576649', 'tblTempVendorCDR_20' ) end [2025-02-28 13:07:21] Production.INFO: ProcessCDR(1,14576649,1,1,2) [2025-02-28 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576649', 'tblTempUsageDetail_20' ) start [2025-02-28 13:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576649', 'tblTempUsageDetail_20' ) end [2025-02-28 13:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:07:27] Production.INFO: ==19359== Releasing lock... [2025-02-28 13:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:07:27] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:08:06 [end_date_ymd] => 2025-02-28 13:08:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:08:06' and `end` < '2025-02-28 13: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-02-28 13:08:19] Production.INFO: count ==4680 [2025-02-28 13:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:08:06 - End Time 2025-02-28 13:08:06 [2025-02-28 13:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576654', 'tblTempUsageDetail_20' ) start [2025-02-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576654', 'tblTempUsageDetail_20' ) end [2025-02-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576654', 'tblTempVendorCDR_20' ) start [2025-02-28 13:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576654', 'tblTempVendorCDR_20' ) end [2025-02-28 13:08:21] Production.INFO: ProcessCDR(1,14576654,1,1,2) [2025-02-28 13:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576654', 'tblTempUsageDetail_20' ) start [2025-02-28 13:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576654', 'tblTempUsageDetail_20' ) end [2025-02-28 13:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:08:27] Production.INFO: ==19438== Releasing lock... [2025-02-28 13:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:08:27] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:09:05 [end_date_ymd] => 2025-02-28 13:09:05 [RateCDR] => 1 ) [2025-02-28 13:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:09:05' and `end` < '2025-02-28 13:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:09:18] Production.INFO: count ==4688 [2025-02-28 13:09:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:09:05 - End Time 2025-02-28 13:09:05 [2025-02-28 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576659', 'tblTempUsageDetail_20' ) start [2025-02-28 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576659', 'tblTempUsageDetail_20' ) end [2025-02-28 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576659', 'tblTempVendorCDR_20' ) start [2025-02-28 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576659', 'tblTempVendorCDR_20' ) end [2025-02-28 13:09:21] Production.INFO: ProcessCDR(1,14576659,1,1,2) [2025-02-28 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576659', 'tblTempUsageDetail_20' ) start [2025-02-28 13:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576659', 'tblTempUsageDetail_20' ) end [2025-02-28 13:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:09:26] Production.INFO: ==19514== Releasing lock... [2025-02-28 13:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:09:26] Production.INFO: 63 MB #Memory Used# [2025-02-28 13:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:10:07 [end_date_ymd] => 2025-02-28 13:10:07 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:10:07' and `end` < '2025-02-28 13: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-02-28 13:10:20] Production.INFO: count ==4713 [2025-02-28 13:10:22] Production.ERROR: pbx CDR StartTime 2025-02-28 10:10:07 - End Time 2025-02-28 13:10:07 [2025-02-28 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576665', 'tblTempUsageDetail_20' ) start [2025-02-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576665', 'tblTempUsageDetail_20' ) end [2025-02-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576665', 'tblTempVendorCDR_20' ) start [2025-02-28 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576665', 'tblTempVendorCDR_20' ) end [2025-02-28 13:10:22] Production.INFO: ProcessCDR(1,14576665,1,1,2) [2025-02-28 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576665', 'tblTempUsageDetail_20' ) start [2025-02-28 13:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576665', 'tblTempUsageDetail_20' ) end [2025-02-28 13:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:10:28] Production.INFO: ==19601== Releasing lock... [2025-02-28 13:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:10:28] Production.INFO: 63.25 MB #Memory Used# [2025-02-28 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:11:05 [end_date_ymd] => 2025-02-28 13:11:05 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:11:05' and `end` < '2025-02-28 13: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-02-28 13:11:18] Production.INFO: count ==4774 [2025-02-28 13:11:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:11:05 - End Time 2025-02-28 13:11:05 [2025-02-28 13:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576670', 'tblTempUsageDetail_20' ) start [2025-02-28 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576670', 'tblTempUsageDetail_20' ) end [2025-02-28 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576670', 'tblTempVendorCDR_20' ) start [2025-02-28 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576670', 'tblTempVendorCDR_20' ) end [2025-02-28 13:11:21] Production.INFO: ProcessCDR(1,14576670,1,1,2) [2025-02-28 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576670', 'tblTempUsageDetail_20' ) start [2025-02-28 13:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576670', 'tblTempUsageDetail_20' ) end [2025-02-28 13:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:11:26] Production.INFO: ==19701== Releasing lock... [2025-02-28 13:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:11:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 13:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:12:06 [end_date_ymd] => 2025-02-28 13:12:06 [RateCDR] => 1 ) [2025-02-28 13:12:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:12:06' and `end` < '2025-02-28 13:12:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:12:19] Production.INFO: count ==4771 [2025-02-28 13:12:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:12:06 - End Time 2025-02-28 13:12:06 [2025-02-28 13:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576675', 'tblTempUsageDetail_20' ) start [2025-02-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576675', 'tblTempUsageDetail_20' ) end [2025-02-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576675', 'tblTempVendorCDR_20' ) start [2025-02-28 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576675', 'tblTempVendorCDR_20' ) end [2025-02-28 13:12:21] Production.INFO: ProcessCDR(1,14576675,1,1,2) [2025-02-28 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576675', 'tblTempUsageDetail_20' ) start [2025-02-28 13:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576675', 'tblTempUsageDetail_20' ) end [2025-02-28 13:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:12:27] Production.INFO: ==19801== Releasing lock... [2025-02-28 13:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:12:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:13:05 [end_date_ymd] => 2025-02-28 13:13:05 [RateCDR] => 1 ) [2025-02-28 13:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:13:05' and `end` < '2025-02-28 13:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:13:18] Production.INFO: count ==4776 [2025-02-28 13:13:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:13:05 - End Time 2025-02-28 13:13:05 [2025-02-28 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576680', 'tblTempUsageDetail_20' ) start [2025-02-28 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576680', 'tblTempUsageDetail_20' ) end [2025-02-28 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576680', 'tblTempVendorCDR_20' ) start [2025-02-28 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576680', 'tblTempVendorCDR_20' ) end [2025-02-28 13:13:21] Production.INFO: ProcessCDR(1,14576680,1,1,2) [2025-02-28 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576680', 'tblTempUsageDetail_20' ) start [2025-02-28 13:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576680', 'tblTempUsageDetail_20' ) end [2025-02-28 13:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:13:26] Production.INFO: ==19889== Releasing lock... [2025-02-28 13:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:13:26] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 13:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:14:06 [end_date_ymd] => 2025-02-28 13:14:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:14:06' and `end` < '2025-02-28 13: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-02-28 13:14:19] Production.INFO: count ==4765 [2025-02-28 13:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:14:06 - End Time 2025-02-28 13:14:06 [2025-02-28 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576685', 'tblTempUsageDetail_20' ) start [2025-02-28 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576685', 'tblTempUsageDetail_20' ) end [2025-02-28 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576685', 'tblTempVendorCDR_20' ) start [2025-02-28 13:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576685', 'tblTempVendorCDR_20' ) end [2025-02-28 13:14:22] Production.INFO: ProcessCDR(1,14576685,1,1,2) [2025-02-28 13:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576685', 'tblTempUsageDetail_20' ) start [2025-02-28 13:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576685', 'tblTempUsageDetail_20' ) end [2025-02-28 13:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:14:27] Production.INFO: ==19981== Releasing lock... [2025-02-28 13:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:14:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 13:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:15:05 [end_date_ymd] => 2025-02-28 13:15:05 [RateCDR] => 1 ) [2025-02-28 13:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:15:05' and `end` < '2025-02-28 13:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:15:18] Production.INFO: count ==4749 [2025-02-28 13:15:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:15:05 - End Time 2025-02-28 13:15:05 [2025-02-28 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576690', 'tblTempUsageDetail_20' ) start [2025-02-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576690', 'tblTempUsageDetail_20' ) end [2025-02-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576690', 'tblTempVendorCDR_20' ) start [2025-02-28 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576690', 'tblTempVendorCDR_20' ) end [2025-02-28 13:15:21] Production.INFO: ProcessCDR(1,14576690,1,1,2) [2025-02-28 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576690', 'tblTempUsageDetail_20' ) start [2025-02-28 13:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576690', 'tblTempUsageDetail_20' ) end [2025-02-28 13:15:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:15:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:15:25] Production.INFO: ==20056== Releasing lock... [2025-02-28 13:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:15:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-28 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:16:06 [end_date_ymd] => 2025-02-28 13:16:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:16:06' and `end` < '2025-02-28 13: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-02-28 13:16:19] Production.INFO: count ==4747 [2025-02-28 13:16:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:16:06 - End Time 2025-02-28 13:16:06 [2025-02-28 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576695', 'tblTempUsageDetail_20' ) start [2025-02-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576695', 'tblTempUsageDetail_20' ) end [2025-02-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576695', 'tblTempVendorCDR_20' ) start [2025-02-28 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576695', 'tblTempVendorCDR_20' ) end [2025-02-28 13:16:21] Production.INFO: ProcessCDR(1,14576695,1,1,2) [2025-02-28 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576695', 'tblTempUsageDetail_20' ) start [2025-02-28 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576695', 'tblTempUsageDetail_20' ) end [2025-02-28 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:16:27] Production.INFO: ==20134== Releasing lock... [2025-02-28 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:16:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-28 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:17:06 [end_date_ymd] => 2025-02-28 13:17:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:17:06' and `end` < '2025-02-28 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-02-28 13:17:19] Production.INFO: count ==4734 [2025-02-28 13:17:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:17:06 - End Time 2025-02-28 13:17:06 [2025-02-28 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576700', 'tblTempUsageDetail_20' ) start [2025-02-28 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576700', 'tblTempUsageDetail_20' ) end [2025-02-28 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576700', 'tblTempVendorCDR_20' ) start [2025-02-28 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576700', 'tblTempVendorCDR_20' ) end [2025-02-28 13:17:21] Production.INFO: ProcessCDR(1,14576700,1,1,2) [2025-02-28 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576700', 'tblTempUsageDetail_20' ) start [2025-02-28 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576700', 'tblTempUsageDetail_20' ) end [2025-02-28 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:17:27] Production.INFO: ==20217== Releasing lock... [2025-02-28 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:17:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-28 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:18:06 [end_date_ymd] => 2025-02-28 13:18:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:18:06' and `end` < '2025-02-28 13: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-02-28 13:18:19] Production.INFO: count ==4747 [2025-02-28 13:18:22] Production.ERROR: pbx CDR StartTime 2025-02-28 10:18:06 - End Time 2025-02-28 13:18:06 [2025-02-28 13:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576705', 'tblTempUsageDetail_20' ) start [2025-02-28 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576705', 'tblTempUsageDetail_20' ) end [2025-02-28 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576705', 'tblTempVendorCDR_20' ) start [2025-02-28 13:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576705', 'tblTempVendorCDR_20' ) end [2025-02-28 13:18:22] Production.INFO: ProcessCDR(1,14576705,1,1,2) [2025-02-28 13:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576705', 'tblTempUsageDetail_20' ) start [2025-02-28 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576705', 'tblTempUsageDetail_20' ) end [2025-02-28 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:18:27] Production.INFO: ==20295== Releasing lock... [2025-02-28 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:18:27] Production.INFO: 63.5 MB #Memory Used# [2025-02-28 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:19:05 [end_date_ymd] => 2025-02-28 13:19:05 [RateCDR] => 1 ) [2025-02-28 13:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:19:05' and `end` < '2025-02-28 13:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:19:18] Production.INFO: count ==4758 [2025-02-28 13:19:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:19:05 - End Time 2025-02-28 13:19:05 [2025-02-28 13:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576710', 'tblTempUsageDetail_20' ) start [2025-02-28 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576710', 'tblTempUsageDetail_20' ) end [2025-02-28 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576710', 'tblTempVendorCDR_20' ) start [2025-02-28 13:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576710', 'tblTempVendorCDR_20' ) end [2025-02-28 13:19:21] Production.INFO: ProcessCDR(1,14576710,1,1,2) [2025-02-28 13:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576710', 'tblTempUsageDetail_20' ) start [2025-02-28 13:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576710', 'tblTempUsageDetail_20' ) end [2025-02-28 13:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:19:27] Production.INFO: ==20373== Releasing lock... [2025-02-28 13:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:19:27] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 13:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:20:07 [end_date_ymd] => 2025-02-28 13:20:07 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:20:07' and `end` < '2025-02-28 13: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-02-28 13:20:20] Production.INFO: count ==4769 [2025-02-28 13:20:23] Production.ERROR: pbx CDR StartTime 2025-02-28 10:20:07 - End Time 2025-02-28 13:20:07 [2025-02-28 13:20:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576716', 'tblTempUsageDetail_20' ) start [2025-02-28 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576716', 'tblTempUsageDetail_20' ) end [2025-02-28 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576716', 'tblTempVendorCDR_20' ) start [2025-02-28 13:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576716', 'tblTempVendorCDR_20' ) end [2025-02-28 13:20:23] Production.INFO: ProcessCDR(1,14576716,1,1,2) [2025-02-28 13:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:20:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:20:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576716', 'tblTempUsageDetail_20' ) start [2025-02-28 13:20:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576716', 'tblTempUsageDetail_20' ) end [2025-02-28 13:20:29] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:20:29] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:20:29] Production.INFO: ==20463== Releasing lock... [2025-02-28 13:20:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:20:29] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:21:05 [end_date_ymd] => 2025-02-28 13:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:21:05' and `end` < '2025-02-28 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-02-28 13:21:18] Production.INFO: count ==4831 [2025-02-28 13:21:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:21:05 - End Time 2025-02-28 13:21:05 [2025-02-28 13:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576721', 'tblTempUsageDetail_20' ) start [2025-02-28 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576721', 'tblTempUsageDetail_20' ) end [2025-02-28 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576721', 'tblTempVendorCDR_20' ) start [2025-02-28 13:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576721', 'tblTempVendorCDR_20' ) end [2025-02-28 13:21:21] Production.INFO: ProcessCDR(1,14576721,1,1,2) [2025-02-28 13:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576721', 'tblTempUsageDetail_20' ) start [2025-02-28 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576721', 'tblTempUsageDetail_20' ) end [2025-02-28 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:21:26] Production.INFO: ==20582== Releasing lock... [2025-02-28 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:21:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:22:06 [end_date_ymd] => 2025-02-28 13:22:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:22:06' and `end` < '2025-02-28 13: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-02-28 13:22:19] Production.INFO: count ==4833 [2025-02-28 13:22:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:22:06 - End Time 2025-02-28 13:22:06 [2025-02-28 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576726', 'tblTempUsageDetail_20' ) start [2025-02-28 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576726', 'tblTempUsageDetail_20' ) end [2025-02-28 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576726', 'tblTempVendorCDR_20' ) start [2025-02-28 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576726', 'tblTempVendorCDR_20' ) end [2025-02-28 13:22:21] Production.INFO: ProcessCDR(1,14576726,1,1,2) [2025-02-28 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576726', 'tblTempUsageDetail_20' ) start [2025-02-28 13:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576726', 'tblTempUsageDetail_20' ) end [2025-02-28 13:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:22:26] Production.INFO: ==20661== Releasing lock... [2025-02-28 13:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:22:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:23:05 [end_date_ymd] => 2025-02-28 13:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:23:05' and `end` < '2025-02-28 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-02-28 13:23:18] Production.INFO: count ==4869 [2025-02-28 13:23:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:23:05 - End Time 2025-02-28 13:23:05 [2025-02-28 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576731', 'tblTempUsageDetail_20' ) start [2025-02-28 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576731', 'tblTempUsageDetail_20' ) end [2025-02-28 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576731', 'tblTempVendorCDR_20' ) start [2025-02-28 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576731', 'tblTempVendorCDR_20' ) end [2025-02-28 13:23:20] Production.INFO: ProcessCDR(1,14576731,1,1,2) [2025-02-28 13:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576731', 'tblTempUsageDetail_20' ) start [2025-02-28 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576731', 'tblTempUsageDetail_20' ) end [2025-02-28 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:23:26] Production.INFO: ==20741== Releasing lock... [2025-02-28 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:23:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:24:06 [end_date_ymd] => 2025-02-28 13:24:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:24:06' and `end` < '2025-02-28 13: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-02-28 13:24:19] Production.INFO: count ==4886 [2025-02-28 13:24:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:24:06 - End Time 2025-02-28 13:24:06 [2025-02-28 13:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576736', 'tblTempUsageDetail_20' ) start [2025-02-28 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576736', 'tblTempUsageDetail_20' ) end [2025-02-28 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576736', 'tblTempVendorCDR_20' ) start [2025-02-28 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576736', 'tblTempVendorCDR_20' ) end [2025-02-28 13:24:21] Production.INFO: ProcessCDR(1,14576736,1,1,2) [2025-02-28 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576736', 'tblTempUsageDetail_20' ) start [2025-02-28 13:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576736', 'tblTempUsageDetail_20' ) end [2025-02-28 13:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:24:27] Production.INFO: ==20823== Releasing lock... [2025-02-28 13:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:24:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:25:05 [end_date_ymd] => 2025-02-28 13:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:25:05' and `end` < '2025-02-28 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-02-28 13:25:18] Production.INFO: count ==4885 [2025-02-28 13:25:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:25:05 - End Time 2025-02-28 13:25:05 [2025-02-28 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576741', 'tblTempUsageDetail_20' ) start [2025-02-28 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576741', 'tblTempUsageDetail_20' ) end [2025-02-28 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576741', 'tblTempVendorCDR_20' ) start [2025-02-28 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576741', 'tblTempVendorCDR_20' ) end [2025-02-28 13:25:21] Production.INFO: ProcessCDR(1,14576741,1,1,2) [2025-02-28 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576741', 'tblTempUsageDetail_20' ) start [2025-02-28 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576741', 'tblTempUsageDetail_20' ) end [2025-02-28 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:25:26] Production.INFO: ==20903== Releasing lock... [2025-02-28 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:25:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:26:05 [end_date_ymd] => 2025-02-28 13:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:26:05' and `end` < '2025-02-28 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-02-28 13:26:18] Production.INFO: count ==4897 [2025-02-28 13:26:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:26:05 - End Time 2025-02-28 13:26:05 [2025-02-28 13:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576746', 'tblTempUsageDetail_20' ) start [2025-02-28 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576746', 'tblTempUsageDetail_20' ) end [2025-02-28 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576746', 'tblTempVendorCDR_20' ) start [2025-02-28 13:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576746', 'tblTempVendorCDR_20' ) end [2025-02-28 13:26:20] Production.INFO: ProcessCDR(1,14576746,1,1,2) [2025-02-28 13:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576746', 'tblTempUsageDetail_20' ) start [2025-02-28 13:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576746', 'tblTempUsageDetail_20' ) end [2025-02-28 13:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:26:26] Production.INFO: ==20982== Releasing lock... [2025-02-28 13:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:26:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 13:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:27:06 [end_date_ymd] => 2025-02-28 13:27:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:27:06' and `end` < '2025-02-28 13: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-02-28 13:27:19] Production.INFO: count ==4879 [2025-02-28 13:27:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:27:06 - End Time 2025-02-28 13:27:06 [2025-02-28 13:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576751', 'tblTempUsageDetail_20' ) start [2025-02-28 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576751', 'tblTempUsageDetail_20' ) end [2025-02-28 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576751', 'tblTempVendorCDR_20' ) start [2025-02-28 13:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576751', 'tblTempVendorCDR_20' ) end [2025-02-28 13:27:21] Production.INFO: ProcessCDR(1,14576751,1,1,2) [2025-02-28 13:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576751', 'tblTempUsageDetail_20' ) start [2025-02-28 13:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576751', 'tblTempUsageDetail_20' ) end [2025-02-28 13:27:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:27:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:27:27] Production.INFO: ==21064== Releasing lock... [2025-02-28 13:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:27:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:28:05 [end_date_ymd] => 2025-02-28 13:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:28:05' and `end` < '2025-02-28 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-02-28 13:28:18] Production.INFO: count ==4929 [2025-02-28 13:28:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:28:05 - End Time 2025-02-28 13:28:05 [2025-02-28 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576756', 'tblTempUsageDetail_20' ) start [2025-02-28 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576756', 'tblTempUsageDetail_20' ) end [2025-02-28 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576756', 'tblTempVendorCDR_20' ) start [2025-02-28 13:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576756', 'tblTempVendorCDR_20' ) end [2025-02-28 13:28:21] Production.INFO: ProcessCDR(1,14576756,1,1,2) [2025-02-28 13:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576756', 'tblTempUsageDetail_20' ) start [2025-02-28 13:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576756', 'tblTempUsageDetail_20' ) end [2025-02-28 13:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:28:26] Production.INFO: ==21141== Releasing lock... [2025-02-28 13:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:28:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:29:05 [end_date_ymd] => 2025-02-28 13:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:29:05' and `end` < '2025-02-28 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-02-28 13:29:19] Production.INFO: count ==4925 [2025-02-28 13:29:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:29:05 - End Time 2025-02-28 13:29:05 [2025-02-28 13:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576761', 'tblTempUsageDetail_20' ) start [2025-02-28 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576761', 'tblTempUsageDetail_20' ) end [2025-02-28 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576761', 'tblTempVendorCDR_20' ) start [2025-02-28 13:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576761', 'tblTempVendorCDR_20' ) end [2025-02-28 13:29:21] Production.INFO: ProcessCDR(1,14576761,1,1,2) [2025-02-28 13:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576761', 'tblTempUsageDetail_20' ) start [2025-02-28 13:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576761', 'tblTempUsageDetail_20' ) end [2025-02-28 13:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:29:27] Production.INFO: ==21218== Releasing lock... [2025-02-28 13:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:29:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 13:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:30:06 [end_date_ymd] => 2025-02-28 13:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:30:06' and `end` < '2025-02-28 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-02-28 13:30:19] Production.INFO: count ==4952 [2025-02-28 13:30:22] Production.ERROR: pbx CDR StartTime 2025-02-28 10:30:06 - End Time 2025-02-28 13:30:06 [2025-02-28 13:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576767', 'tblTempUsageDetail_20' ) start [2025-02-28 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576767', 'tblTempUsageDetail_20' ) end [2025-02-28 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576767', 'tblTempVendorCDR_20' ) start [2025-02-28 13:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576767', 'tblTempVendorCDR_20' ) end [2025-02-28 13:30:22] Production.INFO: ProcessCDR(1,14576767,1,1,2) [2025-02-28 13:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576767', 'tblTempUsageDetail_20' ) start [2025-02-28 13:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576767', 'tblTempUsageDetail_20' ) end [2025-02-28 13:30:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:30:28] Production.INFO: ==21297== Releasing lock... [2025-02-28 13:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:30:28] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:31:06 [end_date_ymd] => 2025-02-28 13:31:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:31:06' and `end` < '2025-02-28 13: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-02-28 13:31:19] Production.INFO: count ==4948 [2025-02-28 13:31:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:31:06 - End Time 2025-02-28 13:31:06 [2025-02-28 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576772', 'tblTempUsageDetail_20' ) start [2025-02-28 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576772', 'tblTempUsageDetail_20' ) end [2025-02-28 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576772', 'tblTempVendorCDR_20' ) start [2025-02-28 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576772', 'tblTempVendorCDR_20' ) end [2025-02-28 13:31:21] Production.INFO: ProcessCDR(1,14576772,1,1,2) [2025-02-28 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576772', 'tblTempUsageDetail_20' ) start [2025-02-28 13:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576772', 'tblTempUsageDetail_20' ) end [2025-02-28 13:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:31:27] Production.INFO: ==21371== Releasing lock... [2025-02-28 13:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:31:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:32:05 [end_date_ymd] => 2025-02-28 13:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:32:05' and `end` < '2025-02-28 13:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:32:21] Production.INFO: count ==4942 [2025-02-28 13:32:23] Production.ERROR: pbx CDR StartTime 2025-02-28 10:32:05 - End Time 2025-02-28 13:32:05 [2025-02-28 13:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576777', 'tblTempUsageDetail_20' ) start [2025-02-28 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576777', 'tblTempUsageDetail_20' ) end [2025-02-28 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576777', 'tblTempVendorCDR_20' ) start [2025-02-28 13:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576777', 'tblTempVendorCDR_20' ) end [2025-02-28 13:32:23] Production.INFO: ProcessCDR(1,14576777,1,1,2) [2025-02-28 13:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576777', 'tblTempUsageDetail_20' ) start [2025-02-28 13:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576777', 'tblTempUsageDetail_20' ) end [2025-02-28 13:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:32:27] Production.INFO: ==21449== Releasing lock... [2025-02-28 13:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:32:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:33:05 [end_date_ymd] => 2025-02-28 13:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:33:05' and `end` < '2025-02-28 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-02-28 13:33:18] Production.INFO: count ==4946 [2025-02-28 13:33:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:33:05 - End Time 2025-02-28 13:33:05 [2025-02-28 13:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576782', 'tblTempUsageDetail_20' ) start [2025-02-28 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576782', 'tblTempUsageDetail_20' ) end [2025-02-28 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576782', 'tblTempVendorCDR_20' ) start [2025-02-28 13:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576782', 'tblTempVendorCDR_20' ) end [2025-02-28 13:33:21] Production.INFO: ProcessCDR(1,14576782,1,1,2) [2025-02-28 13:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576782', 'tblTempUsageDetail_20' ) start [2025-02-28 13:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576782', 'tblTempUsageDetail_20' ) end [2025-02-28 13:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:33:26] Production.INFO: ==21523== Releasing lock... [2025-02-28 13:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:33:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:34:05 [end_date_ymd] => 2025-02-28 13:34:05 [RateCDR] => 1 ) [2025-02-28 13:34:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:34:05' and `end` < '2025-02-28 13:34:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:34:18] Production.INFO: count ==4925 [2025-02-28 13:34:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:34:05 - End Time 2025-02-28 13:34:05 [2025-02-28 13:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576787', 'tblTempUsageDetail_20' ) start [2025-02-28 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576787', 'tblTempUsageDetail_20' ) end [2025-02-28 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576787', 'tblTempVendorCDR_20' ) start [2025-02-28 13:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576787', 'tblTempVendorCDR_20' ) end [2025-02-28 13:34:21] Production.INFO: ProcessCDR(1,14576787,1,1,2) [2025-02-28 13:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576787', 'tblTempUsageDetail_20' ) start [2025-02-28 13:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576787', 'tblTempUsageDetail_20' ) end [2025-02-28 13:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:34:26] Production.INFO: ==21600== Releasing lock... [2025-02-28 13:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:34:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:35:06 [end_date_ymd] => 2025-02-28 13:35:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:35:06' and `end` < '2025-02-28 13: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-02-28 13:35:19] Production.INFO: count ==4908 [2025-02-28 13:35:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:35:06 - End Time 2025-02-28 13:35:06 [2025-02-28 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576792', 'tblTempUsageDetail_20' ) start [2025-02-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576792', 'tblTempUsageDetail_20' ) end [2025-02-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576792', 'tblTempVendorCDR_20' ) start [2025-02-28 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576792', 'tblTempVendorCDR_20' ) end [2025-02-28 13:35:21] Production.INFO: ProcessCDR(1,14576792,1,1,2) [2025-02-28 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576792', 'tblTempUsageDetail_20' ) start [2025-02-28 13:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576792', 'tblTempUsageDetail_20' ) end [2025-02-28 13:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:35:27] Production.INFO: ==21674== Releasing lock... [2025-02-28 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:35:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:36:05 [end_date_ymd] => 2025-02-28 13:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:36:05' and `end` < '2025-02-28 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-02-28 13:36:18] Production.INFO: count ==4904 [2025-02-28 13:36:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:36:05 - End Time 2025-02-28 13:36:05 [2025-02-28 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576797', 'tblTempUsageDetail_20' ) start [2025-02-28 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576797', 'tblTempUsageDetail_20' ) end [2025-02-28 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576797', 'tblTempVendorCDR_20' ) start [2025-02-28 13:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576797', 'tblTempVendorCDR_20' ) end [2025-02-28 13:36:21] Production.INFO: ProcessCDR(1,14576797,1,1,2) [2025-02-28 13:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576797', 'tblTempUsageDetail_20' ) start [2025-02-28 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576797', 'tblTempUsageDetail_20' ) end [2025-02-28 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:36:26] Production.INFO: ==21787== Releasing lock... [2025-02-28 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:36:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:37:05 [end_date_ymd] => 2025-02-28 13:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:37:05' and `end` < '2025-02-28 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-02-28 13:37:18] Production.INFO: count ==4885 [2025-02-28 13:37:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:37:05 - End Time 2025-02-28 13:37:05 [2025-02-28 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576802', 'tblTempUsageDetail_20' ) start [2025-02-28 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576802', 'tblTempUsageDetail_20' ) end [2025-02-28 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576802', 'tblTempVendorCDR_20' ) start [2025-02-28 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576802', 'tblTempVendorCDR_20' ) end [2025-02-28 13:37:20] Production.INFO: ProcessCDR(1,14576802,1,1,2) [2025-02-28 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576802', 'tblTempUsageDetail_20' ) start [2025-02-28 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576802', 'tblTempUsageDetail_20' ) end [2025-02-28 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:37:26] Production.INFO: ==21867== Releasing lock... [2025-02-28 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:37:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:38:05 [end_date_ymd] => 2025-02-28 13:38:05 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:38:05' and `end` < '2025-02-28 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-02-28 13:38:18] Production.INFO: count ==4856 [2025-02-28 13:38:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:38:05 - End Time 2025-02-28 13:38:05 [2025-02-28 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576807', 'tblTempUsageDetail_20' ) start [2025-02-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576807', 'tblTempUsageDetail_20' ) end [2025-02-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576807', 'tblTempVendorCDR_20' ) start [2025-02-28 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576807', 'tblTempVendorCDR_20' ) end [2025-02-28 13:38:21] Production.INFO: ProcessCDR(1,14576807,1,1,2) [2025-02-28 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576807', 'tblTempUsageDetail_20' ) start [2025-02-28 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576807', 'tblTempUsageDetail_20' ) end [2025-02-28 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:38:26] Production.INFO: ==21950== Releasing lock... [2025-02-28 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:38:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:39:06 [end_date_ymd] => 2025-02-28 13:39:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:39:06' and `end` < '2025-02-28 13: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-02-28 13:39:18] Production.INFO: count ==4864 [2025-02-28 13:39:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:39:06 - End Time 2025-02-28 13:39:06 [2025-02-28 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576812', 'tblTempUsageDetail_20' ) start [2025-02-28 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576812', 'tblTempUsageDetail_20' ) end [2025-02-28 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576812', 'tblTempVendorCDR_20' ) start [2025-02-28 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576812', 'tblTempVendorCDR_20' ) end [2025-02-28 13:39:21] Production.INFO: ProcessCDR(1,14576812,1,1,2) [2025-02-28 13:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576812', 'tblTempUsageDetail_20' ) start [2025-02-28 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576812', 'tblTempUsageDetail_20' ) end [2025-02-28 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:39:27] Production.INFO: ==22028== Releasing lock... [2025-02-28 13:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:39:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:40:06 [end_date_ymd] => 2025-02-28 13:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:40:06' and `end` < '2025-02-28 13: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-02-28 13:40:20] Production.INFO: count ==4853 [2025-02-28 13:40:22] Production.ERROR: pbx CDR StartTime 2025-02-28 10:40:06 - End Time 2025-02-28 13:40:06 [2025-02-28 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576818', 'tblTempUsageDetail_20' ) start [2025-02-28 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576818', 'tblTempUsageDetail_20' ) end [2025-02-28 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576818', 'tblTempVendorCDR_20' ) start [2025-02-28 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576818', 'tblTempVendorCDR_20' ) end [2025-02-28 13:40:22] Production.INFO: ProcessCDR(1,14576818,1,1,2) [2025-02-28 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576818', 'tblTempUsageDetail_20' ) start [2025-02-28 13:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576818', 'tblTempUsageDetail_20' ) end [2025-02-28 13:40:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:40:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:40:28] Production.INFO: ==22107== Releasing lock... [2025-02-28 13:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:40:28] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:41:05 [end_date_ymd] => 2025-02-28 13:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:41:05' and `end` < '2025-02-28 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-02-28 13:41:19] Production.INFO: count ==4846 [2025-02-28 13:41:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:41:05 - End Time 2025-02-28 13:41:05 [2025-02-28 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576823', 'tblTempUsageDetail_20' ) start [2025-02-28 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576823', 'tblTempUsageDetail_20' ) end [2025-02-28 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576823', 'tblTempVendorCDR_20' ) start [2025-02-28 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576823', 'tblTempVendorCDR_20' ) end [2025-02-28 13:41:21] Production.INFO: ProcessCDR(1,14576823,1,1,2) [2025-02-28 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576823', 'tblTempUsageDetail_20' ) start [2025-02-28 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576823', 'tblTempUsageDetail_20' ) end [2025-02-28 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:41:27] Production.INFO: ==22189== Releasing lock... [2025-02-28 13:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:41:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:42:05 [end_date_ymd] => 2025-02-28 13:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:42:05' and `end` < '2025-02-28 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-02-28 13:42:18] Production.INFO: count ==4849 [2025-02-28 13:42:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:42:05 - End Time 2025-02-28 13:42:05 [2025-02-28 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576827', 'tblTempUsageDetail_20' ) start [2025-02-28 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576827', 'tblTempUsageDetail_20' ) end [2025-02-28 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576827', 'tblTempVendorCDR_20' ) start [2025-02-28 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576827', 'tblTempVendorCDR_20' ) end [2025-02-28 13:42:21] Production.INFO: ProcessCDR(1,14576827,1,1,2) [2025-02-28 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576827', 'tblTempUsageDetail_20' ) start [2025-02-28 13:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576827', 'tblTempUsageDetail_20' ) end [2025-02-28 13:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:42:27] Production.INFO: ==22264== Releasing lock... [2025-02-28 13:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:42:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:43:06 [end_date_ymd] => 2025-02-28 13:43:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:43:06' and `end` < '2025-02-28 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-02-28 13:43:19] Production.INFO: count ==4854 [2025-02-28 13:43:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:43:06 - End Time 2025-02-28 13:43:06 [2025-02-28 13:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576833', 'tblTempUsageDetail_20' ) start [2025-02-28 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576833', 'tblTempUsageDetail_20' ) end [2025-02-28 13:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576833', 'tblTempVendorCDR_20' ) start [2025-02-28 13:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576833', 'tblTempVendorCDR_20' ) end [2025-02-28 13:43:22] Production.INFO: ProcessCDR(1,14576833,1,1,2) [2025-02-28 13:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576833', 'tblTempUsageDetail_20' ) start [2025-02-28 13:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576833', 'tblTempUsageDetail_20' ) end [2025-02-28 13:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:43:27] Production.INFO: ==22343== Releasing lock... [2025-02-28 13:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:43:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:44:06 [end_date_ymd] => 2025-02-28 13:44:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:44:06' and `end` < '2025-02-28 13: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-02-28 13:44:19] Production.INFO: count ==4845 [2025-02-28 13:44:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:44:06 - End Time 2025-02-28 13:44:06 [2025-02-28 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576838', 'tblTempUsageDetail_20' ) start [2025-02-28 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576838', 'tblTempUsageDetail_20' ) end [2025-02-28 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576838', 'tblTempVendorCDR_20' ) start [2025-02-28 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576838', 'tblTempVendorCDR_20' ) end [2025-02-28 13:44:21] Production.INFO: ProcessCDR(1,14576838,1,1,2) [2025-02-28 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576838', 'tblTempUsageDetail_20' ) start [2025-02-28 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576838', 'tblTempUsageDetail_20' ) end [2025-02-28 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:44:26] Production.INFO: ==22416== Releasing lock... [2025-02-28 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:44:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:45:05 [end_date_ymd] => 2025-02-28 13:45:05 [RateCDR] => 1 ) [2025-02-28 13:45:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:45:05' and `end` < '2025-02-28 13:45:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:45:18] Production.INFO: count ==4841 [2025-02-28 13:45:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:45:05 - End Time 2025-02-28 13:45:05 [2025-02-28 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576843', 'tblTempUsageDetail_20' ) start [2025-02-28 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576843', 'tblTempUsageDetail_20' ) end [2025-02-28 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576843', 'tblTempVendorCDR_20' ) start [2025-02-28 13:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576843', 'tblTempVendorCDR_20' ) end [2025-02-28 13:45:21] Production.INFO: ProcessCDR(1,14576843,1,1,2) [2025-02-28 13:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576843', 'tblTempUsageDetail_20' ) start [2025-02-28 13:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576843', 'tblTempUsageDetail_20' ) end [2025-02-28 13:45:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:45:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:45:26] Production.INFO: ==22488== Releasing lock... [2025-02-28 13:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:45:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:46:06 [end_date_ymd] => 2025-02-28 13:46:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:46:06' and `end` < '2025-02-28 13: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-02-28 13:46:19] Production.INFO: count ==4843 [2025-02-28 13:46:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:46:06 - End Time 2025-02-28 13:46:06 [2025-02-28 13:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576848', 'tblTempUsageDetail_20' ) start [2025-02-28 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576848', 'tblTempUsageDetail_20' ) end [2025-02-28 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576848', 'tblTempVendorCDR_20' ) start [2025-02-28 13:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576848', 'tblTempVendorCDR_20' ) end [2025-02-28 13:46:21] Production.INFO: ProcessCDR(1,14576848,1,1,2) [2025-02-28 13:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576848', 'tblTempUsageDetail_20' ) start [2025-02-28 13:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576848', 'tblTempUsageDetail_20' ) end [2025-02-28 13:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:46:27] Production.INFO: ==22563== Releasing lock... [2025-02-28 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:46:27] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:47:05 [end_date_ymd] => 2025-02-28 13:47:05 [RateCDR] => 1 ) [2025-02-28 13:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:47:05' and `end` < '2025-02-28 13:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:47:18] Production.INFO: count ==4856 [2025-02-28 13:47:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:47:05 - End Time 2025-02-28 13:47:05 [2025-02-28 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576853', 'tblTempUsageDetail_20' ) start [2025-02-28 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576853', 'tblTempUsageDetail_20' ) end [2025-02-28 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576853', 'tblTempVendorCDR_20' ) start [2025-02-28 13:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576853', 'tblTempVendorCDR_20' ) end [2025-02-28 13:47:21] Production.INFO: ProcessCDR(1,14576853,1,1,2) [2025-02-28 13:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576853', 'tblTempUsageDetail_20' ) start [2025-02-28 13:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576853', 'tblTempUsageDetail_20' ) end [2025-02-28 13:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:47:26] Production.INFO: ==22636== Releasing lock... [2025-02-28 13:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:47:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:48:06 [end_date_ymd] => 2025-02-28 13:48:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:48:06' and `end` < '2025-02-28 13: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-02-28 13:48:19] Production.INFO: count ==4867 [2025-02-28 13:48:22] Production.ERROR: pbx CDR StartTime 2025-02-28 10:48:06 - End Time 2025-02-28 13:48:06 [2025-02-28 13:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576858', 'tblTempUsageDetail_20' ) start [2025-02-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576858', 'tblTempUsageDetail_20' ) end [2025-02-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576858', 'tblTempVendorCDR_20' ) start [2025-02-28 13:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576858', 'tblTempVendorCDR_20' ) end [2025-02-28 13:48:22] Production.INFO: ProcessCDR(1,14576858,1,1,2) [2025-02-28 13:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576858', 'tblTempUsageDetail_20' ) start [2025-02-28 13:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576858', 'tblTempUsageDetail_20' ) end [2025-02-28 13:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:48:27] Production.INFO: ==22709== Releasing lock... [2025-02-28 13:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:48:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:49:06 [end_date_ymd] => 2025-02-28 13:49:06 [RateCDR] => 1 ) [2025-02-28 13: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-02-28 10:49:06' and `end` < '2025-02-28 13: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-02-28 13:49:19] Production.INFO: count ==4876 [2025-02-28 13:49:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:49:06 - End Time 2025-02-28 13:49:06 [2025-02-28 13:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576863', 'tblTempUsageDetail_20' ) start [2025-02-28 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576863', 'tblTempUsageDetail_20' ) end [2025-02-28 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576863', 'tblTempVendorCDR_20' ) start [2025-02-28 13:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576863', 'tblTempVendorCDR_20' ) end [2025-02-28 13:49:21] Production.INFO: ProcessCDR(1,14576863,1,1,2) [2025-02-28 13:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576863', 'tblTempUsageDetail_20' ) start [2025-02-28 13:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576863', 'tblTempUsageDetail_20' ) end [2025-02-28 13:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:49:27] Production.INFO: ==22783== Releasing lock... [2025-02-28 13:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:49:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:50:06 [end_date_ymd] => 2025-02-28 13:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:50:06' and `end` < '2025-02-28 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-02-28 13:50:19] Production.INFO: count ==4909 [2025-02-28 13:50:22] Production.ERROR: pbx CDR StartTime 2025-02-28 10:50:06 - End Time 2025-02-28 13:50:06 [2025-02-28 13:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576869', 'tblTempUsageDetail_20' ) start [2025-02-28 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576869', 'tblTempUsageDetail_20' ) end [2025-02-28 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576869', 'tblTempVendorCDR_20' ) start [2025-02-28 13:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576869', 'tblTempVendorCDR_20' ) end [2025-02-28 13:50:22] Production.INFO: ProcessCDR(1,14576869,1,1,2) [2025-02-28 13:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576869', 'tblTempUsageDetail_20' ) start [2025-02-28 13:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576869', 'tblTempUsageDetail_20' ) end [2025-02-28 13:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:50:28] Production.INFO: ==22861== Releasing lock... [2025-02-28 13:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:50:28] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:51:05 [end_date_ymd] => 2025-02-28 13:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:51:05' and `end` < '2025-02-28 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-02-28 13:51:18] Production.INFO: count ==4932 [2025-02-28 13:51:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:51:05 - End Time 2025-02-28 13:51:05 [2025-02-28 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576874', 'tblTempUsageDetail_20' ) start [2025-02-28 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576874', 'tblTempUsageDetail_20' ) end [2025-02-28 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576874', 'tblTempVendorCDR_20' ) start [2025-02-28 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576874', 'tblTempVendorCDR_20' ) end [2025-02-28 13:51:21] Production.INFO: ProcessCDR(1,14576874,1,1,2) [2025-02-28 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576874', 'tblTempUsageDetail_20' ) start [2025-02-28 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576874', 'tblTempUsageDetail_20' ) end [2025-02-28 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:51:26] Production.INFO: ==22939== Releasing lock... [2025-02-28 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:51:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:52:05 [end_date_ymd] => 2025-02-28 13:52:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:52:05' and `end` < '2025-02-28 13:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:52:18] Production.INFO: count ==4940 [2025-02-28 13:52:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:52:05 - End Time 2025-02-28 13:52:05 [2025-02-28 13:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576879', 'tblTempUsageDetail_20' ) start [2025-02-28 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576879', 'tblTempUsageDetail_20' ) end [2025-02-28 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576879', 'tblTempVendorCDR_20' ) start [2025-02-28 13:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576879', 'tblTempVendorCDR_20' ) end [2025-02-28 13:52:21] Production.INFO: ProcessCDR(1,14576879,1,1,2) [2025-02-28 13:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576879', 'tblTempUsageDetail_20' ) start [2025-02-28 13:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576879', 'tblTempUsageDetail_20' ) end [2025-02-28 13:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:52:26] Production.INFO: ==23049== Releasing lock... [2025-02-28 13:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:52:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:53:05 [end_date_ymd] => 2025-02-28 13:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:53:05' and `end` < '2025-02-28 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-02-28 13:53:18] Production.INFO: count ==4974 [2025-02-28 13:53:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:53:05 - End Time 2025-02-28 13:53:05 [2025-02-28 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576884', 'tblTempUsageDetail_20' ) start [2025-02-28 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576884', 'tblTempUsageDetail_20' ) end [2025-02-28 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576884', 'tblTempVendorCDR_20' ) start [2025-02-28 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576884', 'tblTempVendorCDR_20' ) end [2025-02-28 13:53:20] Production.INFO: ProcessCDR(1,14576884,1,1,2) [2025-02-28 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576884', 'tblTempUsageDetail_20' ) start [2025-02-28 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576884', 'tblTempUsageDetail_20' ) end [2025-02-28 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:53:25] Production.INFO: ==23118== Releasing lock... [2025-02-28 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:53:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:54:05 [end_date_ymd] => 2025-02-28 13:54:05 [RateCDR] => 1 ) [2025-02-28 13:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:54:05' and `end` < '2025-02-28 13:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:54:18] Production.INFO: count ==4956 [2025-02-28 13:54:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:54:05 - End Time 2025-02-28 13:54:05 [2025-02-28 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576889', 'tblTempUsageDetail_20' ) start [2025-02-28 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576889', 'tblTempUsageDetail_20' ) end [2025-02-28 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576889', 'tblTempVendorCDR_20' ) start [2025-02-28 13:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576889', 'tblTempVendorCDR_20' ) end [2025-02-28 13:54:21] Production.INFO: ProcessCDR(1,14576889,1,1,2) [2025-02-28 13:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576889', 'tblTempUsageDetail_20' ) start [2025-02-28 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576889', 'tblTempUsageDetail_20' ) end [2025-02-28 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:54:26] Production.INFO: ==23190== Releasing lock... [2025-02-28 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:54:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:55:05 [end_date_ymd] => 2025-02-28 13:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:55:05' and `end` < '2025-02-28 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-02-28 13:55:18] Production.INFO: count ==4959 [2025-02-28 13:55:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:55:05 - End Time 2025-02-28 13:55:05 [2025-02-28 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576894', 'tblTempUsageDetail_20' ) start [2025-02-28 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576894', 'tblTempUsageDetail_20' ) end [2025-02-28 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576894', 'tblTempVendorCDR_20' ) start [2025-02-28 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576894', 'tblTempVendorCDR_20' ) end [2025-02-28 13:55:20] Production.INFO: ProcessCDR(1,14576894,1,1,2) [2025-02-28 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576894', 'tblTempUsageDetail_20' ) start [2025-02-28 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576894', 'tblTempUsageDetail_20' ) end [2025-02-28 13:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:55:26] Production.INFO: ==23261== Releasing lock... [2025-02-28 13:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:55:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:56:06 [end_date_ymd] => 2025-02-28 13:56:06 [RateCDR] => 1 ) [2025-02-28 13:56:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 10:56:06' and `end` < '2025-02-28 13:56:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 13:56:19] Production.INFO: count ==4957 [2025-02-28 13:56:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:56:06 - End Time 2025-02-28 13:56:06 [2025-02-28 13:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576899', 'tblTempUsageDetail_20' ) start [2025-02-28 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576899', 'tblTempUsageDetail_20' ) end [2025-02-28 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576899', 'tblTempVendorCDR_20' ) start [2025-02-28 13:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576899', 'tblTempVendorCDR_20' ) end [2025-02-28 13:56:21] Production.INFO: ProcessCDR(1,14576899,1,1,2) [2025-02-28 13:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576899', 'tblTempUsageDetail_20' ) start [2025-02-28 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576899', 'tblTempUsageDetail_20' ) end [2025-02-28 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:56:26] Production.INFO: ==23333== Releasing lock... [2025-02-28 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:56:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:57:05 [end_date_ymd] => 2025-02-28 13:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:57:05' and `end` < '2025-02-28 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-02-28 13:57:18] Production.INFO: count ==4959 [2025-02-28 13:57:21] Production.ERROR: pbx CDR StartTime 2025-02-28 10:57:05 - End Time 2025-02-28 13:57:05 [2025-02-28 13:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576904', 'tblTempUsageDetail_20' ) start [2025-02-28 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576904', 'tblTempUsageDetail_20' ) end [2025-02-28 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576904', 'tblTempVendorCDR_20' ) start [2025-02-28 13:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576904', 'tblTempVendorCDR_20' ) end [2025-02-28 13:57:21] Production.INFO: ProcessCDR(1,14576904,1,1,2) [2025-02-28 13:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576904', 'tblTempUsageDetail_20' ) start [2025-02-28 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576904', 'tblTempUsageDetail_20' ) end [2025-02-28 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:57:26] Production.INFO: ==23403== Releasing lock... [2025-02-28 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:57:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:58:05 [end_date_ymd] => 2025-02-28 13:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:58:05' and `end` < '2025-02-28 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-02-28 13:58:18] Production.INFO: count ==4941 [2025-02-28 13:58:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:58:05 - End Time 2025-02-28 13:58:05 [2025-02-28 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576909', 'tblTempUsageDetail_20' ) start [2025-02-28 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576909', 'tblTempUsageDetail_20' ) end [2025-02-28 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576909', 'tblTempVendorCDR_20' ) start [2025-02-28 13:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576909', 'tblTempVendorCDR_20' ) end [2025-02-28 13:58:21] Production.INFO: ProcessCDR(1,14576909,1,1,2) [2025-02-28 13:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576909', 'tblTempUsageDetail_20' ) start [2025-02-28 13:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576909', 'tblTempUsageDetail_20' ) end [2025-02-28 13:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:58:26] Production.INFO: ==23474== Releasing lock... [2025-02-28 13:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:58:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 10:59:05 [end_date_ymd] => 2025-02-28 13:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 10:59:05' and `end` < '2025-02-28 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-02-28 13:59:18] Production.INFO: count ==4932 [2025-02-28 13:59:20] Production.ERROR: pbx CDR StartTime 2025-02-28 10:59:05 - End Time 2025-02-28 13:59:05 [2025-02-28 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576914', 'tblTempUsageDetail_20' ) start [2025-02-28 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576914', 'tblTempUsageDetail_20' ) end [2025-02-28 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576914', 'tblTempVendorCDR_20' ) start [2025-02-28 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576914', 'tblTempVendorCDR_20' ) end [2025-02-28 13:59:20] Production.INFO: ProcessCDR(1,14576914,1,1,2) [2025-02-28 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 13:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576914', 'tblTempUsageDetail_20' ) start [2025-02-28 13:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576914', 'tblTempUsageDetail_20' ) end [2025-02-28 13:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 13:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 13:59:26] Production.INFO: ==23549== Releasing lock... [2025-02-28 13:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 13:59:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:00:07 [end_date_ymd] => 2025-02-28 14:00:07 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:00:07' and `end` < '2025-02-28 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-02-28 14:00:20] Production.INFO: count ==4940 [2025-02-28 14:00:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:00:07 - End Time 2025-02-28 14:00:07 [2025-02-28 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576920', 'tblTempUsageDetail_20' ) start [2025-02-28 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576920', 'tblTempUsageDetail_20' ) end [2025-02-28 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576920', 'tblTempVendorCDR_20' ) start [2025-02-28 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576920', 'tblTempVendorCDR_20' ) end [2025-02-28 14:00:23] Production.INFO: ProcessCDR(1,14576920,1,1,2) [2025-02-28 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576920', 'tblTempUsageDetail_20' ) start [2025-02-28 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576920', 'tblTempUsageDetail_20' ) end [2025-02-28 14:00:29] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:00:29] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:00:29] Production.INFO: ==23623== Releasing lock... [2025-02-28 14:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:00:29] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:01:05 [end_date_ymd] => 2025-02-28 14:01:05 [RateCDR] => 1 ) [2025-02-28 14:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:01:05' and `end` < '2025-02-28 14:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:01:18] Production.INFO: count ==4936 [2025-02-28 14:01:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:01:05 - End Time 2025-02-28 14:01:05 [2025-02-28 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576925', 'tblTempUsageDetail_20' ) start [2025-02-28 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576925', 'tblTempUsageDetail_20' ) end [2025-02-28 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576925', 'tblTempVendorCDR_20' ) start [2025-02-28 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576925', 'tblTempVendorCDR_20' ) end [2025-02-28 14:01:20] Production.INFO: ProcessCDR(1,14576925,1,1,2) [2025-02-28 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576925', 'tblTempUsageDetail_20' ) start [2025-02-28 14:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576925', 'tblTempUsageDetail_20' ) end [2025-02-28 14:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:01:26] Production.INFO: ==23706== Releasing lock... [2025-02-28 14:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:01:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:02:06 [end_date_ymd] => 2025-02-28 14:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:02:06' and `end` < '2025-02-28 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-02-28 14:02:19] Production.INFO: count ==4961 [2025-02-28 14:02:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:02:06 - End Time 2025-02-28 14:02:06 [2025-02-28 14:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576930', 'tblTempUsageDetail_20' ) start [2025-02-28 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576930', 'tblTempUsageDetail_20' ) end [2025-02-28 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576930', 'tblTempVendorCDR_20' ) start [2025-02-28 14:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576930', 'tblTempVendorCDR_20' ) end [2025-02-28 14:02:21] Production.INFO: ProcessCDR(1,14576930,1,1,2) [2025-02-28 14:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576930', 'tblTempUsageDetail_20' ) start [2025-02-28 14:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576930', 'tblTempUsageDetail_20' ) end [2025-02-28 14:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:02:27] Production.INFO: ==23777== Releasing lock... [2025-02-28 14:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:02:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:03:05 [end_date_ymd] => 2025-02-28 14:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:03:05' and `end` < '2025-02-28 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-02-28 14:03:18] Production.INFO: count ==4936 [2025-02-28 14:03:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:03:05 - End Time 2025-02-28 14:03:05 [2025-02-28 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576935', 'tblTempUsageDetail_20' ) start [2025-02-28 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576935', 'tblTempUsageDetail_20' ) end [2025-02-28 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576935', 'tblTempVendorCDR_20' ) start [2025-02-28 14:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576935', 'tblTempVendorCDR_20' ) end [2025-02-28 14:03:21] Production.INFO: ProcessCDR(1,14576935,1,1,2) [2025-02-28 14:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576935', 'tblTempUsageDetail_20' ) start [2025-02-28 14:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576935', 'tblTempUsageDetail_20' ) end [2025-02-28 14:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:03:26] Production.INFO: ==23854== Releasing lock... [2025-02-28 14:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:03:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:04:06 [end_date_ymd] => 2025-02-28 14:04:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:04:06' and `end` < '2025-02-28 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-02-28 14:04:19] Production.INFO: count ==4920 [2025-02-28 14:04:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:04:06 - End Time 2025-02-28 14:04:06 [2025-02-28 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576940', 'tblTempUsageDetail_20' ) start [2025-02-28 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576940', 'tblTempUsageDetail_20' ) end [2025-02-28 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576940', 'tblTempVendorCDR_20' ) start [2025-02-28 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576940', 'tblTempVendorCDR_20' ) end [2025-02-28 14:04:22] Production.INFO: ProcessCDR(1,14576940,1,1,2) [2025-02-28 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576940', 'tblTempUsageDetail_20' ) start [2025-02-28 14:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576940', 'tblTempUsageDetail_20' ) end [2025-02-28 14:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:04:27] Production.INFO: ==23928== Releasing lock... [2025-02-28 14:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:04:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:05:05 [end_date_ymd] => 2025-02-28 14:05:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:05:05' and `end` < '2025-02-28 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-02-28 14:05:19] Production.INFO: count ==4903 [2025-02-28 14:05:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:05:05 - End Time 2025-02-28 14:05:05 [2025-02-28 14:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576945', 'tblTempUsageDetail_20' ) start [2025-02-28 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576945', 'tblTempUsageDetail_20' ) end [2025-02-28 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576945', 'tblTempVendorCDR_20' ) start [2025-02-28 14:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576945', 'tblTempVendorCDR_20' ) end [2025-02-28 14:05:21] Production.INFO: ProcessCDR(1,14576945,1,1,2) [2025-02-28 14:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576945', 'tblTempUsageDetail_20' ) start [2025-02-28 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576945', 'tblTempUsageDetail_20' ) end [2025-02-28 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:05:25] Production.INFO: ==23998== Releasing lock... [2025-02-28 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:05:25] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:06:06 [end_date_ymd] => 2025-02-28 14:06:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:06:06' and `end` < '2025-02-28 14: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-02-28 14:06:19] Production.INFO: count ==4899 [2025-02-28 14:06:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:06:06 - End Time 2025-02-28 14:06:06 [2025-02-28 14:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576950', 'tblTempUsageDetail_20' ) start [2025-02-28 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576950', 'tblTempUsageDetail_20' ) end [2025-02-28 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576950', 'tblTempVendorCDR_20' ) start [2025-02-28 14:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576950', 'tblTempVendorCDR_20' ) end [2025-02-28 14:06:21] Production.INFO: ProcessCDR(1,14576950,1,1,2) [2025-02-28 14:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576950', 'tblTempUsageDetail_20' ) start [2025-02-28 14:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576950', 'tblTempUsageDetail_20' ) end [2025-02-28 14:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:06:27] Production.INFO: ==24068== Releasing lock... [2025-02-28 14:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:06:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:07:05 [end_date_ymd] => 2025-02-28 14:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:07:05' and `end` < '2025-02-28 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-02-28 14:07:18] Production.INFO: count ==4919 [2025-02-28 14:07:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:07:05 - End Time 2025-02-28 14:07:05 [2025-02-28 14:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576955', 'tblTempUsageDetail_20' ) start [2025-02-28 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576955', 'tblTempUsageDetail_20' ) end [2025-02-28 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576955', 'tblTempVendorCDR_20' ) start [2025-02-28 14:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576955', 'tblTempVendorCDR_20' ) end [2025-02-28 14:07:20] Production.INFO: ProcessCDR(1,14576955,1,1,2) [2025-02-28 14:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576955', 'tblTempUsageDetail_20' ) start [2025-02-28 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576955', 'tblTempUsageDetail_20' ) end [2025-02-28 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:07:26] Production.INFO: ==24181== Releasing lock... [2025-02-28 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:07:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:08:06 [end_date_ymd] => 2025-02-28 14:08:06 [RateCDR] => 1 ) [2025-02-28 14:08:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:08:06' and `end` < '2025-02-28 14: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-02-28 14:08:19] Production.INFO: count ==4936 [2025-02-28 14:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:08:06 - End Time 2025-02-28 14:08:06 [2025-02-28 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576960', 'tblTempUsageDetail_20' ) start [2025-02-28 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576960', 'tblTempUsageDetail_20' ) end [2025-02-28 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576960', 'tblTempVendorCDR_20' ) start [2025-02-28 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576960', 'tblTempVendorCDR_20' ) end [2025-02-28 14:08:22] Production.INFO: ProcessCDR(1,14576960,1,1,2) [2025-02-28 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576960', 'tblTempUsageDetail_20' ) start [2025-02-28 14:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576960', 'tblTempUsageDetail_20' ) end [2025-02-28 14:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:08:27] Production.INFO: ==24253== Releasing lock... [2025-02-28 14:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:08:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:09:05 [end_date_ymd] => 2025-02-28 14:09:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:09:05' and `end` < '2025-02-28 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-02-28 14:09:18] Production.INFO: count ==4985 [2025-02-28 14:09:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:09:05 - End Time 2025-02-28 14:09:05 [2025-02-28 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576965', 'tblTempUsageDetail_20' ) start [2025-02-28 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576965', 'tblTempUsageDetail_20' ) end [2025-02-28 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576965', 'tblTempVendorCDR_20' ) start [2025-02-28 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576965', 'tblTempVendorCDR_20' ) end [2025-02-28 14:09:21] Production.INFO: ProcessCDR(1,14576965,1,1,2) [2025-02-28 14:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576965', 'tblTempUsageDetail_20' ) start [2025-02-28 14:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576965', 'tblTempUsageDetail_20' ) end [2025-02-28 14:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:09:27] Production.INFO: ==24322== Releasing lock... [2025-02-28 14:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:09:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:10:07 [end_date_ymd] => 2025-02-28 14:10:07 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:10:07' and `end` < '2025-02-28 14: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-02-28 14:10:20] Production.INFO: count ==4985 [2025-02-28 14:10:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:10:07 - End Time 2025-02-28 14:10:07 [2025-02-28 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576971', 'tblTempUsageDetail_20' ) start [2025-02-28 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576971', 'tblTempUsageDetail_20' ) end [2025-02-28 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576971', 'tblTempVendorCDR_20' ) start [2025-02-28 14:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576971', 'tblTempVendorCDR_20' ) end [2025-02-28 14:10:23] Production.INFO: ProcessCDR(1,14576971,1,1,2) [2025-02-28 14:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576971', 'tblTempUsageDetail_20' ) start [2025-02-28 14:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576971', 'tblTempUsageDetail_20' ) end [2025-02-28 14:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:10:28] Production.INFO: ==24396== Releasing lock... [2025-02-28 14:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:10:28] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:11:06 [end_date_ymd] => 2025-02-28 14:11:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:11:06' and `end` < '2025-02-28 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-02-28 14:11:19] Production.INFO: count ==5005 [2025-02-28 14:11:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:11:06 - End Time 2025-02-28 14:11:06 [2025-02-28 14:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576976', 'tblTempUsageDetail_20' ) start [2025-02-28 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576976', 'tblTempUsageDetail_20' ) end [2025-02-28 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576976', 'tblTempVendorCDR_20' ) start [2025-02-28 14:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576976', 'tblTempVendorCDR_20' ) end [2025-02-28 14:11:21] Production.INFO: ProcessCDR(1,14576976,1,1,2) [2025-02-28 14:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576976', 'tblTempUsageDetail_20' ) start [2025-02-28 14:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576976', 'tblTempUsageDetail_20' ) end [2025-02-28 14:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:11:27] Production.INFO: ==24468== Releasing lock... [2025-02-28 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:11:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:12:06 [end_date_ymd] => 2025-02-28 14:12:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:12:06' and `end` < '2025-02-28 14: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-02-28 14:12:19] Production.INFO: count ==4978 [2025-02-28 14:12:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:12:06 - End Time 2025-02-28 14:12:06 [2025-02-28 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576981', 'tblTempUsageDetail_20' ) start [2025-02-28 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576981', 'tblTempUsageDetail_20' ) end [2025-02-28 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576981', 'tblTempVendorCDR_20' ) start [2025-02-28 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576981', 'tblTempVendorCDR_20' ) end [2025-02-28 14:12:21] Production.INFO: ProcessCDR(1,14576981,1,1,2) [2025-02-28 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576981', 'tblTempUsageDetail_20' ) start [2025-02-28 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576981', 'tblTempUsageDetail_20' ) end [2025-02-28 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:12:26] Production.INFO: ==24540== Releasing lock... [2025-02-28 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:12:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:13:05 [end_date_ymd] => 2025-02-28 14:13:05 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:13:05' and `end` < '2025-02-28 14: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-02-28 14:13:18] Production.INFO: count ==4968 [2025-02-28 14:13:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:13:05 - End Time 2025-02-28 14:13:05 [2025-02-28 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576986', 'tblTempUsageDetail_20' ) start [2025-02-28 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576986', 'tblTempUsageDetail_20' ) end [2025-02-28 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576986', 'tblTempVendorCDR_20' ) start [2025-02-28 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576986', 'tblTempVendorCDR_20' ) end [2025-02-28 14:13:20] Production.INFO: ProcessCDR(1,14576986,1,1,2) [2025-02-28 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576986', 'tblTempUsageDetail_20' ) start [2025-02-28 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576986', 'tblTempUsageDetail_20' ) end [2025-02-28 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:13:26] Production.INFO: ==24612== Releasing lock... [2025-02-28 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:13:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:14:06 [end_date_ymd] => 2025-02-28 14:14:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:14:06' and `end` < '2025-02-28 14: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-02-28 14:14:19] Production.INFO: count ==5009 [2025-02-28 14:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:14:06 - End Time 2025-02-28 14:14:06 [2025-02-28 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576991', 'tblTempUsageDetail_20' ) start [2025-02-28 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576991', 'tblTempUsageDetail_20' ) end [2025-02-28 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576991', 'tblTempVendorCDR_20' ) start [2025-02-28 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576991', 'tblTempVendorCDR_20' ) end [2025-02-28 14:14:21] Production.INFO: ProcessCDR(1,14576991,1,1,2) [2025-02-28 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:14:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576991', 'tblTempUsageDetail_20' ) start [2025-02-28 14:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576991', 'tblTempUsageDetail_20' ) end [2025-02-28 14:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:14:27] Production.INFO: ==24686== Releasing lock... [2025-02-28 14:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:14:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:15:05 [end_date_ymd] => 2025-02-28 14:15:05 [RateCDR] => 1 ) [2025-02-28 14:15:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:15:05' and `end` < '2025-02-28 14:15:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:15:18] Production.INFO: count ==5035 [2025-02-28 14:15:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:15:05 - End Time 2025-02-28 14:15:05 [2025-02-28 14:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576996', 'tblTempUsageDetail_20' ) start [2025-02-28 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14576996', 'tblTempUsageDetail_20' ) end [2025-02-28 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576996', 'tblTempVendorCDR_20' ) start [2025-02-28 14:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14576996', 'tblTempVendorCDR_20' ) end [2025-02-28 14:15:21] Production.INFO: ProcessCDR(1,14576996,1,1,2) [2025-02-28 14:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14576996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14576996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14576996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14576996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576996', 'tblTempUsageDetail_20' ) start [2025-02-28 14:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14576996', 'tblTempUsageDetail_20' ) end [2025-02-28 14:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:15:26] Production.INFO: ==24759== Releasing lock... [2025-02-28 14:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:15:26] Production.INFO: 65.75 MB #Memory Used# [2025-02-28 14:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:16:06 [end_date_ymd] => 2025-02-28 14:16:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:16:06' and `end` < '2025-02-28 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-02-28 14:16:19] Production.INFO: count ==5139 [2025-02-28 14:16:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:16:06 - End Time 2025-02-28 14:16:06 [2025-02-28 14:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577001', 'tblTempUsageDetail_20' ) start [2025-02-28 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577001', 'tblTempUsageDetail_20' ) end [2025-02-28 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577001', 'tblTempVendorCDR_20' ) start [2025-02-28 14:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577001', 'tblTempVendorCDR_20' ) end [2025-02-28 14:16:22] Production.INFO: ProcessCDR(1,14577001,1,1,2) [2025-02-28 14:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577001', 'tblTempUsageDetail_20' ) start [2025-02-28 14:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577001', 'tblTempUsageDetail_20' ) end [2025-02-28 14:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:16:27] Production.INFO: ==24836== Releasing lock... [2025-02-28 14:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:16:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:17:05 [end_date_ymd] => 2025-02-28 14:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:17:05' and `end` < '2025-02-28 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-02-28 14:17:18] Production.INFO: count ==5124 [2025-02-28 14:17:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:17:05 - End Time 2025-02-28 14:17:05 [2025-02-28 14:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577006', 'tblTempUsageDetail_20' ) start [2025-02-28 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577006', 'tblTempUsageDetail_20' ) end [2025-02-28 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577006', 'tblTempVendorCDR_20' ) start [2025-02-28 14:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577006', 'tblTempVendorCDR_20' ) end [2025-02-28 14:17:21] Production.INFO: ProcessCDR(1,14577006,1,1,2) [2025-02-28 14:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577006', 'tblTempUsageDetail_20' ) start [2025-02-28 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577006', 'tblTempUsageDetail_20' ) end [2025-02-28 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:17:26] Production.INFO: ==24910== Releasing lock... [2025-02-28 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:17:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:18:06 [end_date_ymd] => 2025-02-28 14:18:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:18:06' and `end` < '2025-02-28 14: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-02-28 14:18:19] Production.INFO: count ==5104 [2025-02-28 14:18:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:18:06 - End Time 2025-02-28 14:18:06 [2025-02-28 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577011', 'tblTempUsageDetail_20' ) start [2025-02-28 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577011', 'tblTempUsageDetail_20' ) end [2025-02-28 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577011', 'tblTempVendorCDR_20' ) start [2025-02-28 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577011', 'tblTempVendorCDR_20' ) end [2025-02-28 14:18:21] Production.INFO: ProcessCDR(1,14577011,1,1,2) [2025-02-28 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577011', 'tblTempUsageDetail_20' ) start [2025-02-28 14:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577011', 'tblTempUsageDetail_20' ) end [2025-02-28 14:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:18:27] Production.INFO: ==24985== Releasing lock... [2025-02-28 14:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:18:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:19:05 [end_date_ymd] => 2025-02-28 14:19:05 [RateCDR] => 1 ) [2025-02-28 14:19:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:19:05' and `end` < '2025-02-28 14:19:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:19:18] Production.INFO: count ==5082 [2025-02-28 14:19:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:19:05 - End Time 2025-02-28 14:19:05 [2025-02-28 14:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577016', 'tblTempUsageDetail_20' ) start [2025-02-28 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577016', 'tblTempUsageDetail_20' ) end [2025-02-28 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577016', 'tblTempVendorCDR_20' ) start [2025-02-28 14:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577016', 'tblTempVendorCDR_20' ) end [2025-02-28 14:19:21] Production.INFO: ProcessCDR(1,14577016,1,1,2) [2025-02-28 14:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577016,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577016,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577016', 'tblTempUsageDetail_20' ) start [2025-02-28 14:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577016', 'tblTempUsageDetail_20' ) end [2025-02-28 14:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:19:26] Production.INFO: ==25056== Releasing lock... [2025-02-28 14:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:19:26] Production.INFO: 66 MB #Memory Used# [2025-02-28 14:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:20:07 [end_date_ymd] => 2025-02-28 14:20:07 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:20:07' and `end` < '2025-02-28 14: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-02-28 14:20:20] Production.INFO: count ==5077 [2025-02-28 14:20:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:20:07 - End Time 2025-02-28 14:20:07 [2025-02-28 14:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577022', 'tblTempUsageDetail_20' ) start [2025-02-28 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577022', 'tblTempUsageDetail_20' ) end [2025-02-28 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577022', 'tblTempVendorCDR_20' ) start [2025-02-28 14:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577022', 'tblTempVendorCDR_20' ) end [2025-02-28 14:20:22] Production.INFO: ProcessCDR(1,14577022,1,1,2) [2025-02-28 14:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577022', 'tblTempUsageDetail_20' ) start [2025-02-28 14:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577022', 'tblTempUsageDetail_20' ) end [2025-02-28 14:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:20:28] Production.INFO: ==25127== Releasing lock... [2025-02-28 14:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:20:28] Production.INFO: 66 MB #Memory Used# [2025-02-28 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:21:05 [end_date_ymd] => 2025-02-28 14:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:21:05' and `end` < '2025-02-28 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-02-28 14:21:18] Production.INFO: count ==5023 [2025-02-28 14:21:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:21:05 - End Time 2025-02-28 14:21:05 [2025-02-28 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577027', 'tblTempUsageDetail_20' ) start [2025-02-28 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577027', 'tblTempUsageDetail_20' ) end [2025-02-28 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577027', 'tblTempVendorCDR_20' ) start [2025-02-28 14:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577027', 'tblTempVendorCDR_20' ) end [2025-02-28 14:21:21] Production.INFO: ProcessCDR(1,14577027,1,1,2) [2025-02-28 14:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577027', 'tblTempUsageDetail_20' ) start [2025-02-28 14:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577027', 'tblTempUsageDetail_20' ) end [2025-02-28 14:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:21:26] Production.INFO: ==25203== Releasing lock... [2025-02-28 14:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:21:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:22:06 [end_date_ymd] => 2025-02-28 14:22:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:22:06' and `end` < '2025-02-28 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-02-28 14:22:19] Production.INFO: count ==5029 [2025-02-28 14:22:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:22:06 - End Time 2025-02-28 14:22:06 [2025-02-28 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577032', 'tblTempUsageDetail_20' ) start [2025-02-28 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577032', 'tblTempUsageDetail_20' ) end [2025-02-28 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577032', 'tblTempVendorCDR_20' ) start [2025-02-28 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577032', 'tblTempVendorCDR_20' ) end [2025-02-28 14:22:21] Production.INFO: ProcessCDR(1,14577032,1,1,2) [2025-02-28 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577032', 'tblTempUsageDetail_20' ) start [2025-02-28 14:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577032', 'tblTempUsageDetail_20' ) end [2025-02-28 14:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:22:27] Production.INFO: ==25315== Releasing lock... [2025-02-28 14:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:22:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-28 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:23:05 [end_date_ymd] => 2025-02-28 14:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:23:05' and `end` < '2025-02-28 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-02-28 14:23:18] Production.INFO: count ==5028 [2025-02-28 14:23:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:23:05 - End Time 2025-02-28 14:23:05 [2025-02-28 14:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577037', 'tblTempUsageDetail_20' ) start [2025-02-28 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577037', 'tblTempUsageDetail_20' ) end [2025-02-28 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577037', 'tblTempVendorCDR_20' ) start [2025-02-28 14:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577037', 'tblTempVendorCDR_20' ) end [2025-02-28 14:23:21] Production.INFO: ProcessCDR(1,14577037,1,1,2) [2025-02-28 14:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577037', 'tblTempUsageDetail_20' ) start [2025-02-28 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577037', 'tblTempUsageDetail_20' ) end [2025-02-28 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:23:26] Production.INFO: ==25389== Releasing lock... [2025-02-28 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:23:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:24:06 [end_date_ymd] => 2025-02-28 14:24:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:24:06' and `end` < '2025-02-28 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-02-28 14:24:19] Production.INFO: count ==5024 [2025-02-28 14:24:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:24:06 - End Time 2025-02-28 14:24:06 [2025-02-28 14:24:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577042', 'tblTempUsageDetail_20' ) start [2025-02-28 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577042', 'tblTempUsageDetail_20' ) end [2025-02-28 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577042', 'tblTempVendorCDR_20' ) start [2025-02-28 14:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577042', 'tblTempVendorCDR_20' ) end [2025-02-28 14:24:22] Production.INFO: ProcessCDR(1,14577042,1,1,2) [2025-02-28 14:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:24:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:24:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577042', 'tblTempUsageDetail_20' ) start [2025-02-28 14:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577042', 'tblTempUsageDetail_20' ) end [2025-02-28 14:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:24:27] Production.INFO: ==25460== Releasing lock... [2025-02-28 14:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:24:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:25:05 [end_date_ymd] => 2025-02-28 14:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:25:05' and `end` < '2025-02-28 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-02-28 14:25:18] Production.INFO: count ==5027 [2025-02-28 14:25:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:25:05 - End Time 2025-02-28 14:25:05 [2025-02-28 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577047', 'tblTempUsageDetail_20' ) start [2025-02-28 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577047', 'tblTempUsageDetail_20' ) end [2025-02-28 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577047', 'tblTempVendorCDR_20' ) start [2025-02-28 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577047', 'tblTempVendorCDR_20' ) end [2025-02-28 14:25:21] Production.INFO: ProcessCDR(1,14577047,1,1,2) [2025-02-28 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577047', 'tblTempUsageDetail_20' ) start [2025-02-28 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577047', 'tblTempUsageDetail_20' ) end [2025-02-28 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:25:27] Production.INFO: ==25535== Releasing lock... [2025-02-28 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:25:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:26:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:26:07 [end_date_ymd] => 2025-02-28 14:26:07 [RateCDR] => 1 ) [2025-02-28 14:26: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-02-28 11:26:07' and `end` < '2025-02-28 14:26: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-02-28 14:26:20] Production.INFO: count ==5009 [2025-02-28 14:26:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:26:07 - End Time 2025-02-28 14:26:07 [2025-02-28 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577052', 'tblTempUsageDetail_20' ) start [2025-02-28 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577052', 'tblTempUsageDetail_20' ) end [2025-02-28 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577052', 'tblTempVendorCDR_20' ) start [2025-02-28 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577052', 'tblTempVendorCDR_20' ) end [2025-02-28 14:26:22] Production.INFO: ProcessCDR(1,14577052,1,1,2) [2025-02-28 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577052', 'tblTempUsageDetail_20' ) start [2025-02-28 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577052', 'tblTempUsageDetail_20' ) end [2025-02-28 14:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:26:28] Production.INFO: ==25611== Releasing lock... [2025-02-28 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:26:28] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:27:05 [end_date_ymd] => 2025-02-28 14:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:27:05' and `end` < '2025-02-28 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-02-28 14:27:18] Production.INFO: count ==4996 [2025-02-28 14:27:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:27:05 - End Time 2025-02-28 14:27:05 [2025-02-28 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577057', 'tblTempUsageDetail_20' ) start [2025-02-28 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577057', 'tblTempUsageDetail_20' ) end [2025-02-28 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577057', 'tblTempVendorCDR_20' ) start [2025-02-28 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577057', 'tblTempVendorCDR_20' ) end [2025-02-28 14:27:21] Production.INFO: ProcessCDR(1,14577057,1,1,2) [2025-02-28 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577057', 'tblTempUsageDetail_20' ) start [2025-02-28 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577057', 'tblTempUsageDetail_20' ) end [2025-02-28 14:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:27:26] Production.INFO: ==25685== Releasing lock... [2025-02-28 14:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:27:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:28:06 [end_date_ymd] => 2025-02-28 14:28:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:28:06' and `end` < '2025-02-28 14: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-02-28 14:28:19] Production.INFO: count ==4978 [2025-02-28 14:28:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:28:06 - End Time 2025-02-28 14:28:06 [2025-02-28 14:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577062', 'tblTempUsageDetail_20' ) start [2025-02-28 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577062', 'tblTempUsageDetail_20' ) end [2025-02-28 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577062', 'tblTempVendorCDR_20' ) start [2025-02-28 14:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577062', 'tblTempVendorCDR_20' ) end [2025-02-28 14:28:22] Production.INFO: ProcessCDR(1,14577062,1,1,2) [2025-02-28 14:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577062', 'tblTempUsageDetail_20' ) start [2025-02-28 14:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577062', 'tblTempUsageDetail_20' ) end [2025-02-28 14:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:28:27] Production.INFO: ==25762== Releasing lock... [2025-02-28 14:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:28:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:29:06 [end_date_ymd] => 2025-02-28 14:29:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:29:06' and `end` < '2025-02-28 14: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-02-28 14:29:19] Production.INFO: count ==4961 [2025-02-28 14:29:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:29:06 - End Time 2025-02-28 14:29:06 [2025-02-28 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577067', 'tblTempUsageDetail_20' ) start [2025-02-28 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577067', 'tblTempUsageDetail_20' ) end [2025-02-28 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577067', 'tblTempVendorCDR_20' ) start [2025-02-28 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577067', 'tblTempVendorCDR_20' ) end [2025-02-28 14:29:21] Production.INFO: ProcessCDR(1,14577067,1,1,2) [2025-02-28 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577067,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577067,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577067', 'tblTempUsageDetail_20' ) start [2025-02-28 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577067', 'tblTempUsageDetail_20' ) end [2025-02-28 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:29:26] Production.INFO: ==25846== Releasing lock... [2025-02-28 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:29:26] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:30:06 [end_date_ymd] => 2025-02-28 14:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:30:06' and `end` < '2025-02-28 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-02-28 14:30:19] Production.INFO: count ==4937 [2025-02-28 14:30:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:30:06 - End Time 2025-02-28 14:30:06 [2025-02-28 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577072', 'tblTempUsageDetail_20' ) start [2025-02-28 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577072', 'tblTempUsageDetail_20' ) end [2025-02-28 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577072', 'tblTempVendorCDR_20' ) start [2025-02-28 14:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577072', 'tblTempVendorCDR_20' ) end [2025-02-28 14:30:22] Production.INFO: ProcessCDR(1,14577072,1,1,2) [2025-02-28 14:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577072', 'tblTempUsageDetail_20' ) start [2025-02-28 14:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577072', 'tblTempUsageDetail_20' ) end [2025-02-28 14:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:30:27] Production.INFO: ==25921== Releasing lock... [2025-02-28 14:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:30:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:31:05 [end_date_ymd] => 2025-02-28 14:31:05 [RateCDR] => 1 ) [2025-02-28 14:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:31:05' and `end` < '2025-02-28 14:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:31:18] Production.INFO: count ==4932 [2025-02-28 14:31:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:31:05 - End Time 2025-02-28 14:31:05 [2025-02-28 14:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577078', 'tblTempUsageDetail_20' ) start [2025-02-28 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577078', 'tblTempUsageDetail_20' ) end [2025-02-28 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577078', 'tblTempVendorCDR_20' ) start [2025-02-28 14:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577078', 'tblTempVendorCDR_20' ) end [2025-02-28 14:31:21] Production.INFO: ProcessCDR(1,14577078,1,1,2) [2025-02-28 14:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577078', 'tblTempUsageDetail_20' ) start [2025-02-28 14:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577078', 'tblTempUsageDetail_20' ) end [2025-02-28 14:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:31:27] Production.INFO: ==26002== Releasing lock... [2025-02-28 14:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:31:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:32:05 [end_date_ymd] => 2025-02-28 14:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:32:05' and `end` < '2025-02-28 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-02-28 14:32:18] Production.INFO: count ==4905 [2025-02-28 14:32:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:32:05 - End Time 2025-02-28 14:32:05 [2025-02-28 14:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577083', 'tblTempUsageDetail_20' ) start [2025-02-28 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577083', 'tblTempUsageDetail_20' ) end [2025-02-28 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577083', 'tblTempVendorCDR_20' ) start [2025-02-28 14:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577083', 'tblTempVendorCDR_20' ) end [2025-02-28 14:32:21] Production.INFO: ProcessCDR(1,14577083,1,1,2) [2025-02-28 14:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577083', 'tblTempUsageDetail_20' ) start [2025-02-28 14:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577083', 'tblTempUsageDetail_20' ) end [2025-02-28 14:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:32:26] Production.INFO: ==26074== Releasing lock... [2025-02-28 14:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:32:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:33:06 [end_date_ymd] => 2025-02-28 14:33:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:33:06' and `end` < '2025-02-28 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-02-28 14:33:19] Production.INFO: count ==4928 [2025-02-28 14:33:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:33:06 - End Time 2025-02-28 14:33:06 [2025-02-28 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577088', 'tblTempUsageDetail_20' ) start [2025-02-28 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577088', 'tblTempUsageDetail_20' ) end [2025-02-28 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577088', 'tblTempVendorCDR_20' ) start [2025-02-28 14:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577088', 'tblTempVendorCDR_20' ) end [2025-02-28 14:33:22] Production.INFO: ProcessCDR(1,14577088,1,1,2) [2025-02-28 14:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577088', 'tblTempUsageDetail_20' ) start [2025-02-28 14:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577088', 'tblTempUsageDetail_20' ) end [2025-02-28 14:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:33:27] Production.INFO: ==26152== Releasing lock... [2025-02-28 14:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:33:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:34:05 [end_date_ymd] => 2025-02-28 14:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:34:05' and `end` < '2025-02-28 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-02-28 14:34:18] Production.INFO: count ==4918 [2025-02-28 14:34:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:34:05 - End Time 2025-02-28 14:34:05 [2025-02-28 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577093', 'tblTempUsageDetail_20' ) start [2025-02-28 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577093', 'tblTempUsageDetail_20' ) end [2025-02-28 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577093', 'tblTempVendorCDR_20' ) start [2025-02-28 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577093', 'tblTempVendorCDR_20' ) end [2025-02-28 14:34:21] Production.INFO: ProcessCDR(1,14577093,1,1,2) [2025-02-28 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577093', 'tblTempUsageDetail_20' ) start [2025-02-28 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577093', 'tblTempUsageDetail_20' ) end [2025-02-28 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:34:26] Production.INFO: ==26229== Releasing lock... [2025-02-28 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:34:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:35:06 [end_date_ymd] => 2025-02-28 14:35:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:35:06' and `end` < '2025-02-28 14: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-02-28 14:35:19] Production.INFO: count ==4937 [2025-02-28 14:35:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:35:06 - End Time 2025-02-28 14:35:06 [2025-02-28 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577098', 'tblTempUsageDetail_20' ) start [2025-02-28 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577098', 'tblTempUsageDetail_20' ) end [2025-02-28 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577098', 'tblTempVendorCDR_20' ) start [2025-02-28 14:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577098', 'tblTempVendorCDR_20' ) end [2025-02-28 14:35:22] Production.INFO: ProcessCDR(1,14577098,1,1,2) [2025-02-28 14:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577098', 'tblTempUsageDetail_20' ) start [2025-02-28 14:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577098', 'tblTempUsageDetail_20' ) end [2025-02-28 14:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:35:27] Production.INFO: ==26313== Releasing lock... [2025-02-28 14:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:35:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:36:05 [end_date_ymd] => 2025-02-28 14:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:36:05' and `end` < '2025-02-28 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-02-28 14:36:18] Production.INFO: count ==4926 [2025-02-28 14:36:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:36:05 - End Time 2025-02-28 14:36:05 [2025-02-28 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577103', 'tblTempUsageDetail_20' ) start [2025-02-28 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577103', 'tblTempUsageDetail_20' ) end [2025-02-28 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577103', 'tblTempVendorCDR_20' ) start [2025-02-28 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577103', 'tblTempVendorCDR_20' ) end [2025-02-28 14:36:21] Production.INFO: ProcessCDR(1,14577103,1,1,2) [2025-02-28 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577103', 'tblTempUsageDetail_20' ) start [2025-02-28 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577103', 'tblTempUsageDetail_20' ) end [2025-02-28 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:36:27] Production.INFO: ==26388== Releasing lock... [2025-02-28 14:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:36:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:37:06 [end_date_ymd] => 2025-02-28 14:37:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:37:06' and `end` < '2025-02-28 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-02-28 14:37:19] Production.INFO: count ==4934 [2025-02-28 14:37:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:37:06 - End Time 2025-02-28 14:37:06 [2025-02-28 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577108', 'tblTempUsageDetail_20' ) start [2025-02-28 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577108', 'tblTempUsageDetail_20' ) end [2025-02-28 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577108', 'tblTempVendorCDR_20' ) start [2025-02-28 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577108', 'tblTempVendorCDR_20' ) end [2025-02-28 14:37:21] Production.INFO: ProcessCDR(1,14577108,1,1,2) [2025-02-28 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:37:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577108', 'tblTempUsageDetail_20' ) start [2025-02-28 14:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577108', 'tblTempUsageDetail_20' ) end [2025-02-28 14:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:37:27] Production.INFO: ==26472== Releasing lock... [2025-02-28 14:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:37:27] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:38:05 [end_date_ymd] => 2025-02-28 14:38:05 [RateCDR] => 1 ) [2025-02-28 14:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:38:05' and `end` < '2025-02-28 14:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:38:18] Production.INFO: count ==4926 [2025-02-28 14:38:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:38:05 - End Time 2025-02-28 14:38:05 [2025-02-28 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577113', 'tblTempUsageDetail_20' ) start [2025-02-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577113', 'tblTempUsageDetail_20' ) end [2025-02-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577113', 'tblTempVendorCDR_20' ) start [2025-02-28 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577113', 'tblTempVendorCDR_20' ) end [2025-02-28 14:38:20] Production.INFO: ProcessCDR(1,14577113,1,1,2) [2025-02-28 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577113,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577113,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577113', 'tblTempUsageDetail_20' ) start [2025-02-28 14:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577113', 'tblTempUsageDetail_20' ) end [2025-02-28 14:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:38:26] Production.INFO: ==26586== Releasing lock... [2025-02-28 14:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:38:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:39:06 [end_date_ymd] => 2025-02-28 14:39:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:39:06' and `end` < '2025-02-28 14: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-02-28 14:39:19] Production.INFO: count ==4909 [2025-02-28 14:39:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:39:06 - End Time 2025-02-28 14:39:06 [2025-02-28 14:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577118', 'tblTempUsageDetail_20' ) start [2025-02-28 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577118', 'tblTempUsageDetail_20' ) end [2025-02-28 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577118', 'tblTempVendorCDR_20' ) start [2025-02-28 14:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577118', 'tblTempVendorCDR_20' ) end [2025-02-28 14:39:21] Production.INFO: ProcessCDR(1,14577118,1,1,2) [2025-02-28 14:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577118', 'tblTempUsageDetail_20' ) start [2025-02-28 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577118', 'tblTempUsageDetail_20' ) end [2025-02-28 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:39:26] Production.INFO: ==26661== Releasing lock... [2025-02-28 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:39:26] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:40:06 [end_date_ymd] => 2025-02-28 14:40:06 [RateCDR] => 1 ) [2025-02-28 14:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:40:06' and `end` < '2025-02-28 14:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:40:19] Production.INFO: count ==4909 [2025-02-28 14:40:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:40:06 - End Time 2025-02-28 14:40:06 [2025-02-28 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577124', 'tblTempUsageDetail_20' ) start [2025-02-28 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577124', 'tblTempUsageDetail_20' ) end [2025-02-28 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577124', 'tblTempVendorCDR_20' ) start [2025-02-28 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577124', 'tblTempVendorCDR_20' ) end [2025-02-28 14:40:21] Production.INFO: ProcessCDR(1,14577124,1,1,2) [2025-02-28 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577124', 'tblTempUsageDetail_20' ) start [2025-02-28 14:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577124', 'tblTempUsageDetail_20' ) end [2025-02-28 14:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:40:27] Production.INFO: ==26741== Releasing lock... [2025-02-28 14:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:40:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:41:06 [end_date_ymd] => 2025-02-28 14:41:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:41:06' and `end` < '2025-02-28 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-02-28 14:41:19] Production.INFO: count ==4880 [2025-02-28 14:41:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:41:06 - End Time 2025-02-28 14:41:06 [2025-02-28 14:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577129', 'tblTempUsageDetail_20' ) start [2025-02-28 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577129', 'tblTempUsageDetail_20' ) end [2025-02-28 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577129', 'tblTempVendorCDR_20' ) start [2025-02-28 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577129', 'tblTempVendorCDR_20' ) end [2025-02-28 14:41:21] Production.INFO: ProcessCDR(1,14577129,1,1,2) [2025-02-28 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577129', 'tblTempUsageDetail_20' ) start [2025-02-28 14:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577129', 'tblTempUsageDetail_20' ) end [2025-02-28 14:41:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:41:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:41:27] Production.INFO: ==26825== Releasing lock... [2025-02-28 14:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:41:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:42:05 [end_date_ymd] => 2025-02-28 14:42:05 [RateCDR] => 1 ) [2025-02-28 14:42:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:42:05' and `end` < '2025-02-28 14:42:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:42:18] Production.INFO: count ==4867 [2025-02-28 14:42:20] Production.ERROR: pbx CDR StartTime 2025-02-28 11:42:05 - End Time 2025-02-28 14:42:05 [2025-02-28 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577134', 'tblTempUsageDetail_20' ) start [2025-02-28 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577134', 'tblTempUsageDetail_20' ) end [2025-02-28 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577134', 'tblTempVendorCDR_20' ) start [2025-02-28 14:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577134', 'tblTempVendorCDR_20' ) end [2025-02-28 14:42:21] Production.INFO: ProcessCDR(1,14577134,1,1,2) [2025-02-28 14:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577134', 'tblTempUsageDetail_20' ) start [2025-02-28 14:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577134', 'tblTempUsageDetail_20' ) end [2025-02-28 14:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:42:26] Production.INFO: ==26906== Releasing lock... [2025-02-28 14:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:42:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 14:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:43:06 [end_date_ymd] => 2025-02-28 14:43:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:43:06' and `end` < '2025-02-28 14: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-02-28 14:43:19] Production.INFO: count ==4871 [2025-02-28 14:43:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:43:06 - End Time 2025-02-28 14:43:06 [2025-02-28 14:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577139', 'tblTempUsageDetail_20' ) start [2025-02-28 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577139', 'tblTempUsageDetail_20' ) end [2025-02-28 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577139', 'tblTempVendorCDR_20' ) start [2025-02-28 14:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577139', 'tblTempVendorCDR_20' ) end [2025-02-28 14:43:22] Production.INFO: ProcessCDR(1,14577139,1,1,2) [2025-02-28 14:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577139', 'tblTempUsageDetail_20' ) start [2025-02-28 14:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577139', 'tblTempUsageDetail_20' ) end [2025-02-28 14:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:43:27] Production.INFO: ==26980== Releasing lock... [2025-02-28 14:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:43:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:44:05 [end_date_ymd] => 2025-02-28 14:44:05 [RateCDR] => 1 ) [2025-02-28 14:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:44:05' and `end` < '2025-02-28 14:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:44:18] Production.INFO: count ==4861 [2025-02-28 14:44:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:44:05 - End Time 2025-02-28 14:44:05 [2025-02-28 14:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577144', 'tblTempUsageDetail_20' ) start [2025-02-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577144', 'tblTempUsageDetail_20' ) end [2025-02-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577144', 'tblTempVendorCDR_20' ) start [2025-02-28 14:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577144', 'tblTempVendorCDR_20' ) end [2025-02-28 14:44:21] Production.INFO: ProcessCDR(1,14577144,1,1,2) [2025-02-28 14:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577144', 'tblTempUsageDetail_20' ) start [2025-02-28 14:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577144', 'tblTempUsageDetail_20' ) end [2025-02-28 14:44:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:44:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:44:26] Production.INFO: ==27057== Releasing lock... [2025-02-28 14:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:44:26] Production.INFO: 64.25 MB #Memory Used# [2025-02-28 14:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:45:06 [end_date_ymd] => 2025-02-28 14:45:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:45:06' and `end` < '2025-02-28 14: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-02-28 14:45:19] Production.INFO: count ==4870 [2025-02-28 14:45:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:45:06 - End Time 2025-02-28 14:45:06 [2025-02-28 14:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577149', 'tblTempUsageDetail_20' ) start [2025-02-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577149', 'tblTempUsageDetail_20' ) end [2025-02-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577149', 'tblTempVendorCDR_20' ) start [2025-02-28 14:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577149', 'tblTempVendorCDR_20' ) end [2025-02-28 14:45:22] Production.INFO: ProcessCDR(1,14577149,1,1,2) [2025-02-28 14:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577149', 'tblTempUsageDetail_20' ) start [2025-02-28 14:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577149', 'tblTempUsageDetail_20' ) end [2025-02-28 14:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:45:27] Production.INFO: ==27137== Releasing lock... [2025-02-28 14:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:45:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:46:05 [end_date_ymd] => 2025-02-28 14:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:46:05' and `end` < '2025-02-28 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-02-28 14:46:18] Production.INFO: count ==4882 [2025-02-28 14:46:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:46:05 - End Time 2025-02-28 14:46:05 [2025-02-28 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577154', 'tblTempUsageDetail_20' ) start [2025-02-28 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577154', 'tblTempUsageDetail_20' ) end [2025-02-28 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577154', 'tblTempVendorCDR_20' ) start [2025-02-28 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577154', 'tblTempVendorCDR_20' ) end [2025-02-28 14:46:21] Production.INFO: ProcessCDR(1,14577154,1,1,2) [2025-02-28 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577154', 'tblTempUsageDetail_20' ) start [2025-02-28 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577154', 'tblTempUsageDetail_20' ) end [2025-02-28 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:46:27] Production.INFO: ==27215== Releasing lock... [2025-02-28 14:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:46:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:47:06 [end_date_ymd] => 2025-02-28 14:47:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:47:06' and `end` < '2025-02-28 14: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-02-28 14:47:19] Production.INFO: count ==4900 [2025-02-28 14:47:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:47:06 - End Time 2025-02-28 14:47:06 [2025-02-28 14:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577159', 'tblTempUsageDetail_20' ) start [2025-02-28 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577159', 'tblTempUsageDetail_20' ) end [2025-02-28 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577159', 'tblTempVendorCDR_20' ) start [2025-02-28 14:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577159', 'tblTempVendorCDR_20' ) end [2025-02-28 14:47:22] Production.INFO: ProcessCDR(1,14577159,1,1,2) [2025-02-28 14:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577159', 'tblTempUsageDetail_20' ) start [2025-02-28 14:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577159', 'tblTempUsageDetail_20' ) end [2025-02-28 14:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:47:27] Production.INFO: ==27292== Releasing lock... [2025-02-28 14:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:47:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:48:06 [end_date_ymd] => 2025-02-28 14:48:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:48:06' and `end` < '2025-02-28 14: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-02-28 14:48:19] Production.INFO: count ==4904 [2025-02-28 14:48:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:48:06 - End Time 2025-02-28 14:48:06 [2025-02-28 14:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577164', 'tblTempUsageDetail_20' ) start [2025-02-28 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577164', 'tblTempUsageDetail_20' ) end [2025-02-28 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577164', 'tblTempVendorCDR_20' ) start [2025-02-28 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577164', 'tblTempVendorCDR_20' ) end [2025-02-28 14:48:21] Production.INFO: ProcessCDR(1,14577164,1,1,2) [2025-02-28 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577164', 'tblTempUsageDetail_20' ) start [2025-02-28 14:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577164', 'tblTempUsageDetail_20' ) end [2025-02-28 14:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:48:27] Production.INFO: ==27368== Releasing lock... [2025-02-28 14:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:48:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:49:06 [end_date_ymd] => 2025-02-28 14:49:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:49:06' and `end` < '2025-02-28 14: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-02-28 14:49:19] Production.INFO: count ==4888 [2025-02-28 14:49:22] Production.ERROR: pbx CDR StartTime 2025-02-28 11:49:06 - End Time 2025-02-28 14:49:06 [2025-02-28 14:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577169', 'tblTempUsageDetail_20' ) start [2025-02-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577169', 'tblTempUsageDetail_20' ) end [2025-02-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577169', 'tblTempVendorCDR_20' ) start [2025-02-28 14:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577169', 'tblTempVendorCDR_20' ) end [2025-02-28 14:49:22] Production.INFO: ProcessCDR(1,14577169,1,1,2) [2025-02-28 14:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577169,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577169,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577169', 'tblTempUsageDetail_20' ) start [2025-02-28 14:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577169', 'tblTempUsageDetail_20' ) end [2025-02-28 14:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:49:27] Production.INFO: ==27445== Releasing lock... [2025-02-28 14:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:49:27] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:50:06 [end_date_ymd] => 2025-02-28 14:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:50:06' and `end` < '2025-02-28 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-02-28 14:50:19] Production.INFO: count ==4914 [2025-02-28 14:50:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:50:06 - End Time 2025-02-28 14:50:06 [2025-02-28 14:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577175', 'tblTempUsageDetail_20' ) start [2025-02-28 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577175', 'tblTempUsageDetail_20' ) end [2025-02-28 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577175', 'tblTempVendorCDR_20' ) start [2025-02-28 14:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577175', 'tblTempVendorCDR_20' ) end [2025-02-28 14:50:21] Production.INFO: ProcessCDR(1,14577175,1,1,2) [2025-02-28 14:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577175', 'tblTempUsageDetail_20' ) start [2025-02-28 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577175', 'tblTempUsageDetail_20' ) end [2025-02-28 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:50:27] Production.INFO: ==27520== Releasing lock... [2025-02-28 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:50:27] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:51:05 [end_date_ymd] => 2025-02-28 14:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:51:05' and `end` < '2025-02-28 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-02-28 14:51:18] Production.INFO: count ==4953 [2025-02-28 14:51:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:51:05 - End Time 2025-02-28 14:51:05 [2025-02-28 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577180', 'tblTempUsageDetail_20' ) start [2025-02-28 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577180', 'tblTempUsageDetail_20' ) end [2025-02-28 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577180', 'tblTempVendorCDR_20' ) start [2025-02-28 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577180', 'tblTempVendorCDR_20' ) end [2025-02-28 14:51:21] Production.INFO: ProcessCDR(1,14577180,1,1,2) [2025-02-28 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577180', 'tblTempUsageDetail_20' ) start [2025-02-28 14:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577180', 'tblTempUsageDetail_20' ) end [2025-02-28 14:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:51:25] Production.INFO: ==27598== Releasing lock... [2025-02-28 14:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:51:25] Production.INFO: 65 MB #Memory Used# [2025-02-28 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:52:05 [end_date_ymd] => 2025-02-28 14:52:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:52:05' and `end` < '2025-02-28 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-02-28 14:52:18] Production.INFO: count ==4961 [2025-02-28 14:52:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:52:05 - End Time 2025-02-28 14:52:05 [2025-02-28 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577185', 'tblTempUsageDetail_20' ) start [2025-02-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577185', 'tblTempUsageDetail_20' ) end [2025-02-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577185', 'tblTempVendorCDR_20' ) start [2025-02-28 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577185', 'tblTempVendorCDR_20' ) end [2025-02-28 14:52:21] Production.INFO: ProcessCDR(1,14577185,1,1,2) [2025-02-28 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577185', 'tblTempUsageDetail_20' ) start [2025-02-28 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577185', 'tblTempUsageDetail_20' ) end [2025-02-28 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:52:26] Production.INFO: ==27674== Releasing lock... [2025-02-28 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:52:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:53:06 [end_date_ymd] => 2025-02-28 14:53:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:53:06' and `end` < '2025-02-28 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-02-28 14:53:19] Production.INFO: count ==4962 [2025-02-28 14:53:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:53:06 - End Time 2025-02-28 14:53:06 [2025-02-28 14:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577190', 'tblTempUsageDetail_20' ) start [2025-02-28 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577190', 'tblTempUsageDetail_20' ) end [2025-02-28 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577190', 'tblTempVendorCDR_20' ) start [2025-02-28 14:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577190', 'tblTempVendorCDR_20' ) end [2025-02-28 14:53:21] Production.INFO: ProcessCDR(1,14577190,1,1,2) [2025-02-28 14:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577190', 'tblTempUsageDetail_20' ) start [2025-02-28 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577190', 'tblTempUsageDetail_20' ) end [2025-02-28 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:53:27] Production.INFO: ==27790== Releasing lock... [2025-02-28 14:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:53:27] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:54:06 [end_date_ymd] => 2025-02-28 14:54:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:54:06' and `end` < '2025-02-28 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-02-28 14:54:19] Production.INFO: count ==4970 [2025-02-28 14:54:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:54:06 - End Time 2025-02-28 14:54:06 [2025-02-28 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577195', 'tblTempUsageDetail_20' ) start [2025-02-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577195', 'tblTempUsageDetail_20' ) end [2025-02-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577195', 'tblTempVendorCDR_20' ) start [2025-02-28 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577195', 'tblTempVendorCDR_20' ) end [2025-02-28 14:54:21] Production.INFO: ProcessCDR(1,14577195,1,1,2) [2025-02-28 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577195', 'tblTempUsageDetail_20' ) start [2025-02-28 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577195', 'tblTempUsageDetail_20' ) end [2025-02-28 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:54:26] Production.INFO: ==27864== Releasing lock... [2025-02-28 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:54:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:55:06 [end_date_ymd] => 2025-02-28 14:55:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:55:06' and `end` < '2025-02-28 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-02-28 14:55:19] Production.INFO: count ==5000 [2025-02-28 14:55:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:55:06 - End Time 2025-02-28 14:55:06 [2025-02-28 14:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577200', 'tblTempUsageDetail_20' ) start [2025-02-28 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577200', 'tblTempUsageDetail_20' ) end [2025-02-28 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577200', 'tblTempVendorCDR_20' ) start [2025-02-28 14:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577200', 'tblTempVendorCDR_20' ) end [2025-02-28 14:55:21] Production.INFO: ProcessCDR(1,14577200,1,1,2) [2025-02-28 14:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577200', 'tblTempUsageDetail_20' ) start [2025-02-28 14:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577200', 'tblTempUsageDetail_20' ) end [2025-02-28 14:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:55:27] Production.INFO: ==27946== Releasing lock... [2025-02-28 14:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:55:27] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:56:05 [end_date_ymd] => 2025-02-28 14:56:05 [RateCDR] => 1 ) [2025-02-28 14:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 11:56:05' and `end` < '2025-02-28 14:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 14:56:18] Production.INFO: count ==4992 [2025-02-28 14:56:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:56:05 - End Time 2025-02-28 14:56:05 [2025-02-28 14:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577205', 'tblTempUsageDetail_20' ) start [2025-02-28 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577205', 'tblTempUsageDetail_20' ) end [2025-02-28 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577205', 'tblTempVendorCDR_20' ) start [2025-02-28 14:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577205', 'tblTempVendorCDR_20' ) end [2025-02-28 14:56:21] Production.INFO: ProcessCDR(1,14577205,1,1,2) [2025-02-28 14:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577205', 'tblTempUsageDetail_20' ) start [2025-02-28 14:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577205', 'tblTempUsageDetail_20' ) end [2025-02-28 14:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:56:26] Production.INFO: ==28022== Releasing lock... [2025-02-28 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:56:26] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 14:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:57:06 [end_date_ymd] => 2025-02-28 14:57:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 11:57:06' and `end` < '2025-02-28 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-02-28 14:57:19] Production.INFO: count ==5019 [2025-02-28 14:57:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:57:06 - End Time 2025-02-28 14:57:06 [2025-02-28 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577210', 'tblTempUsageDetail_20' ) start [2025-02-28 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577210', 'tblTempUsageDetail_20' ) end [2025-02-28 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577210', 'tblTempVendorCDR_20' ) start [2025-02-28 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577210', 'tblTempVendorCDR_20' ) end [2025-02-28 14:57:21] Production.INFO: ProcessCDR(1,14577210,1,1,2) [2025-02-28 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577210', 'tblTempUsageDetail_20' ) start [2025-02-28 14:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577210', 'tblTempUsageDetail_20' ) end [2025-02-28 14:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:57:26] Production.INFO: ==28105== Releasing lock... [2025-02-28 14:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:57:26] Production.INFO: 65.5 MB #Memory Used# [2025-02-28 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:58:05 [end_date_ymd] => 2025-02-28 14:58:05 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:58:05' and `end` < '2025-02-28 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-02-28 14:58:19] Production.INFO: count ==5039 [2025-02-28 14:58:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:58:05 - End Time 2025-02-28 14:58:05 [2025-02-28 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577215', 'tblTempUsageDetail_20' ) start [2025-02-28 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577215', 'tblTempUsageDetail_20' ) end [2025-02-28 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577215', 'tblTempVendorCDR_20' ) start [2025-02-28 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577215', 'tblTempVendorCDR_20' ) end [2025-02-28 14:58:21] Production.INFO: ProcessCDR(1,14577215,1,1,2) [2025-02-28 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577215,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577215,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577215', 'tblTempUsageDetail_20' ) start [2025-02-28 14:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577215', 'tblTempUsageDetail_20' ) end [2025-02-28 14:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:58:27] Production.INFO: ==28175== Releasing lock... [2025-02-28 14:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:58:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-28 14:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 11:59:06 [end_date_ymd] => 2025-02-28 14:59:06 [RateCDR] => 1 ) [2025-02-28 14: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-02-28 11:59:06' and `end` < '2025-02-28 14: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-02-28 14:59:19] Production.INFO: count ==5066 [2025-02-28 14:59:21] Production.ERROR: pbx CDR StartTime 2025-02-28 11:59:06 - End Time 2025-02-28 14:59:06 [2025-02-28 14:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577220', 'tblTempUsageDetail_20' ) start [2025-02-28 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577220', 'tblTempUsageDetail_20' ) end [2025-02-28 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577220', 'tblTempVendorCDR_20' ) start [2025-02-28 14:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577220', 'tblTempVendorCDR_20' ) end [2025-02-28 14:59:21] Production.INFO: ProcessCDR(1,14577220,1,1,2) [2025-02-28 14:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 14:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577220', 'tblTempUsageDetail_20' ) start [2025-02-28 14:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577220', 'tblTempUsageDetail_20' ) end [2025-02-28 14:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 14:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 14:59:27] Production.INFO: ==28249== Releasing lock... [2025-02-28 14:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 14:59:27] Production.INFO: 66 MB #Memory Used# [2025-02-28 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:00:06 [end_date_ymd] => 2025-02-28 15:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:00:06' and `end` < '2025-02-28 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-02-28 15:00:19] Production.INFO: count ==5072 [2025-02-28 15:00:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:00:06 - End Time 2025-02-28 15:00:06 [2025-02-28 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577225', 'tblTempUsageDetail_20' ) start [2025-02-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577225', 'tblTempUsageDetail_20' ) end [2025-02-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577225', 'tblTempVendorCDR_20' ) start [2025-02-28 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577225', 'tblTempVendorCDR_20' ) end [2025-02-28 15:00:22] Production.INFO: ProcessCDR(1,14577225,1,1,2) [2025-02-28 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577225', 'tblTempUsageDetail_20' ) start [2025-02-28 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577225', 'tblTempUsageDetail_20' ) end [2025-02-28 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:00:27] Production.INFO: ==28326== Releasing lock... [2025-02-28 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:00:27] Production.INFO: 66 MB #Memory Used# [2025-02-28 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:01:06 [end_date_ymd] => 2025-02-28 15:01:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:01:06' and `end` < '2025-02-28 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-02-28 15:01:19] Production.INFO: count ==5077 [2025-02-28 15:01:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:01:06 - End Time 2025-02-28 15:01:06 [2025-02-28 15:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577231', 'tblTempUsageDetail_20' ) start [2025-02-28 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577231', 'tblTempUsageDetail_20' ) end [2025-02-28 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577231', 'tblTempVendorCDR_20' ) start [2025-02-28 15:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577231', 'tblTempVendorCDR_20' ) end [2025-02-28 15:01:22] Production.INFO: ProcessCDR(1,14577231,1,1,2) [2025-02-28 15:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577231', 'tblTempUsageDetail_20' ) start [2025-02-28 15:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577231', 'tblTempUsageDetail_20' ) end [2025-02-28 15:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:01:27] Production.INFO: ==28450== Releasing lock... [2025-02-28 15:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:01:27] Production.INFO: 66 MB #Memory Used# [2025-02-28 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:02:05 [end_date_ymd] => 2025-02-28 15:02:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:02:05' and `end` < '2025-02-28 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-02-28 15:02:19] Production.INFO: count ==5059 [2025-02-28 15:02:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:02:05 - End Time 2025-02-28 15:02:05 [2025-02-28 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577236', 'tblTempUsageDetail_20' ) start [2025-02-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577236', 'tblTempUsageDetail_20' ) end [2025-02-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577236', 'tblTempVendorCDR_20' ) start [2025-02-28 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577236', 'tblTempVendorCDR_20' ) end [2025-02-28 15:02:21] Production.INFO: ProcessCDR(1,14577236,1,1,2) [2025-02-28 15:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577236', 'tblTempUsageDetail_20' ) start [2025-02-28 15:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577236', 'tblTempUsageDetail_20' ) end [2025-02-28 15:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:02:27] Production.INFO: ==28563== Releasing lock... [2025-02-28 15:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:02:27] Production.INFO: 65.75 MB #Memory Used# [2025-02-28 15:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:03:06 [end_date_ymd] => 2025-02-28 15:03:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:03:06' and `end` < '2025-02-28 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-02-28 15:03:19] Production.INFO: count ==5079 [2025-02-28 15:03:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:03:06 - End Time 2025-02-28 15:03:06 [2025-02-28 15:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577241', 'tblTempUsageDetail_20' ) start [2025-02-28 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577241', 'tblTempUsageDetail_20' ) end [2025-02-28 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577241', 'tblTempVendorCDR_20' ) start [2025-02-28 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577241', 'tblTempVendorCDR_20' ) end [2025-02-28 15:03:21] Production.INFO: ProcessCDR(1,14577241,1,1,2) [2025-02-28 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577241', 'tblTempUsageDetail_20' ) start [2025-02-28 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577241', 'tblTempUsageDetail_20' ) end [2025-02-28 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:03:26] Production.INFO: ==28638== Releasing lock... [2025-02-28 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:03:26] Production.INFO: 66 MB #Memory Used# [2025-02-28 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:04:06 [end_date_ymd] => 2025-02-28 15:04:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:04:06' and `end` < '2025-02-28 15: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-02-28 15:04:19] Production.INFO: count ==5099 [2025-02-28 15:04:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:04:06 - End Time 2025-02-28 15:04:06 [2025-02-28 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577246', 'tblTempUsageDetail_20' ) start [2025-02-28 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577246', 'tblTempUsageDetail_20' ) end [2025-02-28 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577246', 'tblTempVendorCDR_20' ) start [2025-02-28 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577246', 'tblTempVendorCDR_20' ) end [2025-02-28 15:04:21] Production.INFO: ProcessCDR(1,14577246,1,1,2) [2025-02-28 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577246', 'tblTempUsageDetail_20' ) start [2025-02-28 15:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577246', 'tblTempUsageDetail_20' ) end [2025-02-28 15:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:04:27] Production.INFO: ==28726== Releasing lock... [2025-02-28 15:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:04:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:05:06 [end_date_ymd] => 2025-02-28 15:05:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:05:06' and `end` < '2025-02-28 15: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-02-28 15:05:19] Production.INFO: count ==5116 [2025-02-28 15:05:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:05:06 - End Time 2025-02-28 15:05:06 [2025-02-28 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577251', 'tblTempUsageDetail_20' ) start [2025-02-28 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577251', 'tblTempUsageDetail_20' ) end [2025-02-28 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577251', 'tblTempVendorCDR_20' ) start [2025-02-28 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577251', 'tblTempVendorCDR_20' ) end [2025-02-28 15:05:22] Production.INFO: ProcessCDR(1,14577251,1,1,2) [2025-02-28 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577251', 'tblTempUsageDetail_20' ) start [2025-02-28 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577251', 'tblTempUsageDetail_20' ) end [2025-02-28 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:05:27] Production.INFO: ==28889== Releasing lock... [2025-02-28 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:05:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:06:05 [end_date_ymd] => 2025-02-28 15:06:05 [RateCDR] => 1 ) [2025-02-28 15:06:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:06:05' and `end` < '2025-02-28 15:06:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:06:18] Production.INFO: count ==5128 [2025-02-28 15:06:20] Production.ERROR: pbx CDR StartTime 2025-02-28 12:06:05 - End Time 2025-02-28 15:06:05 [2025-02-28 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577256', 'tblTempUsageDetail_20' ) start [2025-02-28 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577256', 'tblTempUsageDetail_20' ) end [2025-02-28 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577256', 'tblTempVendorCDR_20' ) start [2025-02-28 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577256', 'tblTempVendorCDR_20' ) end [2025-02-28 15:06:21] Production.INFO: ProcessCDR(1,14577256,1,1,2) [2025-02-28 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577256', 'tblTempUsageDetail_20' ) start [2025-02-28 15:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577256', 'tblTempUsageDetail_20' ) end [2025-02-28 15:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:06:26] Production.INFO: ==28973== Releasing lock... [2025-02-28 15:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:06:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:07:06 [end_date_ymd] => 2025-02-28 15:07:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:07:06' and `end` < '2025-02-28 15: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-02-28 15:07:19] Production.INFO: count ==5126 [2025-02-28 15:07:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:07:06 - End Time 2025-02-28 15:07:06 [2025-02-28 15:07:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577261', 'tblTempUsageDetail_20' ) start [2025-02-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577261', 'tblTempUsageDetail_20' ) end [2025-02-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577261', 'tblTempVendorCDR_20' ) start [2025-02-28 15:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577261', 'tblTempVendorCDR_20' ) end [2025-02-28 15:07:22] Production.INFO: ProcessCDR(1,14577261,1,1,2) [2025-02-28 15:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577261', 'tblTempUsageDetail_20' ) start [2025-02-28 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577261', 'tblTempUsageDetail_20' ) end [2025-02-28 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:07:27] Production.INFO: ==29064== Releasing lock... [2025-02-28 15:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:07:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:08:05 [end_date_ymd] => 2025-02-28 15:08:05 [RateCDR] => 1 ) [2025-02-28 15:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:08:05' and `end` < '2025-02-28 15:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:08:18] Production.INFO: count ==5134 [2025-02-28 15:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:08:05 - End Time 2025-02-28 15:08:05 [2025-02-28 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577266', 'tblTempUsageDetail_20' ) start [2025-02-28 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577266', 'tblTempUsageDetail_20' ) end [2025-02-28 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577266', 'tblTempVendorCDR_20' ) start [2025-02-28 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577266', 'tblTempVendorCDR_20' ) end [2025-02-28 15:08:21] Production.INFO: ProcessCDR(1,14577266,1,1,2) [2025-02-28 15:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577266', 'tblTempUsageDetail_20' ) start [2025-02-28 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577266', 'tblTempUsageDetail_20' ) end [2025-02-28 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:08:27] Production.INFO: ==29227== Releasing lock... [2025-02-28 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:08:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:09:05 [end_date_ymd] => 2025-02-28 15:09:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:09:05' and `end` < '2025-02-28 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-02-28 15:09:18] Production.INFO: count ==5142 [2025-02-28 15:09:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:09:05 - End Time 2025-02-28 15:09:05 [2025-02-28 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577271', 'tblTempUsageDetail_20' ) start [2025-02-28 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577271', 'tblTempUsageDetail_20' ) end [2025-02-28 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577271', 'tblTempVendorCDR_20' ) start [2025-02-28 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577271', 'tblTempVendorCDR_20' ) end [2025-02-28 15:09:21] Production.INFO: ProcessCDR(1,14577271,1,1,2) [2025-02-28 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577271', 'tblTempUsageDetail_20' ) start [2025-02-28 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577271', 'tblTempUsageDetail_20' ) end [2025-02-28 15:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:09:26] Production.INFO: ==29349== Releasing lock... [2025-02-28 15:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:09:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:10:06 [end_date_ymd] => 2025-02-28 15:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:10:06' and `end` < '2025-02-28 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-02-28 15:10:19] Production.INFO: count ==5128 [2025-02-28 15:10:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:10:06 - End Time 2025-02-28 15:10:06 [2025-02-28 15:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577277', 'tblTempUsageDetail_20' ) start [2025-02-28 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577277', 'tblTempUsageDetail_20' ) end [2025-02-28 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577277', 'tblTempVendorCDR_20' ) start [2025-02-28 15:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577277', 'tblTempVendorCDR_20' ) end [2025-02-28 15:10:22] Production.INFO: ProcessCDR(1,14577277,1,1,2) [2025-02-28 15:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577277', 'tblTempUsageDetail_20' ) start [2025-02-28 15:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577277', 'tblTempUsageDetail_20' ) end [2025-02-28 15:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:10:28] Production.INFO: ==29422== Releasing lock... [2025-02-28 15:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:10:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:11:06 [end_date_ymd] => 2025-02-28 15:11:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:11:06' and `end` < '2025-02-28 15: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-02-28 15:11:19] Production.INFO: count ==5135 [2025-02-28 15:11:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:11:06 - End Time 2025-02-28 15:11:06 [2025-02-28 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577282', 'tblTempUsageDetail_20' ) start [2025-02-28 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577282', 'tblTempUsageDetail_20' ) end [2025-02-28 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577282', 'tblTempVendorCDR_20' ) start [2025-02-28 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577282', 'tblTempVendorCDR_20' ) end [2025-02-28 15:11:22] Production.INFO: ProcessCDR(1,14577282,1,1,2) [2025-02-28 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577282', 'tblTempUsageDetail_20' ) start [2025-02-28 15:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577282', 'tblTempUsageDetail_20' ) end [2025-02-28 15:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:11:27] Production.INFO: ==29499== Releasing lock... [2025-02-28 15:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:11:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:12:06 [end_date_ymd] => 2025-02-28 15:12:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:12:06' and `end` < '2025-02-28 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-02-28 15:12:19] Production.INFO: count ==5151 [2025-02-28 15:12:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:12:06 - End Time 2025-02-28 15:12:06 [2025-02-28 15:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577287', 'tblTempUsageDetail_20' ) start [2025-02-28 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577287', 'tblTempUsageDetail_20' ) end [2025-02-28 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577287', 'tblTempVendorCDR_20' ) start [2025-02-28 15:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577287', 'tblTempVendorCDR_20' ) end [2025-02-28 15:12:21] Production.INFO: ProcessCDR(1,14577287,1,1,2) [2025-02-28 15:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577287', 'tblTempUsageDetail_20' ) start [2025-02-28 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577287', 'tblTempUsageDetail_20' ) end [2025-02-28 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:12:27] Production.INFO: ==29648== Releasing lock... [2025-02-28 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:12:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:13:06 [end_date_ymd] => 2025-02-28 15:13:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:13:06' and `end` < '2025-02-28 15: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-02-28 15:13:19] Production.INFO: count ==5145 [2025-02-28 15:13:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:13:06 - End Time 2025-02-28 15:13:06 [2025-02-28 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577292', 'tblTempUsageDetail_20' ) start [2025-02-28 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577292', 'tblTempUsageDetail_20' ) end [2025-02-28 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577292', 'tblTempVendorCDR_20' ) start [2025-02-28 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577292', 'tblTempVendorCDR_20' ) end [2025-02-28 15:13:21] Production.INFO: ProcessCDR(1,14577292,1,1,2) [2025-02-28 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577292', 'tblTempUsageDetail_20' ) start [2025-02-28 15:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577292', 'tblTempUsageDetail_20' ) end [2025-02-28 15:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:13:27] Production.INFO: ==29718== Releasing lock... [2025-02-28 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:13:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:14:05 [end_date_ymd] => 2025-02-28 15:14:05 [RateCDR] => 1 ) [2025-02-28 15:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:14:05' and `end` < '2025-02-28 15:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:14:18] Production.INFO: count ==5136 [2025-02-28 15:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:14:05 - End Time 2025-02-28 15:14:05 [2025-02-28 15:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577296', 'tblTempUsageDetail_20' ) start [2025-02-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577296', 'tblTempUsageDetail_20' ) end [2025-02-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577296', 'tblTempVendorCDR_20' ) start [2025-02-28 15:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577296', 'tblTempVendorCDR_20' ) end [2025-02-28 15:14:21] Production.INFO: ProcessCDR(1,14577296,1,1,2) [2025-02-28 15:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577296', 'tblTempUsageDetail_20' ) start [2025-02-28 15:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577296', 'tblTempUsageDetail_20' ) end [2025-02-28 15:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:14:26] Production.INFO: ==29788== Releasing lock... [2025-02-28 15:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:14:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:15:05 [end_date_ymd] => 2025-02-28 15:15:05 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:15:05' and `end` < '2025-02-28 15: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-02-28 15:15:18] Production.INFO: count ==5119 [2025-02-28 15:15:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:15:05 - End Time 2025-02-28 15:15:05 [2025-02-28 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577302', 'tblTempUsageDetail_20' ) start [2025-02-28 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577302', 'tblTempUsageDetail_20' ) end [2025-02-28 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577302', 'tblTempVendorCDR_20' ) start [2025-02-28 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577302', 'tblTempVendorCDR_20' ) end [2025-02-28 15:15:21] Production.INFO: ProcessCDR(1,14577302,1,1,2) [2025-02-28 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577302', 'tblTempUsageDetail_20' ) start [2025-02-28 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577302', 'tblTempUsageDetail_20' ) end [2025-02-28 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:15:26] Production.INFO: ==29936== Releasing lock... [2025-02-28 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:15:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:16:05 [end_date_ymd] => 2025-02-28 15:16:05 [RateCDR] => 1 ) [2025-02-28 15:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:16:05' and `end` < '2025-02-28 15:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:16:18] Production.INFO: count ==5097 [2025-02-28 15:16:20] Production.ERROR: pbx CDR StartTime 2025-02-28 12:16:05 - End Time 2025-02-28 15:16:05 [2025-02-28 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577307', 'tblTempUsageDetail_20' ) start [2025-02-28 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577307', 'tblTempUsageDetail_20' ) end [2025-02-28 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577307', 'tblTempVendorCDR_20' ) start [2025-02-28 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577307', 'tblTempVendorCDR_20' ) end [2025-02-28 15:16:21] Production.INFO: ProcessCDR(1,14577307,1,1,2) [2025-02-28 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577307', 'tblTempUsageDetail_20' ) start [2025-02-28 15:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577307', 'tblTempUsageDetail_20' ) end [2025-02-28 15:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:16:24] Production.INFO: ==30014== Releasing lock... [2025-02-28 15:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:16:24] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:17:06 [end_date_ymd] => 2025-02-28 15:17:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:17:06' and `end` < '2025-02-28 15: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-02-28 15:17:19] Production.INFO: count ==5112 [2025-02-28 15:17:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:17:06 - End Time 2025-02-28 15:17:06 [2025-02-28 15:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577312', 'tblTempUsageDetail_20' ) start [2025-02-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577312', 'tblTempUsageDetail_20' ) end [2025-02-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577312', 'tblTempVendorCDR_20' ) start [2025-02-28 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577312', 'tblTempVendorCDR_20' ) end [2025-02-28 15:17:22] Production.INFO: ProcessCDR(1,14577312,1,1,2) [2025-02-28 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577312', 'tblTempUsageDetail_20' ) start [2025-02-28 15:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577312', 'tblTempUsageDetail_20' ) end [2025-02-28 15:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:17:27] Production.INFO: ==30084== Releasing lock... [2025-02-28 15:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:17:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:18:06 [end_date_ymd] => 2025-02-28 15:18:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:18:06' and `end` < '2025-02-28 15: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-02-28 15:18:19] Production.INFO: count ==5121 [2025-02-28 15:18:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:18:06 - End Time 2025-02-28 15:18:06 [2025-02-28 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577317', 'tblTempUsageDetail_20' ) start [2025-02-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577317', 'tblTempUsageDetail_20' ) end [2025-02-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577317', 'tblTempVendorCDR_20' ) start [2025-02-28 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577317', 'tblTempVendorCDR_20' ) end [2025-02-28 15:18:21] Production.INFO: ProcessCDR(1,14577317,1,1,2) [2025-02-28 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577317', 'tblTempUsageDetail_20' ) start [2025-02-28 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577317', 'tblTempUsageDetail_20' ) end [2025-02-28 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:18:27] Production.INFO: ==30155== Releasing lock... [2025-02-28 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:18:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:19:05 [end_date_ymd] => 2025-02-28 15:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:19:05' and `end` < '2025-02-28 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-02-28 15:19:18] Production.INFO: count ==5122 [2025-02-28 15:19:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:19:05 - End Time 2025-02-28 15:19:05 [2025-02-28 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577322', 'tblTempUsageDetail_20' ) start [2025-02-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577322', 'tblTempUsageDetail_20' ) end [2025-02-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577322', 'tblTempVendorCDR_20' ) start [2025-02-28 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577322', 'tblTempVendorCDR_20' ) end [2025-02-28 15:19:21] Production.INFO: ProcessCDR(1,14577322,1,1,2) [2025-02-28 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577322', 'tblTempUsageDetail_20' ) start [2025-02-28 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577322', 'tblTempUsageDetail_20' ) end [2025-02-28 15:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:19:26] Production.INFO: ==30226== Releasing lock... [2025-02-28 15:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:19:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:20:06 [end_date_ymd] => 2025-02-28 15:20:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:20:06' and `end` < '2025-02-28 15: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-02-28 15:20:19] Production.INFO: count ==5135 [2025-02-28 15:20:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:20:06 - End Time 2025-02-28 15:20:06 [2025-02-28 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577327', 'tblTempUsageDetail_20' ) start [2025-02-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577327', 'tblTempUsageDetail_20' ) end [2025-02-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577327', 'tblTempVendorCDR_20' ) start [2025-02-28 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577327', 'tblTempVendorCDR_20' ) end [2025-02-28 15:20:22] Production.INFO: ProcessCDR(1,14577327,1,1,2) [2025-02-28 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577327', 'tblTempUsageDetail_20' ) start [2025-02-28 15:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577327', 'tblTempUsageDetail_20' ) end [2025-02-28 15:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:20:27] Production.INFO: ==30304== Releasing lock... [2025-02-28 15:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:20:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:21:06 [end_date_ymd] => 2025-02-28 15:21:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:21:06' and `end` < '2025-02-28 15: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-02-28 15:21:19] Production.INFO: count ==5173 [2025-02-28 15:21:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:21:06 - End Time 2025-02-28 15:21:06 [2025-02-28 15:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577333', 'tblTempUsageDetail_20' ) start [2025-02-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577333', 'tblTempUsageDetail_20' ) end [2025-02-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577333', 'tblTempVendorCDR_20' ) start [2025-02-28 15:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577333', 'tblTempVendorCDR_20' ) end [2025-02-28 15:21:22] Production.INFO: ProcessCDR(1,14577333,1,1,2) [2025-02-28 15:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577333', 'tblTempUsageDetail_20' ) start [2025-02-28 15:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577333', 'tblTempUsageDetail_20' ) end [2025-02-28 15:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:21:27] Production.INFO: ==30376== Releasing lock... [2025-02-28 15:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:21:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:22:06 [end_date_ymd] => 2025-02-28 15:22:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:22:06' and `end` < '2025-02-28 15: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-02-28 15:22:19] Production.INFO: count ==5182 [2025-02-28 15:22:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:22:06 - End Time 2025-02-28 15:22:06 [2025-02-28 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577338', 'tblTempUsageDetail_20' ) start [2025-02-28 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577338', 'tblTempUsageDetail_20' ) end [2025-02-28 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577338', 'tblTempVendorCDR_20' ) start [2025-02-28 15:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577338', 'tblTempVendorCDR_20' ) end [2025-02-28 15:22:22] Production.INFO: ProcessCDR(1,14577338,1,1,2) [2025-02-28 15:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577338', 'tblTempUsageDetail_20' ) start [2025-02-28 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577338', 'tblTempUsageDetail_20' ) end [2025-02-28 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:22:27] Production.INFO: ==30447== Releasing lock... [2025-02-28 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:22:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:23:05 [end_date_ymd] => 2025-02-28 15:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:23:05' and `end` < '2025-02-28 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-02-28 15:23:18] Production.INFO: count ==5180 [2025-02-28 15:23:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:23:05 - End Time 2025-02-28 15:23:05 [2025-02-28 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577343', 'tblTempUsageDetail_20' ) start [2025-02-28 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577343', 'tblTempUsageDetail_20' ) end [2025-02-28 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577343', 'tblTempVendorCDR_20' ) start [2025-02-28 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577343', 'tblTempVendorCDR_20' ) end [2025-02-28 15:23:21] Production.INFO: ProcessCDR(1,14577343,1,1,2) [2025-02-28 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577343', 'tblTempUsageDetail_20' ) start [2025-02-28 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577343', 'tblTempUsageDetail_20' ) end [2025-02-28 15:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:23:26] Production.INFO: ==30520== Releasing lock... [2025-02-28 15:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:23:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:24:06 [end_date_ymd] => 2025-02-28 15:24:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:24:06' and `end` < '2025-02-28 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-02-28 15:24:19] Production.INFO: count ==5178 [2025-02-28 15:24:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:24:06 - End Time 2025-02-28 15:24:06 [2025-02-28 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577348', 'tblTempUsageDetail_20' ) start [2025-02-28 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577348', 'tblTempUsageDetail_20' ) end [2025-02-28 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577348', 'tblTempVendorCDR_20' ) start [2025-02-28 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577348', 'tblTempVendorCDR_20' ) end [2025-02-28 15:24:21] Production.INFO: ProcessCDR(1,14577348,1,1,2) [2025-02-28 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577348', 'tblTempUsageDetail_20' ) start [2025-02-28 15:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577348', 'tblTempUsageDetail_20' ) end [2025-02-28 15:24:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:24:27] Production.INFO: ==30630== Releasing lock... [2025-02-28 15:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:24:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:25:05 [end_date_ymd] => 2025-02-28 15:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:25:05' and `end` < '2025-02-28 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-02-28 15:25:18] Production.INFO: count ==5171 [2025-02-28 15:25:20] Production.ERROR: pbx CDR StartTime 2025-02-28 12:25:05 - End Time 2025-02-28 15:25:05 [2025-02-28 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577353', 'tblTempUsageDetail_20' ) start [2025-02-28 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577353', 'tblTempUsageDetail_20' ) end [2025-02-28 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577353', 'tblTempVendorCDR_20' ) start [2025-02-28 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577353', 'tblTempVendorCDR_20' ) end [2025-02-28 15:25:20] Production.INFO: ProcessCDR(1,14577353,1,1,2) [2025-02-28 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577353', 'tblTempUsageDetail_20' ) start [2025-02-28 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577353', 'tblTempUsageDetail_20' ) end [2025-02-28 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:25:25] Production.INFO: ==30700== Releasing lock... [2025-02-28 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:25:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:26:06 [end_date_ymd] => 2025-02-28 15:26:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:26:06' and `end` < '2025-02-28 15: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-02-28 15:26:19] Production.INFO: count ==5169 [2025-02-28 15:26:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:26:06 - End Time 2025-02-28 15:26:06 [2025-02-28 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577358', 'tblTempUsageDetail_20' ) start [2025-02-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577358', 'tblTempUsageDetail_20' ) end [2025-02-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577358', 'tblTempVendorCDR_20' ) start [2025-02-28 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577358', 'tblTempVendorCDR_20' ) end [2025-02-28 15:26:21] Production.INFO: ProcessCDR(1,14577358,1,1,2) [2025-02-28 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577358', 'tblTempUsageDetail_20' ) start [2025-02-28 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577358', 'tblTempUsageDetail_20' ) end [2025-02-28 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:26:27] Production.INFO: ==30775== Releasing lock... [2025-02-28 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:26:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:27:05 [end_date_ymd] => 2025-02-28 15:27:05 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:27:05' and `end` < '2025-02-28 15: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-02-28 15:27:18] Production.INFO: count ==5171 [2025-02-28 15:27:20] Production.ERROR: pbx CDR StartTime 2025-02-28 12:27:05 - End Time 2025-02-28 15:27:05 [2025-02-28 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577363', 'tblTempUsageDetail_20' ) start [2025-02-28 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577363', 'tblTempUsageDetail_20' ) end [2025-02-28 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577363', 'tblTempVendorCDR_20' ) start [2025-02-28 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577363', 'tblTempVendorCDR_20' ) end [2025-02-28 15:27:21] Production.INFO: ProcessCDR(1,14577363,1,1,2) [2025-02-28 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577363', 'tblTempUsageDetail_20' ) start [2025-02-28 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577363', 'tblTempUsageDetail_20' ) end [2025-02-28 15:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:27:26] Production.INFO: ==30845== Releasing lock... [2025-02-28 15:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:27:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:28:05 [end_date_ymd] => 2025-02-28 15:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:28:05' and `end` < '2025-02-28 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-02-28 15:28:19] Production.INFO: count ==5184 [2025-02-28 15:28:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:28:05 - End Time 2025-02-28 15:28:05 [2025-02-28 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577368', 'tblTempUsageDetail_20' ) start [2025-02-28 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577368', 'tblTempUsageDetail_20' ) end [2025-02-28 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577368', 'tblTempVendorCDR_20' ) start [2025-02-28 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577368', 'tblTempVendorCDR_20' ) end [2025-02-28 15:28:21] Production.INFO: ProcessCDR(1,14577368,1,1,2) [2025-02-28 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577368', 'tblTempUsageDetail_20' ) start [2025-02-28 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577368', 'tblTempUsageDetail_20' ) end [2025-02-28 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:28:27] Production.INFO: ==30918== Releasing lock... [2025-02-28 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:28:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:29:05 [end_date_ymd] => 2025-02-28 15:29:05 [RateCDR] => 1 ) [2025-02-28 15:29:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:29:05' and `end` < '2025-02-28 15:29:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:29:18] Production.INFO: count ==5165 [2025-02-28 15:29:20] Production.ERROR: pbx CDR StartTime 2025-02-28 12:29:05 - End Time 2025-02-28 15:29:05 [2025-02-28 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577373', 'tblTempUsageDetail_20' ) start [2025-02-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577373', 'tblTempUsageDetail_20' ) end [2025-02-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577373', 'tblTempVendorCDR_20' ) start [2025-02-28 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577373', 'tblTempVendorCDR_20' ) end [2025-02-28 15:29:20] Production.INFO: ProcessCDR(1,14577373,1,1,2) [2025-02-28 15:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577373', 'tblTempUsageDetail_20' ) start [2025-02-28 15:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577373', 'tblTempUsageDetail_20' ) end [2025-02-28 15:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:29:26] Production.INFO: ==30989== Releasing lock... [2025-02-28 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:29:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:30:06 [end_date_ymd] => 2025-02-28 15:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:30:06' and `end` < '2025-02-28 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-02-28 15:30:19] Production.INFO: count ==5180 [2025-02-28 15:30:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:30:06 - End Time 2025-02-28 15:30:06 [2025-02-28 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577379', 'tblTempUsageDetail_20' ) start [2025-02-28 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577379', 'tblTempUsageDetail_20' ) end [2025-02-28 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577379', 'tblTempVendorCDR_20' ) start [2025-02-28 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577379', 'tblTempVendorCDR_20' ) end [2025-02-28 15:30:22] Production.INFO: ProcessCDR(1,14577379,1,1,2) [2025-02-28 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577379', 'tblTempUsageDetail_20' ) start [2025-02-28 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577379', 'tblTempUsageDetail_20' ) end [2025-02-28 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:30:28] Production.INFO: ==31063== Releasing lock... [2025-02-28 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:30:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:31:06 [end_date_ymd] => 2025-02-28 15:31:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:31:06' and `end` < '2025-02-28 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-02-28 15:31:19] Production.INFO: count ==5185 [2025-02-28 15:31:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:31:06 - End Time 2025-02-28 15:31:06 [2025-02-28 15:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577384', 'tblTempUsageDetail_20' ) start [2025-02-28 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577384', 'tblTempUsageDetail_20' ) end [2025-02-28 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577384', 'tblTempVendorCDR_20' ) start [2025-02-28 15:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577384', 'tblTempVendorCDR_20' ) end [2025-02-28 15:31:22] Production.INFO: ProcessCDR(1,14577384,1,1,2) [2025-02-28 15:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577384', 'tblTempUsageDetail_20' ) start [2025-02-28 15:31:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577384', 'tblTempUsageDetail_20' ) end [2025-02-28 15:31:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:31:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:31:28] Production.INFO: ==31135== Releasing lock... [2025-02-28 15:31:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:31:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:32:06 [end_date_ymd] => 2025-02-28 15:32:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:32:06' and `end` < '2025-02-28 15: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-02-28 15:32:19] Production.INFO: count ==5194 [2025-02-28 15:32:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:32:06 - End Time 2025-02-28 15:32:06 [2025-02-28 15:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577389', 'tblTempUsageDetail_20' ) start [2025-02-28 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577389', 'tblTempUsageDetail_20' ) end [2025-02-28 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577389', 'tblTempVendorCDR_20' ) start [2025-02-28 15:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577389', 'tblTempVendorCDR_20' ) end [2025-02-28 15:32:21] Production.INFO: ProcessCDR(1,14577389,1,1,2) [2025-02-28 15:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577389', 'tblTempUsageDetail_20' ) start [2025-02-28 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577389', 'tblTempUsageDetail_20' ) end [2025-02-28 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:32:27] Production.INFO: ==31208== Releasing lock... [2025-02-28 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:32:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:33:05 [end_date_ymd] => 2025-02-28 15:33:05 [RateCDR] => 1 ) [2025-02-28 15:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:33:05' and `end` < '2025-02-28 15:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:33:18] Production.INFO: count ==5184 [2025-02-28 15:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 12:33:05 - End Time 2025-02-28 15:33:05 [2025-02-28 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577394', 'tblTempUsageDetail_20' ) start [2025-02-28 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577394', 'tblTempUsageDetail_20' ) end [2025-02-28 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577394', 'tblTempVendorCDR_20' ) start [2025-02-28 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577394', 'tblTempVendorCDR_20' ) end [2025-02-28 15:33:20] Production.INFO: ProcessCDR(1,14577394,1,1,2) [2025-02-28 15:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577394,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577394,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577394', 'tblTempUsageDetail_20' ) start [2025-02-28 15:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577394', 'tblTempUsageDetail_20' ) end [2025-02-28 15:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:33:25] Production.INFO: ==31282== Releasing lock... [2025-02-28 15:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:33:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:34:06 [end_date_ymd] => 2025-02-28 15:34:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:34:06' and `end` < '2025-02-28 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-02-28 15:34:19] Production.INFO: count ==5155 [2025-02-28 15:34:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:34:06 - End Time 2025-02-28 15:34:06 [2025-02-28 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577399', 'tblTempUsageDetail_20' ) start [2025-02-28 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577399', 'tblTempUsageDetail_20' ) end [2025-02-28 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577399', 'tblTempVendorCDR_20' ) start [2025-02-28 15:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577399', 'tblTempVendorCDR_20' ) end [2025-02-28 15:34:22] Production.INFO: ProcessCDR(1,14577399,1,1,2) [2025-02-28 15:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:34:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:34:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577399', 'tblTempUsageDetail_20' ) start [2025-02-28 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577399', 'tblTempUsageDetail_20' ) end [2025-02-28 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:34:27] Production.INFO: ==31353== Releasing lock... [2025-02-28 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:34:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:35:06 [end_date_ymd] => 2025-02-28 15:35:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:35:06' and `end` < '2025-02-28 15: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-02-28 15:35:19] Production.INFO: count ==5146 [2025-02-28 15:35:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:35:06 - End Time 2025-02-28 15:35:06 [2025-02-28 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577404', 'tblTempUsageDetail_20' ) start [2025-02-28 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577404', 'tblTempUsageDetail_20' ) end [2025-02-28 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577404', 'tblTempVendorCDR_20' ) start [2025-02-28 15:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577404', 'tblTempVendorCDR_20' ) end [2025-02-28 15:35:22] Production.INFO: ProcessCDR(1,14577404,1,1,2) [2025-02-28 15:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577404', 'tblTempUsageDetail_20' ) start [2025-02-28 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577404', 'tblTempUsageDetail_20' ) end [2025-02-28 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:35:27] Production.INFO: ==31429== Releasing lock... [2025-02-28 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:35:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:36:06 [end_date_ymd] => 2025-02-28 15:36:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:36:06' and `end` < '2025-02-28 15: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-02-28 15:36:19] Production.INFO: count ==5137 [2025-02-28 15:36:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:36:06 - End Time 2025-02-28 15:36:06 [2025-02-28 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577409', 'tblTempUsageDetail_20' ) start [2025-02-28 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577409', 'tblTempUsageDetail_20' ) end [2025-02-28 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577409', 'tblTempVendorCDR_20' ) start [2025-02-28 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577409', 'tblTempVendorCDR_20' ) end [2025-02-28 15:36:21] Production.INFO: ProcessCDR(1,14577409,1,1,2) [2025-02-28 15:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577409', 'tblTempUsageDetail_20' ) start [2025-02-28 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577409', 'tblTempUsageDetail_20' ) end [2025-02-28 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:36:26] Production.INFO: ==31499== Releasing lock... [2025-02-28 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:36:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:37:05 [end_date_ymd] => 2025-02-28 15:37:05 [RateCDR] => 1 ) [2025-02-28 15:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:37:05' and `end` < '2025-02-28 15:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:37:18] Production.INFO: count ==5129 [2025-02-28 15:37:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:37:05 - End Time 2025-02-28 15:37:05 [2025-02-28 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577414', 'tblTempUsageDetail_20' ) start [2025-02-28 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577414', 'tblTempUsageDetail_20' ) end [2025-02-28 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577414', 'tblTempVendorCDR_20' ) start [2025-02-28 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577414', 'tblTempVendorCDR_20' ) end [2025-02-28 15:37:21] Production.INFO: ProcessCDR(1,14577414,1,1,2) [2025-02-28 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577414', 'tblTempUsageDetail_20' ) start [2025-02-28 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577414', 'tblTempUsageDetail_20' ) end [2025-02-28 15:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:37:26] Production.INFO: ==31574== Releasing lock... [2025-02-28 15:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:37:26] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:38:06 [end_date_ymd] => 2025-02-28 15:38:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:38:06' and `end` < '2025-02-28 15: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-02-28 15:38:19] Production.INFO: count ==5135 [2025-02-28 15:38:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:38:06 - End Time 2025-02-28 15:38:06 [2025-02-28 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577419', 'tblTempUsageDetail_20' ) start [2025-02-28 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577419', 'tblTempUsageDetail_20' ) end [2025-02-28 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577419', 'tblTempVendorCDR_20' ) start [2025-02-28 15:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577419', 'tblTempVendorCDR_20' ) end [2025-02-28 15:38:22] Production.INFO: ProcessCDR(1,14577419,1,1,2) [2025-02-28 15:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577419', 'tblTempUsageDetail_20' ) start [2025-02-28 15:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577419', 'tblTempUsageDetail_20' ) end [2025-02-28 15:38:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:38:28] Production.INFO: ==31646== Releasing lock... [2025-02-28 15:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:38:28] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:39:05 [end_date_ymd] => 2025-02-28 15:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:39:05' and `end` < '2025-02-28 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-02-28 15:39:18] Production.INFO: count ==5127 [2025-02-28 15:39:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:39:05 - End Time 2025-02-28 15:39:05 [2025-02-28 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577424', 'tblTempUsageDetail_20' ) start [2025-02-28 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577424', 'tblTempUsageDetail_20' ) end [2025-02-28 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577424', 'tblTempVendorCDR_20' ) start [2025-02-28 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577424', 'tblTempVendorCDR_20' ) end [2025-02-28 15:39:21] Production.INFO: ProcessCDR(1,14577424,1,1,2) [2025-02-28 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577424', 'tblTempUsageDetail_20' ) start [2025-02-28 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577424', 'tblTempUsageDetail_20' ) end [2025-02-28 15:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:39:26] Production.INFO: ==31717== Releasing lock... [2025-02-28 15:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:39:26] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:40:06 [end_date_ymd] => 2025-02-28 15:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:40:06' and `end` < '2025-02-28 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-02-28 15:40:19] Production.INFO: count ==5126 [2025-02-28 15:40:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:40:06 - End Time 2025-02-28 15:40:06 [2025-02-28 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577429', 'tblTempUsageDetail_20' ) start [2025-02-28 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577429', 'tblTempUsageDetail_20' ) end [2025-02-28 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577429', 'tblTempVendorCDR_20' ) start [2025-02-28 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577429', 'tblTempVendorCDR_20' ) end [2025-02-28 15:40:22] Production.INFO: ProcessCDR(1,14577429,1,1,2) [2025-02-28 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577429', 'tblTempUsageDetail_20' ) start [2025-02-28 15:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577429', 'tblTempUsageDetail_20' ) end [2025-02-28 15:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:40:27] Production.INFO: ==31829== Releasing lock... [2025-02-28 15:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:40:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 15:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:41:06 [end_date_ymd] => 2025-02-28 15:41:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:41:06' and `end` < '2025-02-28 15: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-02-28 15:41:22] Production.INFO: count ==5177 [2025-02-28 15:41:24] Production.ERROR: pbx CDR StartTime 2025-02-28 12:41:06 - End Time 2025-02-28 15:41:06 [2025-02-28 15:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577435', 'tblTempUsageDetail_20' ) start [2025-02-28 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577435', 'tblTempUsageDetail_20' ) end [2025-02-28 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577435', 'tblTempVendorCDR_20' ) start [2025-02-28 15:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577435', 'tblTempVendorCDR_20' ) end [2025-02-28 15:41:25] Production.INFO: ProcessCDR(1,14577435,1,1,2) [2025-02-28 15:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:41:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577435', 'tblTempUsageDetail_20' ) start [2025-02-28 15:41:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577435', 'tblTempUsageDetail_20' ) end [2025-02-28 15:41:30] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:41:30] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:41:30] Production.INFO: ==31904== Releasing lock... [2025-02-28 15:41:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:41:30] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:42:05 [end_date_ymd] => 2025-02-28 15:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:42:05' and `end` < '2025-02-28 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-02-28 15:42:18] Production.INFO: count ==5202 [2025-02-28 15:42:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:42:05 - End Time 2025-02-28 15:42:05 [2025-02-28 15:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577440', 'tblTempUsageDetail_20' ) start [2025-02-28 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577440', 'tblTempUsageDetail_20' ) end [2025-02-28 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577440', 'tblTempVendorCDR_20' ) start [2025-02-28 15:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577440', 'tblTempVendorCDR_20' ) end [2025-02-28 15:42:21] Production.INFO: ProcessCDR(1,14577440,1,1,2) [2025-02-28 15:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577440', 'tblTempUsageDetail_20' ) start [2025-02-28 15:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577440', 'tblTempUsageDetail_20' ) end [2025-02-28 15:42:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:42:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:42:26] Production.INFO: ==31975== Releasing lock... [2025-02-28 15:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:42:26] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:43:06 [end_date_ymd] => 2025-02-28 15:43:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:43:06' and `end` < '2025-02-28 15: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-02-28 15:43:20] Production.INFO: count ==5189 [2025-02-28 15:43:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:43:06 - End Time 2025-02-28 15:43:06 [2025-02-28 15:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577445', 'tblTempUsageDetail_20' ) start [2025-02-28 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577445', 'tblTempUsageDetail_20' ) end [2025-02-28 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577445', 'tblTempVendorCDR_20' ) start [2025-02-28 15:43:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577445', 'tblTempVendorCDR_20' ) end [2025-02-28 15:43:23] Production.INFO: ProcessCDR(1,14577445,1,1,2) [2025-02-28 15:43:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:43:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577445', 'tblTempUsageDetail_20' ) start [2025-02-28 15:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577445', 'tblTempUsageDetail_20' ) end [2025-02-28 15:43:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:43:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:43:28] Production.INFO: ==32047== Releasing lock... [2025-02-28 15:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:43:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:44:05 [end_date_ymd] => 2025-02-28 15:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:44:05' and `end` < '2025-02-28 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-02-28 15:44:19] Production.INFO: count ==5194 [2025-02-28 15:44:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:44:05 - End Time 2025-02-28 15:44:05 [2025-02-28 15:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577450', 'tblTempUsageDetail_20' ) start [2025-02-28 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577450', 'tblTempUsageDetail_20' ) end [2025-02-28 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577450', 'tblTempVendorCDR_20' ) start [2025-02-28 15:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577450', 'tblTempVendorCDR_20' ) end [2025-02-28 15:44:21] Production.INFO: ProcessCDR(1,14577450,1,1,2) [2025-02-28 15:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577450', 'tblTempUsageDetail_20' ) start [2025-02-28 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577450', 'tblTempUsageDetail_20' ) end [2025-02-28 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:44:27] Production.INFO: ==32118== Releasing lock... [2025-02-28 15:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:44:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:45:06 [end_date_ymd] => 2025-02-28 15:45:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:45:06' and `end` < '2025-02-28 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-02-28 15:45:19] Production.INFO: count ==5210 [2025-02-28 15:45:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:45:06 - End Time 2025-02-28 15:45:06 [2025-02-28 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577455', 'tblTempUsageDetail_20' ) start [2025-02-28 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577455', 'tblTempUsageDetail_20' ) end [2025-02-28 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577455', 'tblTempVendorCDR_20' ) start [2025-02-28 15:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577455', 'tblTempVendorCDR_20' ) end [2025-02-28 15:45:22] Production.INFO: ProcessCDR(1,14577455,1,1,2) [2025-02-28 15:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577455', 'tblTempUsageDetail_20' ) start [2025-02-28 15:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577455', 'tblTempUsageDetail_20' ) end [2025-02-28 15:45:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:45:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:45:27] Production.INFO: ==32194== Releasing lock... [2025-02-28 15:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:45:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:46:05 [end_date_ymd] => 2025-02-28 15:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:46:05' and `end` < '2025-02-28 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-02-28 15:46:18] Production.INFO: count ==5199 [2025-02-28 15:46:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:46:05 - End Time 2025-02-28 15:46:05 [2025-02-28 15:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577460', 'tblTempUsageDetail_20' ) start [2025-02-28 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577460', 'tblTempUsageDetail_20' ) end [2025-02-28 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577460', 'tblTempVendorCDR_20' ) start [2025-02-28 15:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577460', 'tblTempVendorCDR_20' ) end [2025-02-28 15:46:21] Production.INFO: ProcessCDR(1,14577460,1,1,2) [2025-02-28 15:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577460', 'tblTempUsageDetail_20' ) start [2025-02-28 15:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577460', 'tblTempUsageDetail_20' ) end [2025-02-28 15:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:46:26] Production.INFO: ==32267== Releasing lock... [2025-02-28 15:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:46:26] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:47:06 [end_date_ymd] => 2025-02-28 15:47:06 [RateCDR] => 1 ) [2025-02-28 15:47:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 12:47:06' and `end` < '2025-02-28 15:47:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 15:47:19] Production.INFO: count ==5174 [2025-02-28 15:47:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:47:06 - End Time 2025-02-28 15:47:06 [2025-02-28 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577465', 'tblTempUsageDetail_20' ) start [2025-02-28 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577465', 'tblTempUsageDetail_20' ) end [2025-02-28 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577465', 'tblTempVendorCDR_20' ) start [2025-02-28 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577465', 'tblTempVendorCDR_20' ) end [2025-02-28 15:47:21] Production.INFO: ProcessCDR(1,14577465,1,1,2) [2025-02-28 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577465', 'tblTempUsageDetail_20' ) start [2025-02-28 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577465', 'tblTempUsageDetail_20' ) end [2025-02-28 15:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:47:27] Production.INFO: ==32337== Releasing lock... [2025-02-28 15:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:47:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:48:05 [end_date_ymd] => 2025-02-28 15:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:48:05' and `end` < '2025-02-28 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-02-28 15:48:19] Production.INFO: count ==5189 [2025-02-28 15:48:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:48:05 - End Time 2025-02-28 15:48:05 [2025-02-28 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577470', 'tblTempUsageDetail_20' ) start [2025-02-28 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577470', 'tblTempUsageDetail_20' ) end [2025-02-28 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577470', 'tblTempVendorCDR_20' ) start [2025-02-28 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577470', 'tblTempVendorCDR_20' ) end [2025-02-28 15:48:21] Production.INFO: ProcessCDR(1,14577470,1,1,2) [2025-02-28 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577470', 'tblTempUsageDetail_20' ) start [2025-02-28 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577470', 'tblTempUsageDetail_20' ) end [2025-02-28 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:48:27] Production.INFO: ==32406== Releasing lock... [2025-02-28 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:48:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:49:06 [end_date_ymd] => 2025-02-28 15:49:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:49:06' and `end` < '2025-02-28 15: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-02-28 15:49:20] Production.INFO: count ==5174 [2025-02-28 15:49:22] Production.ERROR: pbx CDR StartTime 2025-02-28 12:49:06 - End Time 2025-02-28 15:49:06 [2025-02-28 15:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577475', 'tblTempUsageDetail_20' ) start [2025-02-28 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577475', 'tblTempUsageDetail_20' ) end [2025-02-28 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577475', 'tblTempVendorCDR_20' ) start [2025-02-28 15:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577475', 'tblTempVendorCDR_20' ) end [2025-02-28 15:49:22] Production.INFO: ProcessCDR(1,14577475,1,1,2) [2025-02-28 15:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577475', 'tblTempUsageDetail_20' ) start [2025-02-28 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577475', 'tblTempUsageDetail_20' ) end [2025-02-28 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:49:28] Production.INFO: ==32478== Releasing lock... [2025-02-28 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:49:28] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:50:07 [end_date_ymd] => 2025-02-28 15:50:07 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:50:07' and `end` < '2025-02-28 15: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-02-28 15:50:20] Production.INFO: count ==5167 [2025-02-28 15:50:23] Production.ERROR: pbx CDR StartTime 2025-02-28 12:50:07 - End Time 2025-02-28 15:50:07 [2025-02-28 15:50:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577481', 'tblTempUsageDetail_20' ) start [2025-02-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577481', 'tblTempUsageDetail_20' ) end [2025-02-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577481', 'tblTempVendorCDR_20' ) start [2025-02-28 15:50:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577481', 'tblTempVendorCDR_20' ) end [2025-02-28 15:50:23] Production.INFO: ProcessCDR(1,14577481,1,1,2) [2025-02-28 15:50:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:50:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:50:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577481', 'tblTempUsageDetail_20' ) start [2025-02-28 15:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577481', 'tblTempUsageDetail_20' ) end [2025-02-28 15:50:29] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:50:29] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:50:29] Production.INFO: ==32552== Releasing lock... [2025-02-28 15:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:50:29] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:51:05 [end_date_ymd] => 2025-02-28 15:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:51:05' and `end` < '2025-02-28 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-02-28 15:51:18] Production.INFO: count ==5207 [2025-02-28 15:51:20] Production.ERROR: pbx CDR StartTime 2025-02-28 12:51:05 - End Time 2025-02-28 15:51:05 [2025-02-28 15:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577486', 'tblTempUsageDetail_20' ) start [2025-02-28 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577486', 'tblTempUsageDetail_20' ) end [2025-02-28 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577486', 'tblTempVendorCDR_20' ) start [2025-02-28 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577486', 'tblTempVendorCDR_20' ) end [2025-02-28 15:51:21] Production.INFO: ProcessCDR(1,14577486,1,1,2) [2025-02-28 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577486', 'tblTempUsageDetail_20' ) start [2025-02-28 15:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577486', 'tblTempUsageDetail_20' ) end [2025-02-28 15:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:51:26] Production.INFO: ==32625== Releasing lock... [2025-02-28 15:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:51:26] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:52:06 [end_date_ymd] => 2025-02-28 15:52:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:52:06' and `end` < '2025-02-28 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-02-28 15:52:19] Production.INFO: count ==5217 [2025-02-28 15:52:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:52:06 - End Time 2025-02-28 15:52:06 [2025-02-28 15:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577491', 'tblTempUsageDetail_20' ) start [2025-02-28 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577491', 'tblTempUsageDetail_20' ) end [2025-02-28 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577491', 'tblTempVendorCDR_20' ) start [2025-02-28 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577491', 'tblTempVendorCDR_20' ) end [2025-02-28 15:52:22] Production.INFO: ProcessCDR(1,14577491,1,1,2) [2025-02-28 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577491', 'tblTempUsageDetail_20' ) start [2025-02-28 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577491', 'tblTempUsageDetail_20' ) end [2025-02-28 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:52:27] Production.INFO: ==32697== Releasing lock... [2025-02-28 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:52:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:53:05 [end_date_ymd] => 2025-02-28 15:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:53:05' and `end` < '2025-02-28 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-02-28 15:53:19] Production.INFO: count ==5213 [2025-02-28 15:53:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:53:05 - End Time 2025-02-28 15:53:05 [2025-02-28 15:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577496', 'tblTempUsageDetail_20' ) start [2025-02-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577496', 'tblTempUsageDetail_20' ) end [2025-02-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577496', 'tblTempVendorCDR_20' ) start [2025-02-28 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577496', 'tblTempVendorCDR_20' ) end [2025-02-28 15:53:21] Production.INFO: ProcessCDR(1,14577496,1,1,2) [2025-02-28 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577496', 'tblTempUsageDetail_20' ) start [2025-02-28 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577496', 'tblTempUsageDetail_20' ) end [2025-02-28 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:53:26] Production.INFO: ==300== Releasing lock... [2025-02-28 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:53:26] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:54:06 [end_date_ymd] => 2025-02-28 15:54:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:54:06' and `end` < '2025-02-28 15: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-02-28 15:54:19] Production.INFO: count ==5188 [2025-02-28 15:54:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:54:06 - End Time 2025-02-28 15:54:06 [2025-02-28 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577501', 'tblTempUsageDetail_20' ) start [2025-02-28 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577501', 'tblTempUsageDetail_20' ) end [2025-02-28 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577501', 'tblTempVendorCDR_20' ) start [2025-02-28 15:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577501', 'tblTempVendorCDR_20' ) end [2025-02-28 15:54:22] Production.INFO: ProcessCDR(1,14577501,1,1,2) [2025-02-28 15:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577501', 'tblTempUsageDetail_20' ) start [2025-02-28 15:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577501', 'tblTempUsageDetail_20' ) end [2025-02-28 15:54:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:54:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:54:27] Production.INFO: ==390== Releasing lock... [2025-02-28 15:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:54:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:55:05 [end_date_ymd] => 2025-02-28 15:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:55:05' and `end` < '2025-02-28 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-02-28 15:55:19] Production.INFO: count ==5224 [2025-02-28 15:55:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:55:05 - End Time 2025-02-28 15:55:05 [2025-02-28 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577506', 'tblTempUsageDetail_20' ) start [2025-02-28 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577506', 'tblTempUsageDetail_20' ) end [2025-02-28 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577506', 'tblTempVendorCDR_20' ) start [2025-02-28 15:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577506', 'tblTempVendorCDR_20' ) end [2025-02-28 15:55:22] Production.INFO: ProcessCDR(1,14577506,1,1,2) [2025-02-28 15:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577506', 'tblTempUsageDetail_20' ) start [2025-02-28 15:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577506', 'tblTempUsageDetail_20' ) end [2025-02-28 15:55:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:55:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:55:27] Production.INFO: ==508== Releasing lock... [2025-02-28 15:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:55:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:56:06 [end_date_ymd] => 2025-02-28 15:56:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:56:06' and `end` < '2025-02-28 15: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-02-28 15:56:19] Production.INFO: count ==5215 [2025-02-28 15:56:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:56:06 - End Time 2025-02-28 15:56:06 [2025-02-28 15:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577511', 'tblTempUsageDetail_20' ) start [2025-02-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577511', 'tblTempUsageDetail_20' ) end [2025-02-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577511', 'tblTempVendorCDR_20' ) start [2025-02-28 15:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577511', 'tblTempVendorCDR_20' ) end [2025-02-28 15:56:22] Production.INFO: ProcessCDR(1,14577511,1,1,2) [2025-02-28 15:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577511', 'tblTempUsageDetail_20' ) start [2025-02-28 15:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577511', 'tblTempUsageDetail_20' ) end [2025-02-28 15:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:56:27] Production.INFO: ==581== Releasing lock... [2025-02-28 15:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:56:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:57:06 [end_date_ymd] => 2025-02-28 15:57:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:57:06' and `end` < '2025-02-28 15: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-02-28 15:57:19] Production.INFO: count ==5210 [2025-02-28 15:57:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:57:06 - End Time 2025-02-28 15:57:06 [2025-02-28 15:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577516', 'tblTempUsageDetail_20' ) start [2025-02-28 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577516', 'tblTempUsageDetail_20' ) end [2025-02-28 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577516', 'tblTempVendorCDR_20' ) start [2025-02-28 15:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577516', 'tblTempVendorCDR_20' ) end [2025-02-28 15:57:21] Production.INFO: ProcessCDR(1,14577516,1,1,2) [2025-02-28 15:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577516', 'tblTempUsageDetail_20' ) start [2025-02-28 15:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577516', 'tblTempUsageDetail_20' ) end [2025-02-28 15:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:57:26] Production.INFO: ==665== Releasing lock... [2025-02-28 15:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:57:26] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:58:06 [end_date_ymd] => 2025-02-28 15:58:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 12:58:06' and `end` < '2025-02-28 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-02-28 15:58:19] Production.INFO: count ==5209 [2025-02-28 15:58:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:58:06 - End Time 2025-02-28 15:58:06 [2025-02-28 15:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577521', 'tblTempUsageDetail_20' ) start [2025-02-28 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577521', 'tblTempUsageDetail_20' ) end [2025-02-28 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577521', 'tblTempVendorCDR_20' ) start [2025-02-28 15:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577521', 'tblTempVendorCDR_20' ) end [2025-02-28 15:58:22] Production.INFO: ProcessCDR(1,14577521,1,1,2) [2025-02-28 15:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577521', 'tblTempUsageDetail_20' ) start [2025-02-28 15:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577521', 'tblTempUsageDetail_20' ) end [2025-02-28 15:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:58:27] Production.INFO: ==761== Releasing lock... [2025-02-28 15:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:58:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 15:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 12:59:06 [end_date_ymd] => 2025-02-28 15:59:06 [RateCDR] => 1 ) [2025-02-28 15: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-02-28 12:59:06' and `end` < '2025-02-28 15: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-02-28 15:59:19] Production.INFO: count ==5199 [2025-02-28 15:59:21] Production.ERROR: pbx CDR StartTime 2025-02-28 12:59:06 - End Time 2025-02-28 15:59:06 [2025-02-28 15:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577526', 'tblTempUsageDetail_20' ) start [2025-02-28 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577526', 'tblTempUsageDetail_20' ) end [2025-02-28 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577526', 'tblTempVendorCDR_20' ) start [2025-02-28 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577526', 'tblTempVendorCDR_20' ) end [2025-02-28 15:59:21] Production.INFO: ProcessCDR(1,14577526,1,1,2) [2025-02-28 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 15:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577526', 'tblTempUsageDetail_20' ) start [2025-02-28 15:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577526', 'tblTempUsageDetail_20' ) end [2025-02-28 15:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 15:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 15:59:27] Production.INFO: ==832== Releasing lock... [2025-02-28 15:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 15:59:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:00:07 [end_date_ymd] => 2025-02-28 16:00:07 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:00:07' and `end` < '2025-02-28 16: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-02-28 16:00:20] Production.INFO: count ==5201 [2025-02-28 16:00:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:00:07 - End Time 2025-02-28 16:00:07 [2025-02-28 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577532', 'tblTempUsageDetail_20' ) start [2025-02-28 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577532', 'tblTempUsageDetail_20' ) end [2025-02-28 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577532', 'tblTempVendorCDR_20' ) start [2025-02-28 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577532', 'tblTempVendorCDR_20' ) end [2025-02-28 16:00:22] Production.INFO: ProcessCDR(1,14577532,1,1,2) [2025-02-28 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577532', 'tblTempUsageDetail_20' ) start [2025-02-28 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577532', 'tblTempUsageDetail_20' ) end [2025-02-28 16:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:00:28] Production.INFO: ==907== Releasing lock... [2025-02-28 16:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:00:28] Production.INFO: 67 MB #Memory Used# [2025-02-28 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:01:05 [end_date_ymd] => 2025-02-28 16:01:05 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:01:05' and `end` < '2025-02-28 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-02-28 16:01:19] Production.INFO: count ==5253 [2025-02-28 16:01:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:01:05 - End Time 2025-02-28 16:01:05 [2025-02-28 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577537', 'tblTempUsageDetail_20' ) start [2025-02-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577537', 'tblTempUsageDetail_20' ) end [2025-02-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577537', 'tblTempVendorCDR_20' ) start [2025-02-28 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577537', 'tblTempVendorCDR_20' ) end [2025-02-28 16:01:21] Production.INFO: ProcessCDR(1,14577537,1,1,2) [2025-02-28 16:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577537', 'tblTempUsageDetail_20' ) start [2025-02-28 16:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577537', 'tblTempUsageDetail_20' ) end [2025-02-28 16:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:01:26] Production.INFO: ==992== Releasing lock... [2025-02-28 16:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:01:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:02:06 [end_date_ymd] => 2025-02-28 16:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:02:06' and `end` < '2025-02-28 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-02-28 16:02:19] Production.INFO: count ==5265 [2025-02-28 16:02:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:02:06 - End Time 2025-02-28 16:02:06 [2025-02-28 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577542', 'tblTempUsageDetail_20' ) start [2025-02-28 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577542', 'tblTempUsageDetail_20' ) end [2025-02-28 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577542', 'tblTempVendorCDR_20' ) start [2025-02-28 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577542', 'tblTempVendorCDR_20' ) end [2025-02-28 16:02:21] Production.INFO: ProcessCDR(1,14577542,1,1,2) [2025-02-28 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577542', 'tblTempUsageDetail_20' ) start [2025-02-28 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577542', 'tblTempUsageDetail_20' ) end [2025-02-28 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:02:27] Production.INFO: ==1063== Releasing lock... [2025-02-28 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:02:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-28 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:03:06 [end_date_ymd] => 2025-02-28 16:03:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:03:06' and `end` < '2025-02-28 16: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-02-28 16:03:19] Production.INFO: count ==5297 [2025-02-28 16:03:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:03:06 - End Time 2025-02-28 16:03:06 [2025-02-28 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577547', 'tblTempUsageDetail_20' ) start [2025-02-28 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577547', 'tblTempUsageDetail_20' ) end [2025-02-28 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577547', 'tblTempVendorCDR_20' ) start [2025-02-28 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577547', 'tblTempVendorCDR_20' ) end [2025-02-28 16:03:21] Production.INFO: ProcessCDR(1,14577547,1,1,2) [2025-02-28 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577547', 'tblTempUsageDetail_20' ) start [2025-02-28 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577547', 'tblTempUsageDetail_20' ) end [2025-02-28 16:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:03:27] Production.INFO: ==1137== Releasing lock... [2025-02-28 16:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:03:27] Production.INFO: 68 MB #Memory Used# [2025-02-28 16:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:04:06 [end_date_ymd] => 2025-02-28 16:04:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:04:06' and `end` < '2025-02-28 16: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-02-28 16:04:19] Production.INFO: count ==5302 [2025-02-28 16:04:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:04:06 - End Time 2025-02-28 16:04:06 [2025-02-28 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577552', 'tblTempUsageDetail_20' ) start [2025-02-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577552', 'tblTempUsageDetail_20' ) end [2025-02-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577552', 'tblTempVendorCDR_20' ) start [2025-02-28 16:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577552', 'tblTempVendorCDR_20' ) end [2025-02-28 16:04:22] Production.INFO: ProcessCDR(1,14577552,1,1,2) [2025-02-28 16:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577552,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577552,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577552', 'tblTempUsageDetail_20' ) start [2025-02-28 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577552', 'tblTempUsageDetail_20' ) end [2025-02-28 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:04:27] Production.INFO: ==1215== Releasing lock... [2025-02-28 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:04:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:05:06 [end_date_ymd] => 2025-02-28 16:05:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:05:06' and `end` < '2025-02-28 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-02-28 16:05:19] Production.INFO: count ==5295 [2025-02-28 16:05:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:05:06 - End Time 2025-02-28 16:05:06 [2025-02-28 16:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577557', 'tblTempUsageDetail_20' ) start [2025-02-28 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577557', 'tblTempUsageDetail_20' ) end [2025-02-28 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577557', 'tblTempVendorCDR_20' ) start [2025-02-28 16:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577557', 'tblTempVendorCDR_20' ) end [2025-02-28 16:05:22] Production.INFO: ProcessCDR(1,14577557,1,1,2) [2025-02-28 16:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577557,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577557,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577557', 'tblTempUsageDetail_20' ) start [2025-02-28 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577557', 'tblTempUsageDetail_20' ) end [2025-02-28 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:05:27] Production.INFO: ==1297== Releasing lock... [2025-02-28 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:05:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:06:05 [end_date_ymd] => 2025-02-28 16:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:06:05' and `end` < '2025-02-28 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-02-28 16:06:19] Production.INFO: count ==5310 [2025-02-28 16:06:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:06:05 - End Time 2025-02-28 16:06:05 [2025-02-28 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577562', 'tblTempUsageDetail_20' ) start [2025-02-28 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577562', 'tblTempUsageDetail_20' ) end [2025-02-28 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577562', 'tblTempVendorCDR_20' ) start [2025-02-28 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577562', 'tblTempVendorCDR_20' ) end [2025-02-28 16:06:22] Production.INFO: ProcessCDR(1,14577562,1,1,2) [2025-02-28 16:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577562,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577562,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577562', 'tblTempUsageDetail_20' ) start [2025-02-28 16:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577562', 'tblTempUsageDetail_20' ) end [2025-02-28 16:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:06:27] Production.INFO: ==1370== Releasing lock... [2025-02-28 16:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:06:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:07:06 [end_date_ymd] => 2025-02-28 16:07:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:07:06' and `end` < '2025-02-28 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-02-28 16:07:19] Production.INFO: count ==5296 [2025-02-28 16:07:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:07:06 - End Time 2025-02-28 16:07:06 [2025-02-28 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577567', 'tblTempUsageDetail_20' ) start [2025-02-28 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577567', 'tblTempUsageDetail_20' ) end [2025-02-28 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577567', 'tblTempVendorCDR_20' ) start [2025-02-28 16:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577567', 'tblTempVendorCDR_20' ) end [2025-02-28 16:07:22] Production.INFO: ProcessCDR(1,14577567,1,1,2) [2025-02-28 16:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577567', 'tblTempUsageDetail_20' ) start [2025-02-28 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577567', 'tblTempUsageDetail_20' ) end [2025-02-28 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:07:27] Production.INFO: ==1441== Releasing lock... [2025-02-28 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:07:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:08:05 [end_date_ymd] => 2025-02-28 16:08:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:08:05' and `end` < '2025-02-28 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-02-28 16:08:19] Production.INFO: count ==5284 [2025-02-28 16:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:08:05 - End Time 2025-02-28 16:08:05 [2025-02-28 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577572', 'tblTempUsageDetail_20' ) start [2025-02-28 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577572', 'tblTempUsageDetail_20' ) end [2025-02-28 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577572', 'tblTempVendorCDR_20' ) start [2025-02-28 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577572', 'tblTempVendorCDR_20' ) end [2025-02-28 16:08:22] Production.INFO: ProcessCDR(1,14577572,1,1,2) [2025-02-28 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577572', 'tblTempUsageDetail_20' ) start [2025-02-28 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577572', 'tblTempUsageDetail_20' ) end [2025-02-28 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:08:27] Production.INFO: ==1542== Releasing lock... [2025-02-28 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:08:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-28 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:09:06 [end_date_ymd] => 2025-02-28 16:09:06 [RateCDR] => 1 ) [2025-02-28 16:09:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 13:09:06' and `end` < '2025-02-28 16: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-02-28 16:09:19] Production.INFO: count ==5262 [2025-02-28 16:09:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:09:06 - End Time 2025-02-28 16:09:06 [2025-02-28 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577577', 'tblTempUsageDetail_20' ) start [2025-02-28 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577577', 'tblTempUsageDetail_20' ) end [2025-02-28 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577577', 'tblTempVendorCDR_20' ) start [2025-02-28 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577577', 'tblTempVendorCDR_20' ) end [2025-02-28 16:09:21] Production.INFO: ProcessCDR(1,14577577,1,1,2) [2025-02-28 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577577', 'tblTempUsageDetail_20' ) start [2025-02-28 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577577', 'tblTempUsageDetail_20' ) end [2025-02-28 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:09:27] Production.INFO: ==1618== Releasing lock... [2025-02-28 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:09:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:10:07 [end_date_ymd] => 2025-02-28 16:10:07 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:10:07' and `end` < '2025-02-28 16: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-02-28 16:10:20] Production.INFO: count ==5241 [2025-02-28 16:10:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:10:07 - End Time 2025-02-28 16:10:07 [2025-02-28 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577583', 'tblTempUsageDetail_20' ) start [2025-02-28 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577583', 'tblTempUsageDetail_20' ) end [2025-02-28 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577583', 'tblTempVendorCDR_20' ) start [2025-02-28 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577583', 'tblTempVendorCDR_20' ) end [2025-02-28 16:10:22] Production.INFO: ProcessCDR(1,14577583,1,1,2) [2025-02-28 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577583', 'tblTempUsageDetail_20' ) start [2025-02-28 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577583', 'tblTempUsageDetail_20' ) end [2025-02-28 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:10:28] Production.INFO: ==1691== Releasing lock... [2025-02-28 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:10:28] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:11:05 [end_date_ymd] => 2025-02-28 16:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:11:05' and `end` < '2025-02-28 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-02-28 16:11:19] Production.INFO: count ==5243 [2025-02-28 16:11:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:11:05 - End Time 2025-02-28 16:11:05 [2025-02-28 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577588', 'tblTempUsageDetail_20' ) start [2025-02-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577588', 'tblTempUsageDetail_20' ) end [2025-02-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577588', 'tblTempVendorCDR_20' ) start [2025-02-28 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577588', 'tblTempVendorCDR_20' ) end [2025-02-28 16:11:21] Production.INFO: ProcessCDR(1,14577588,1,1,2) [2025-02-28 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577588', 'tblTempUsageDetail_20' ) start [2025-02-28 16:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577588', 'tblTempUsageDetail_20' ) end [2025-02-28 16:11:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:11:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:11:26] Production.INFO: ==1809== Releasing lock... [2025-02-28 16:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:11:26] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:12:05 [end_date_ymd] => 2025-02-28 16:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:12:05' and `end` < '2025-02-28 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-02-28 16:12:18] Production.INFO: count ==5263 [2025-02-28 16:12:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:12:05 - End Time 2025-02-28 16:12:05 [2025-02-28 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577593', 'tblTempUsageDetail_20' ) start [2025-02-28 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577593', 'tblTempUsageDetail_20' ) end [2025-02-28 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577593', 'tblTempVendorCDR_20' ) start [2025-02-28 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577593', 'tblTempVendorCDR_20' ) end [2025-02-28 16:12:21] Production.INFO: ProcessCDR(1,14577593,1,1,2) [2025-02-28 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577593', 'tblTempUsageDetail_20' ) start [2025-02-28 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577593', 'tblTempUsageDetail_20' ) end [2025-02-28 16:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:12:26] Production.INFO: ==1885== Releasing lock... [2025-02-28 16:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:12:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:13:06 [end_date_ymd] => 2025-02-28 16:13:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:13:06' and `end` < '2025-02-28 16: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-02-28 16:13:19] Production.INFO: count ==5261 [2025-02-28 16:13:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:13:06 - End Time 2025-02-28 16:13:06 [2025-02-28 16:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577598', 'tblTempUsageDetail_20' ) start [2025-02-28 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577598', 'tblTempUsageDetail_20' ) end [2025-02-28 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577598', 'tblTempVendorCDR_20' ) start [2025-02-28 16:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577598', 'tblTempVendorCDR_20' ) end [2025-02-28 16:13:22] Production.INFO: ProcessCDR(1,14577598,1,1,2) [2025-02-28 16:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577598', 'tblTempUsageDetail_20' ) start [2025-02-28 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577598', 'tblTempUsageDetail_20' ) end [2025-02-28 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:13:27] Production.INFO: ==1957== Releasing lock... [2025-02-28 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:13:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:14:05 [end_date_ymd] => 2025-02-28 16:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:14:05' and `end` < '2025-02-28 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-02-28 16:14:19] Production.INFO: count ==5266 [2025-02-28 16:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:14:05 - End Time 2025-02-28 16:14:05 [2025-02-28 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577603', 'tblTempUsageDetail_20' ) start [2025-02-28 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577603', 'tblTempUsageDetail_20' ) end [2025-02-28 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577603', 'tblTempVendorCDR_20' ) start [2025-02-28 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577603', 'tblTempVendorCDR_20' ) end [2025-02-28 16:14:21] Production.INFO: ProcessCDR(1,14577603,1,1,2) [2025-02-28 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577603', 'tblTempUsageDetail_20' ) start [2025-02-28 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577603', 'tblTempUsageDetail_20' ) end [2025-02-28 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:14:27] Production.INFO: ==2034== Releasing lock... [2025-02-28 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:14:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-28 16:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:15:06 [end_date_ymd] => 2025-02-28 16:15:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:15:06' and `end` < '2025-02-28 16: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-02-28 16:15:19] Production.INFO: count ==5282 [2025-02-28 16:15:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:15:06 - End Time 2025-02-28 16:15:06 [2025-02-28 16:15:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577608', 'tblTempUsageDetail_20' ) start [2025-02-28 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577608', 'tblTempUsageDetail_20' ) end [2025-02-28 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577608', 'tblTempVendorCDR_20' ) start [2025-02-28 16:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577608', 'tblTempVendorCDR_20' ) end [2025-02-28 16:15:22] Production.INFO: ProcessCDR(1,14577608,1,1,2) [2025-02-28 16:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:15:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:15:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577608', 'tblTempUsageDetail_20' ) start [2025-02-28 16:15:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577608', 'tblTempUsageDetail_20' ) end [2025-02-28 16:15:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:15:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:15:28] Production.INFO: ==2104== Releasing lock... [2025-02-28 16:15:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:15:28] Production.INFO: 67.5 MB #Memory Used# [2025-02-28 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:16:05 [end_date_ymd] => 2025-02-28 16:16:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:16:05' and `end` < '2025-02-28 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-02-28 16:16:18] Production.INFO: count ==5311 [2025-02-28 16:16:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:16:05 - End Time 2025-02-28 16:16:05 [2025-02-28 16:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577613', 'tblTempUsageDetail_20' ) start [2025-02-28 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577613', 'tblTempUsageDetail_20' ) end [2025-02-28 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577613', 'tblTempVendorCDR_20' ) start [2025-02-28 16:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577613', 'tblTempVendorCDR_20' ) end [2025-02-28 16:16:21] Production.INFO: ProcessCDR(1,14577613,1,1,2) [2025-02-28 16:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577613', 'tblTempUsageDetail_20' ) start [2025-02-28 16:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577613', 'tblTempUsageDetail_20' ) end [2025-02-28 16:16:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:16:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:16:26] Production.INFO: ==2175== Releasing lock... [2025-02-28 16:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:16:26] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:17:05 [end_date_ymd] => 2025-02-28 16:17:05 [RateCDR] => 1 ) [2025-02-28 16:17:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 13:17:05' and `end` < '2025-02-28 16:17:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 16:17:19] Production.INFO: count ==5300 [2025-02-28 16:17:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:17:05 - End Time 2025-02-28 16:17:05 [2025-02-28 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577614', 'tblTempUsageDetail_20' ) start [2025-02-28 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577614', 'tblTempUsageDetail_20' ) end [2025-02-28 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577614', 'tblTempVendorCDR_20' ) start [2025-02-28 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577614', 'tblTempVendorCDR_20' ) end [2025-02-28 16:17:21] Production.INFO: ProcessCDR(1,14577614,1,1,2) [2025-02-28 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577614', 'tblTempUsageDetail_20' ) start [2025-02-28 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577614', 'tblTempUsageDetail_20' ) end [2025-02-28 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:17:27] Production.INFO: ==2247== Releasing lock... [2025-02-28 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:17:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:18:05 [end_date_ymd] => 2025-02-28 16:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:18:05' and `end` < '2025-02-28 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-02-28 16:18:18] Production.INFO: count ==5301 [2025-02-28 16:18:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:18:05 - End Time 2025-02-28 16:18:05 [2025-02-28 16:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577623', 'tblTempUsageDetail_20' ) start [2025-02-28 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577623', 'tblTempUsageDetail_20' ) end [2025-02-28 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577623', 'tblTempVendorCDR_20' ) start [2025-02-28 16:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577623', 'tblTempVendorCDR_20' ) end [2025-02-28 16:18:21] Production.INFO: ProcessCDR(1,14577623,1,1,2) [2025-02-28 16:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577623', 'tblTempUsageDetail_20' ) start [2025-02-28 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577623', 'tblTempUsageDetail_20' ) end [2025-02-28 16:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:18:27] Production.INFO: ==2329== Releasing lock... [2025-02-28 16:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:18:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:19:06 [end_date_ymd] => 2025-02-28 16:19:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:19:06' and `end` < '2025-02-28 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-02-28 16:19:19] Production.INFO: count ==5278 [2025-02-28 16:19:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:19:06 - End Time 2025-02-28 16:19:06 [2025-02-28 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577628', 'tblTempUsageDetail_20' ) start [2025-02-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577628', 'tblTempUsageDetail_20' ) end [2025-02-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577628', 'tblTempVendorCDR_20' ) start [2025-02-28 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577628', 'tblTempVendorCDR_20' ) end [2025-02-28 16:19:21] Production.INFO: ProcessCDR(1,14577628,1,1,2) [2025-02-28 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577628', 'tblTempUsageDetail_20' ) start [2025-02-28 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577628', 'tblTempUsageDetail_20' ) end [2025-02-28 16:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:19:27] Production.INFO: ==2402== Releasing lock... [2025-02-28 16:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:19:27] Production.INFO: 67.5 MB #Memory Used# [2025-02-28 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:20:06 [end_date_ymd] => 2025-02-28 16:20:06 [RateCDR] => 1 ) [2025-02-28 16:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 13:20:06' and `end` < '2025-02-28 16:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 16:20:20] Production.INFO: count ==5258 [2025-02-28 16:20:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:20:06 - End Time 2025-02-28 16:20:06 [2025-02-28 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577634', 'tblTempUsageDetail_20' ) start [2025-02-28 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577634', 'tblTempUsageDetail_20' ) end [2025-02-28 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577634', 'tblTempVendorCDR_20' ) start [2025-02-28 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577634', 'tblTempVendorCDR_20' ) end [2025-02-28 16:20:22] Production.INFO: ProcessCDR(1,14577634,1,1,2) [2025-02-28 16:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577634', 'tblTempUsageDetail_20' ) start [2025-02-28 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577634', 'tblTempUsageDetail_20' ) end [2025-02-28 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:20:28] Production.INFO: ==2475== Releasing lock... [2025-02-28 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:20:28] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:21:06 [end_date_ymd] => 2025-02-28 16:21:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:21:06' and `end` < '2025-02-28 16: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-02-28 16:21:19] Production.INFO: count ==5208 [2025-02-28 16:21:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:21:06 - End Time 2025-02-28 16:21:06 [2025-02-28 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577639', 'tblTempUsageDetail_20' ) start [2025-02-28 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577639', 'tblTempUsageDetail_20' ) end [2025-02-28 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577639', 'tblTempVendorCDR_20' ) start [2025-02-28 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577639', 'tblTempVendorCDR_20' ) end [2025-02-28 16:21:22] Production.INFO: ProcessCDR(1,14577639,1,1,2) [2025-02-28 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577639', 'tblTempUsageDetail_20' ) start [2025-02-28 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577639', 'tblTempUsageDetail_20' ) end [2025-02-28 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:21:27] Production.INFO: ==2556== Releasing lock... [2025-02-28 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:21:27] Production.INFO: 67 MB #Memory Used# [2025-02-28 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:22:05 [end_date_ymd] => 2025-02-28 16:22:05 [RateCDR] => 1 ) [2025-02-28 16:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 13:22:05' and `end` < '2025-02-28 16:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 16:22:18] Production.INFO: count ==5179 [2025-02-28 16:22:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:22:05 - End Time 2025-02-28 16:22:05 [2025-02-28 16:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577644', 'tblTempUsageDetail_20' ) start [2025-02-28 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577644', 'tblTempUsageDetail_20' ) end [2025-02-28 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577644', 'tblTempVendorCDR_20' ) start [2025-02-28 16:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577644', 'tblTempVendorCDR_20' ) end [2025-02-28 16:22:21] Production.INFO: ProcessCDR(1,14577644,1,1,2) [2025-02-28 16:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577644', 'tblTempUsageDetail_20' ) start [2025-02-28 16:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577644', 'tblTempUsageDetail_20' ) end [2025-02-28 16:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:22:27] Production.INFO: ==2634== Releasing lock... [2025-02-28 16:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:22:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 16:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:23:05 [end_date_ymd] => 2025-02-28 16:23:05 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:23:05' and `end` < '2025-02-28 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-02-28 16:23:19] Production.INFO: count ==5162 [2025-02-28 16:23:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:23:05 - End Time 2025-02-28 16:23:05 [2025-02-28 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577649', 'tblTempUsageDetail_20' ) start [2025-02-28 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577649', 'tblTempUsageDetail_20' ) end [2025-02-28 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577649', 'tblTempVendorCDR_20' ) start [2025-02-28 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577649', 'tblTempVendorCDR_20' ) end [2025-02-28 16:23:21] Production.INFO: ProcessCDR(1,14577649,1,1,2) [2025-02-28 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577649', 'tblTempUsageDetail_20' ) start [2025-02-28 16:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577649', 'tblTempUsageDetail_20' ) end [2025-02-28 16:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:23:27] Production.INFO: ==2718== Releasing lock... [2025-02-28 16:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:23:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:24:06 [end_date_ymd] => 2025-02-28 16:24:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:24:06' and `end` < '2025-02-28 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-02-28 16:24:19] Production.INFO: count ==5147 [2025-02-28 16:24:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:24:06 - End Time 2025-02-28 16:24:06 [2025-02-28 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577654', 'tblTempUsageDetail_20' ) start [2025-02-28 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577654', 'tblTempUsageDetail_20' ) end [2025-02-28 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577654', 'tblTempVendorCDR_20' ) start [2025-02-28 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577654', 'tblTempVendorCDR_20' ) end [2025-02-28 16:24:21] Production.INFO: ProcessCDR(1,14577654,1,1,2) [2025-02-28 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577654', 'tblTempUsageDetail_20' ) start [2025-02-28 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577654', 'tblTempUsageDetail_20' ) end [2025-02-28 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:24:27] Production.INFO: ==2803== Releasing lock... [2025-02-28 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:24:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:25:05 [end_date_ymd] => 2025-02-28 16:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:25:05' and `end` < '2025-02-28 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-02-28 16:25:18] Production.INFO: count ==5133 [2025-02-28 16:25:20] Production.ERROR: pbx CDR StartTime 2025-02-28 13:25:05 - End Time 2025-02-28 16:25:05 [2025-02-28 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577659', 'tblTempUsageDetail_20' ) start [2025-02-28 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577659', 'tblTempUsageDetail_20' ) end [2025-02-28 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577659', 'tblTempVendorCDR_20' ) start [2025-02-28 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577659', 'tblTempVendorCDR_20' ) end [2025-02-28 16:25:21] Production.INFO: ProcessCDR(1,14577659,1,1,2) [2025-02-28 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577659', 'tblTempUsageDetail_20' ) start [2025-02-28 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577659', 'tblTempUsageDetail_20' ) end [2025-02-28 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:25:27] Production.INFO: ==2886== Releasing lock... [2025-02-28 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:25:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:26:05 [end_date_ymd] => 2025-02-28 16:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:26:05' and `end` < '2025-02-28 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-02-28 16:26:18] Production.INFO: count ==5097 [2025-02-28 16:26:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:26:05 - End Time 2025-02-28 16:26:05 [2025-02-28 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577664', 'tblTempUsageDetail_20' ) start [2025-02-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577664', 'tblTempUsageDetail_20' ) end [2025-02-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577664', 'tblTempVendorCDR_20' ) start [2025-02-28 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577664', 'tblTempVendorCDR_20' ) end [2025-02-28 16:26:21] Production.INFO: ProcessCDR(1,14577664,1,1,2) [2025-02-28 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577664', 'tblTempUsageDetail_20' ) start [2025-02-28 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577664', 'tblTempUsageDetail_20' ) end [2025-02-28 16:26:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:26:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:26:26] Production.INFO: ==3007== Releasing lock... [2025-02-28 16:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:26:26] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:27:05 [end_date_ymd] => 2025-02-28 16:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:27:05' and `end` < '2025-02-28 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-02-28 16:27:18] Production.INFO: count ==5075 [2025-02-28 16:27:20] Production.ERROR: pbx CDR StartTime 2025-02-28 13:27:05 - End Time 2025-02-28 16:27:05 [2025-02-28 16:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577669', 'tblTempUsageDetail_20' ) start [2025-02-28 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577669', 'tblTempUsageDetail_20' ) end [2025-02-28 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577669', 'tblTempVendorCDR_20' ) start [2025-02-28 16:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577669', 'tblTempVendorCDR_20' ) end [2025-02-28 16:27:21] Production.INFO: ProcessCDR(1,14577669,1,1,2) [2025-02-28 16:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577669,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577669,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577669', 'tblTempUsageDetail_20' ) start [2025-02-28 16:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577669', 'tblTempUsageDetail_20' ) end [2025-02-28 16:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:27:26] Production.INFO: ==3089== Releasing lock... [2025-02-28 16:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:27:26] Production.INFO: 66 MB #Memory Used# [2025-02-28 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:28:06 [end_date_ymd] => 2025-02-28 16:28:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:28:06' and `end` < '2025-02-28 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-02-28 16:28:19] Production.INFO: count ==5087 [2025-02-28 16:28:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:28:06 - End Time 2025-02-28 16:28:06 [2025-02-28 16:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577674', 'tblTempUsageDetail_20' ) start [2025-02-28 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577674', 'tblTempUsageDetail_20' ) end [2025-02-28 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577674', 'tblTempVendorCDR_20' ) start [2025-02-28 16:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577674', 'tblTempVendorCDR_20' ) end [2025-02-28 16:28:21] Production.INFO: ProcessCDR(1,14577674,1,1,2) [2025-02-28 16:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577674,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577674,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577674', 'tblTempUsageDetail_20' ) start [2025-02-28 16:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577674', 'tblTempUsageDetail_20' ) end [2025-02-28 16:28:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:28:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:28:27] Production.INFO: ==3173== Releasing lock... [2025-02-28 16:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:28:27] Production.INFO: 66 MB #Memory Used# [2025-02-28 16:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:29:06 [end_date_ymd] => 2025-02-28 16:29:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:29:06' and `end` < '2025-02-28 16: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-02-28 16:29:19] Production.INFO: count ==5116 [2025-02-28 16:29:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:29:06 - End Time 2025-02-28 16:29:06 [2025-02-28 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577679', 'tblTempUsageDetail_20' ) start [2025-02-28 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577679', 'tblTempUsageDetail_20' ) end [2025-02-28 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577679', 'tblTempVendorCDR_20' ) start [2025-02-28 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577679', 'tblTempVendorCDR_20' ) end [2025-02-28 16:29:21] Production.INFO: ProcessCDR(1,14577679,1,1,2) [2025-02-28 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577679', 'tblTempUsageDetail_20' ) start [2025-02-28 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577679', 'tblTempUsageDetail_20' ) end [2025-02-28 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:29:27] Production.INFO: ==3254== Releasing lock... [2025-02-28 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:29:27] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:30:07 [end_date_ymd] => 2025-02-28 16:30:07 [RateCDR] => 1 ) [2025-02-28 16:30: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-02-28 13:30:07' and `end` < '2025-02-28 16:30: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-02-28 16:30:20] Production.INFO: count ==5092 [2025-02-28 16:30:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:30:07 - End Time 2025-02-28 16:30:07 [2025-02-28 16:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577684', 'tblTempUsageDetail_20' ) start [2025-02-28 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577684', 'tblTempUsageDetail_20' ) end [2025-02-28 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577684', 'tblTempVendorCDR_20' ) start [2025-02-28 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577684', 'tblTempVendorCDR_20' ) end [2025-02-28 16:30:23] Production.INFO: ProcessCDR(1,14577684,1,1,2) [2025-02-28 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577684', 'tblTempUsageDetail_20' ) start [2025-02-28 16:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577684', 'tblTempUsageDetail_20' ) end [2025-02-28 16:30:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:30:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:30:28] Production.INFO: ==3337== Releasing lock... [2025-02-28 16:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:30:28] Production.INFO: 66 MB #Memory Used# [2025-02-28 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:31:06 [end_date_ymd] => 2025-02-28 16:31:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:31:06' and `end` < '2025-02-28 16: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-02-28 16:31:19] Production.INFO: count ==5128 [2025-02-28 16:31:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:31:06 - End Time 2025-02-28 16:31:06 [2025-02-28 16:31:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577690', 'tblTempUsageDetail_20' ) start [2025-02-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577690', 'tblTempUsageDetail_20' ) end [2025-02-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577690', 'tblTempVendorCDR_20' ) start [2025-02-28 16:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577690', 'tblTempVendorCDR_20' ) end [2025-02-28 16:31:22] Production.INFO: ProcessCDR(1,14577690,1,1,2) [2025-02-28 16:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:31:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:31:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577690', 'tblTempUsageDetail_20' ) start [2025-02-28 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577690', 'tblTempUsageDetail_20' ) end [2025-02-28 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:31:27] Production.INFO: ==3419== Releasing lock... [2025-02-28 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:31:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:32:06 [end_date_ymd] => 2025-02-28 16:32:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:32:06' and `end` < '2025-02-28 16: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-02-28 16:32:19] Production.INFO: count ==5129 [2025-02-28 16:32:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:32:06 - End Time 2025-02-28 16:32:06 [2025-02-28 16:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577695', 'tblTempUsageDetail_20' ) start [2025-02-28 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577695', 'tblTempUsageDetail_20' ) end [2025-02-28 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577695', 'tblTempVendorCDR_20' ) start [2025-02-28 16:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577695', 'tblTempVendorCDR_20' ) end [2025-02-28 16:32:21] Production.INFO: ProcessCDR(1,14577695,1,1,2) [2025-02-28 16:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577695', 'tblTempUsageDetail_20' ) start [2025-02-28 16:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577695', 'tblTempUsageDetail_20' ) end [2025-02-28 16:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:32:27] Production.INFO: ==3501== Releasing lock... [2025-02-28 16:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:32:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 16:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:33:06 [end_date_ymd] => 2025-02-28 16:33:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:33:06' and `end` < '2025-02-28 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-02-28 16:33:19] Production.INFO: count ==5143 [2025-02-28 16:33:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:33:06 - End Time 2025-02-28 16:33:06 [2025-02-28 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577700', 'tblTempUsageDetail_20' ) start [2025-02-28 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577700', 'tblTempUsageDetail_20' ) end [2025-02-28 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577700', 'tblTempVendorCDR_20' ) start [2025-02-28 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577700', 'tblTempVendorCDR_20' ) end [2025-02-28 16:33:22] Production.INFO: ProcessCDR(1,14577700,1,1,2) [2025-02-28 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577700', 'tblTempUsageDetail_20' ) start [2025-02-28 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577700', 'tblTempUsageDetail_20' ) end [2025-02-28 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:33:27] Production.INFO: ==3584== Releasing lock... [2025-02-28 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:33:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 16:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:34:06 [end_date_ymd] => 2025-02-28 16:34:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:34:06' and `end` < '2025-02-28 16: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-02-28 16:34:19] Production.INFO: count ==5150 [2025-02-28 16:34:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:34:06 - End Time 2025-02-28 16:34:06 [2025-02-28 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577705', 'tblTempUsageDetail_20' ) start [2025-02-28 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577705', 'tblTempUsageDetail_20' ) end [2025-02-28 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577705', 'tblTempVendorCDR_20' ) start [2025-02-28 16:34:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577705', 'tblTempVendorCDR_20' ) end [2025-02-28 16:34:22] Production.INFO: ProcessCDR(1,14577705,1,1,2) [2025-02-28 16:34:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577705', 'tblTempUsageDetail_20' ) start [2025-02-28 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577705', 'tblTempUsageDetail_20' ) end [2025-02-28 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:34:27] Production.INFO: ==3673== Releasing lock... [2025-02-28 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:34:27] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:35:05 [end_date_ymd] => 2025-02-28 16:35:05 [RateCDR] => 1 ) [2025-02-28 16:35:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 13:35:05' and `end` < '2025-02-28 16:35:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 16:35:19] Production.INFO: count ==5161 [2025-02-28 16:35:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:35:05 - End Time 2025-02-28 16:35:05 [2025-02-28 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577710', 'tblTempUsageDetail_20' ) start [2025-02-28 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577710', 'tblTempUsageDetail_20' ) end [2025-02-28 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577710', 'tblTempVendorCDR_20' ) start [2025-02-28 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577710', 'tblTempVendorCDR_20' ) end [2025-02-28 16:35:21] Production.INFO: ProcessCDR(1,14577710,1,1,2) [2025-02-28 16:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577710', 'tblTempUsageDetail_20' ) start [2025-02-28 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577710', 'tblTempUsageDetail_20' ) end [2025-02-28 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:35:27] Production.INFO: ==3752== Releasing lock... [2025-02-28 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:35:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 16:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:36:06 [end_date_ymd] => 2025-02-28 16:36:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:36:06' and `end` < '2025-02-28 16: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-02-28 16:36:19] Production.INFO: count ==5175 [2025-02-28 16:36:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:36:06 - End Time 2025-02-28 16:36:06 [2025-02-28 16:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577715', 'tblTempUsageDetail_20' ) start [2025-02-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577715', 'tblTempUsageDetail_20' ) end [2025-02-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577715', 'tblTempVendorCDR_20' ) start [2025-02-28 16:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577715', 'tblTempVendorCDR_20' ) end [2025-02-28 16:36:22] Production.INFO: ProcessCDR(1,14577715,1,1,2) [2025-02-28 16:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:36:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:36:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577715', 'tblTempUsageDetail_20' ) start [2025-02-28 16:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577715', 'tblTempUsageDetail_20' ) end [2025-02-28 16:36:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:36:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:36:27] Production.INFO: ==3837== Releasing lock... [2025-02-28 16:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:36:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 16:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:37:06 [end_date_ymd] => 2025-02-28 16:37:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:37:06' and `end` < '2025-02-28 16: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-02-28 16:37:19] Production.INFO: count ==5194 [2025-02-28 16:37:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:37:06 - End Time 2025-02-28 16:37:06 [2025-02-28 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577720', 'tblTempUsageDetail_20' ) start [2025-02-28 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577720', 'tblTempUsageDetail_20' ) end [2025-02-28 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577720', 'tblTempVendorCDR_20' ) start [2025-02-28 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577720', 'tblTempVendorCDR_20' ) end [2025-02-28 16:37:21] Production.INFO: ProcessCDR(1,14577720,1,1,2) [2025-02-28 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577720', 'tblTempUsageDetail_20' ) start [2025-02-28 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577720', 'tblTempUsageDetail_20' ) end [2025-02-28 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:37:27] Production.INFO: ==3919== Releasing lock... [2025-02-28 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:37:27] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:38:06 [end_date_ymd] => 2025-02-28 16:38:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:38:06' and `end` < '2025-02-28 16: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-02-28 16:38:19] Production.INFO: count ==5216 [2025-02-28 16:38:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:38:06 - End Time 2025-02-28 16:38:06 [2025-02-28 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577725', 'tblTempUsageDetail_20' ) start [2025-02-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577725', 'tblTempUsageDetail_20' ) end [2025-02-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577725', 'tblTempVendorCDR_20' ) start [2025-02-28 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577725', 'tblTempVendorCDR_20' ) end [2025-02-28 16:38:22] Production.INFO: ProcessCDR(1,14577725,1,1,2) [2025-02-28 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577725', 'tblTempUsageDetail_20' ) start [2025-02-28 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577725', 'tblTempUsageDetail_20' ) end [2025-02-28 16:38:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:38:28] Production.INFO: ==4002== Releasing lock... [2025-02-28 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:38:28] Production.INFO: 67 MB #Memory Used# [2025-02-28 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:39:05 [end_date_ymd] => 2025-02-28 16:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:39:05' and `end` < '2025-02-28 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-02-28 16:39:18] Production.INFO: count ==5221 [2025-02-28 16:39:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:39:05 - End Time 2025-02-28 16:39:05 [2025-02-28 16:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577730', 'tblTempUsageDetail_20' ) start [2025-02-28 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577730', 'tblTempUsageDetail_20' ) end [2025-02-28 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577730', 'tblTempVendorCDR_20' ) start [2025-02-28 16:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577730', 'tblTempVendorCDR_20' ) end [2025-02-28 16:39:21] Production.INFO: ProcessCDR(1,14577730,1,1,2) [2025-02-28 16:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577730', 'tblTempUsageDetail_20' ) start [2025-02-28 16:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577730', 'tblTempUsageDetail_20' ) end [2025-02-28 16:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:39:25] Production.INFO: ==4083== Releasing lock... [2025-02-28 16:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:39:25] Production.INFO: 67 MB #Memory Used# [2025-02-28 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:40:06 [end_date_ymd] => 2025-02-28 16:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:40:06' and `end` < '2025-02-28 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-02-28 16:40:20] Production.INFO: count ==5234 [2025-02-28 16:40:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:40:06 - End Time 2025-02-28 16:40:06 [2025-02-28 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577736', 'tblTempUsageDetail_20' ) start [2025-02-28 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577736', 'tblTempUsageDetail_20' ) end [2025-02-28 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577736', 'tblTempVendorCDR_20' ) start [2025-02-28 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577736', 'tblTempVendorCDR_20' ) end [2025-02-28 16:40:22] Production.INFO: ProcessCDR(1,14577736,1,1,2) [2025-02-28 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577736', 'tblTempUsageDetail_20' ) start [2025-02-28 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577736', 'tblTempUsageDetail_20' ) end [2025-02-28 16:40:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:40:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:40:27] Production.INFO: ==4169== Releasing lock... [2025-02-28 16:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:40:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:41:05 [end_date_ymd] => 2025-02-28 16:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:41:05' and `end` < '2025-02-28 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-02-28 16:41:18] Production.INFO: count ==5221 [2025-02-28 16:41:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:41:05 - End Time 2025-02-28 16:41:05 [2025-02-28 16:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577741', 'tblTempUsageDetail_20' ) start [2025-02-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577741', 'tblTempUsageDetail_20' ) end [2025-02-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577741', 'tblTempVendorCDR_20' ) start [2025-02-28 16:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577741', 'tblTempVendorCDR_20' ) end [2025-02-28 16:41:21] Production.INFO: ProcessCDR(1,14577741,1,1,2) [2025-02-28 16:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577741', 'tblTempUsageDetail_20' ) start [2025-02-28 16:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577741', 'tblTempUsageDetail_20' ) end [2025-02-28 16:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:41:26] Production.INFO: ==4293== Releasing lock... [2025-02-28 16:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:41:26] Production.INFO: 67 MB #Memory Used# [2025-02-28 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:42:06 [end_date_ymd] => 2025-02-28 16:42:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:42:06' and `end` < '2025-02-28 16: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-02-28 16:42:19] Production.INFO: count ==5240 [2025-02-28 16:42:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:42:06 - End Time 2025-02-28 16:42:06 [2025-02-28 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577746', 'tblTempUsageDetail_20' ) start [2025-02-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577746', 'tblTempUsageDetail_20' ) end [2025-02-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577746', 'tblTempVendorCDR_20' ) start [2025-02-28 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577746', 'tblTempVendorCDR_20' ) end [2025-02-28 16:42:22] Production.INFO: ProcessCDR(1,14577746,1,1,2) [2025-02-28 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577746', 'tblTempUsageDetail_20' ) start [2025-02-28 16:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577746', 'tblTempUsageDetail_20' ) end [2025-02-28 16:42:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:42:28] Production.INFO: ==4373== Releasing lock... [2025-02-28 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:42:28] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:43:06 [end_date_ymd] => 2025-02-28 16:43:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:43:06' and `end` < '2025-02-28 16: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-02-28 16:43:19] Production.INFO: count ==5243 [2025-02-28 16:43:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:43:06 - End Time 2025-02-28 16:43:06 [2025-02-28 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577751', 'tblTempUsageDetail_20' ) start [2025-02-28 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577751', 'tblTempUsageDetail_20' ) end [2025-02-28 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577751', 'tblTempVendorCDR_20' ) start [2025-02-28 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577751', 'tblTempVendorCDR_20' ) end [2025-02-28 16:43:22] Production.INFO: ProcessCDR(1,14577751,1,1,2) [2025-02-28 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577751', 'tblTempUsageDetail_20' ) start [2025-02-28 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577751', 'tblTempUsageDetail_20' ) end [2025-02-28 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:43:27] Production.INFO: ==4453== Releasing lock... [2025-02-28 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:43:27] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:44:06 [end_date_ymd] => 2025-02-28 16:44:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:44:06' and `end` < '2025-02-28 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-02-28 16:44:19] Production.INFO: count ==5409 [2025-02-28 16:44:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:44:06 - End Time 2025-02-28 16:44:06 [2025-02-28 16:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577756', 'tblTempUsageDetail_20' ) start [2025-02-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577756', 'tblTempUsageDetail_20' ) end [2025-02-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577756', 'tblTempVendorCDR_20' ) start [2025-02-28 16:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577756', 'tblTempVendorCDR_20' ) end [2025-02-28 16:44:22] Production.INFO: ProcessCDR(1,14577756,1,1,2) [2025-02-28 16:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577756', 'tblTempUsageDetail_20' ) start [2025-02-28 16:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577756', 'tblTempUsageDetail_20' ) end [2025-02-28 16:44:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:44:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:44:28] Production.INFO: ==4535== Releasing lock... [2025-02-28 16:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:44:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:45:06 [end_date_ymd] => 2025-02-28 16:45:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:45:06' and `end` < '2025-02-28 16: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-02-28 16:45:19] Production.INFO: count ==5446 [2025-02-28 16:45:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:45:06 - End Time 2025-02-28 16:45:06 [2025-02-28 16:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577761', 'tblTempUsageDetail_20' ) start [2025-02-28 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577761', 'tblTempUsageDetail_20' ) end [2025-02-28 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577761', 'tblTempVendorCDR_20' ) start [2025-02-28 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577761', 'tblTempVendorCDR_20' ) end [2025-02-28 16:45:22] Production.INFO: ProcessCDR(1,14577761,1,1,2) [2025-02-28 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:45:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577761', 'tblTempUsageDetail_20' ) start [2025-02-28 16:45:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577761', 'tblTempUsageDetail_20' ) end [2025-02-28 16:45:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:45:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:45:28] Production.INFO: ==4627== Releasing lock... [2025-02-28 16:45:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:45:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:46:06 [end_date_ymd] => 2025-02-28 16:46:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:46:06' and `end` < '2025-02-28 16: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-02-28 16:46:19] Production.INFO: count ==5452 [2025-02-28 16:46:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:46:06 - End Time 2025-02-28 16:46:06 [2025-02-28 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577766', 'tblTempUsageDetail_20' ) start [2025-02-28 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577766', 'tblTempUsageDetail_20' ) end [2025-02-28 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577766', 'tblTempVendorCDR_20' ) start [2025-02-28 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577766', 'tblTempVendorCDR_20' ) end [2025-02-28 16:46:22] Production.INFO: ProcessCDR(1,14577766,1,1,2) [2025-02-28 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577766', 'tblTempUsageDetail_20' ) start [2025-02-28 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577766', 'tblTempUsageDetail_20' ) end [2025-02-28 16:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:46:28] Production.INFO: ==4710== Releasing lock... [2025-02-28 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:46:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:47:06 [end_date_ymd] => 2025-02-28 16:47:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:47:06' and `end` < '2025-02-28 16: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-02-28 16:47:19] Production.INFO: count ==5439 [2025-02-28 16:47:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:47:06 - End Time 2025-02-28 16:47:06 [2025-02-28 16:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577771', 'tblTempUsageDetail_20' ) start [2025-02-28 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577771', 'tblTempUsageDetail_20' ) end [2025-02-28 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577771', 'tblTempVendorCDR_20' ) start [2025-02-28 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577771', 'tblTempVendorCDR_20' ) end [2025-02-28 16:47:22] Production.INFO: ProcessCDR(1,14577771,1,1,2) [2025-02-28 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577771', 'tblTempUsageDetail_20' ) start [2025-02-28 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577771', 'tblTempUsageDetail_20' ) end [2025-02-28 16:47:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:47:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:47:27] Production.INFO: ==4791== Releasing lock... [2025-02-28 16:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:47:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:48:06 [end_date_ymd] => 2025-02-28 16:48:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:48:06' and `end` < '2025-02-28 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-02-28 16:48:19] Production.INFO: count ==5444 [2025-02-28 16:48:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:48:06 - End Time 2025-02-28 16:48:06 [2025-02-28 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577776', 'tblTempUsageDetail_20' ) start [2025-02-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577776', 'tblTempUsageDetail_20' ) end [2025-02-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577776', 'tblTempVendorCDR_20' ) start [2025-02-28 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577776', 'tblTempVendorCDR_20' ) end [2025-02-28 16:48:22] Production.INFO: ProcessCDR(1,14577776,1,1,2) [2025-02-28 16:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577776', 'tblTempUsageDetail_20' ) start [2025-02-28 16:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577776', 'tblTempUsageDetail_20' ) end [2025-02-28 16:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:48:27] Production.INFO: ==4876== Releasing lock... [2025-02-28 16:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:48:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:49:06 [end_date_ymd] => 2025-02-28 16:49:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:49:06' and `end` < '2025-02-28 16: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-02-28 16:49:19] Production.INFO: count ==5430 [2025-02-28 16:49:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:49:06 - End Time 2025-02-28 16:49:06 [2025-02-28 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577781', 'tblTempUsageDetail_20' ) start [2025-02-28 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577781', 'tblTempUsageDetail_20' ) end [2025-02-28 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577781', 'tblTempVendorCDR_20' ) start [2025-02-28 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577781', 'tblTempVendorCDR_20' ) end [2025-02-28 16:49:22] Production.INFO: ProcessCDR(1,14577781,1,1,2) [2025-02-28 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577781', 'tblTempUsageDetail_20' ) start [2025-02-28 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577781', 'tblTempUsageDetail_20' ) end [2025-02-28 16:49:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:49:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:49:27] Production.INFO: ==4960== Releasing lock... [2025-02-28 16:49:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:49:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 16:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:50:07 [end_date_ymd] => 2025-02-28 16:50:07 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:50:07' and `end` < '2025-02-28 16: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-02-28 16:50:20] Production.INFO: count ==5407 [2025-02-28 16:50:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:50:07 - End Time 2025-02-28 16:50:07 [2025-02-28 16:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577787', 'tblTempUsageDetail_20' ) start [2025-02-28 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577787', 'tblTempUsageDetail_20' ) end [2025-02-28 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577787', 'tblTempVendorCDR_20' ) start [2025-02-28 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577787', 'tblTempVendorCDR_20' ) end [2025-02-28 16:50:22] Production.INFO: ProcessCDR(1,14577787,1,1,2) [2025-02-28 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577787', 'tblTempUsageDetail_20' ) start [2025-02-28 16:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577787', 'tblTempUsageDetail_20' ) end [2025-02-28 16:50:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:50:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:50:28] Production.INFO: ==5045== Releasing lock... [2025-02-28 16:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:50:28] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:51:06 [end_date_ymd] => 2025-02-28 16:51:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:51:06' and `end` < '2025-02-28 16: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-02-28 16:51:19] Production.INFO: count ==5427 [2025-02-28 16:51:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:51:06 - End Time 2025-02-28 16:51:06 [2025-02-28 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577792', 'tblTempUsageDetail_20' ) start [2025-02-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577792', 'tblTempUsageDetail_20' ) end [2025-02-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577792', 'tblTempVendorCDR_20' ) start [2025-02-28 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577792', 'tblTempVendorCDR_20' ) end [2025-02-28 16:51:21] Production.INFO: ProcessCDR(1,14577792,1,1,2) [2025-02-28 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577792', 'tblTempUsageDetail_20' ) start [2025-02-28 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577792', 'tblTempUsageDetail_20' ) end [2025-02-28 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:51:27] Production.INFO: ==5128== Releasing lock... [2025-02-28 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:51:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:52:06 [end_date_ymd] => 2025-02-28 16:52:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:52:06' and `end` < '2025-02-28 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-02-28 16:52:19] Production.INFO: count ==5408 [2025-02-28 16:52:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:52:06 - End Time 2025-02-28 16:52:06 [2025-02-28 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577797', 'tblTempUsageDetail_20' ) start [2025-02-28 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577797', 'tblTempUsageDetail_20' ) end [2025-02-28 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577797', 'tblTempVendorCDR_20' ) start [2025-02-28 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577797', 'tblTempVendorCDR_20' ) end [2025-02-28 16:52:21] Production.INFO: ProcessCDR(1,14577797,1,1,2) [2025-02-28 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577797', 'tblTempUsageDetail_20' ) start [2025-02-28 16:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577797', 'tblTempUsageDetail_20' ) end [2025-02-28 16:52:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:52:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:52:25] Production.INFO: ==5211== Releasing lock... [2025-02-28 16:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:52:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 16:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:53:06 [end_date_ymd] => 2025-02-28 16:53:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:53:06' and `end` < '2025-02-28 16: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-02-28 16:53:19] Production.INFO: count ==5418 [2025-02-28 16:53:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:53:06 - End Time 2025-02-28 16:53:06 [2025-02-28 16:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577802', 'tblTempUsageDetail_20' ) start [2025-02-28 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577802', 'tblTempUsageDetail_20' ) end [2025-02-28 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577802', 'tblTempVendorCDR_20' ) start [2025-02-28 16:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577802', 'tblTempVendorCDR_20' ) end [2025-02-28 16:53:22] Production.INFO: ProcessCDR(1,14577802,1,1,2) [2025-02-28 16:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:53:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:53:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577802', 'tblTempUsageDetail_20' ) start [2025-02-28 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577802', 'tblTempUsageDetail_20' ) end [2025-02-28 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:53:27] Production.INFO: ==5296== Releasing lock... [2025-02-28 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:53:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:54:06 [end_date_ymd] => 2025-02-28 16:54:06 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:54:06' and `end` < '2025-02-28 16: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-02-28 16:54:20] Production.INFO: count ==5448 [2025-02-28 16:54:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:54:06 - End Time 2025-02-28 16:54:06 [2025-02-28 16:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577807', 'tblTempUsageDetail_20' ) start [2025-02-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577807', 'tblTempUsageDetail_20' ) end [2025-02-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577807', 'tblTempVendorCDR_20' ) start [2025-02-28 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577807', 'tblTempVendorCDR_20' ) end [2025-02-28 16:54:22] Production.INFO: ProcessCDR(1,14577807,1,1,2) [2025-02-28 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:54:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:54:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577807', 'tblTempUsageDetail_20' ) start [2025-02-28 16:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577807', 'tblTempUsageDetail_20' ) end [2025-02-28 16:54:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:54:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:54:28] Production.INFO: ==5379== Releasing lock... [2025-02-28 16:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:54:28] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:55:06 [end_date_ymd] => 2025-02-28 16:55:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:55:06' and `end` < '2025-02-28 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-02-28 16:55:19] Production.INFO: count ==5469 [2025-02-28 16:55:22] Production.ERROR: pbx CDR StartTime 2025-02-28 13:55:06 - End Time 2025-02-28 16:55:06 [2025-02-28 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577812', 'tblTempUsageDetail_20' ) start [2025-02-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577812', 'tblTempUsageDetail_20' ) end [2025-02-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577812', 'tblTempVendorCDR_20' ) start [2025-02-28 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577812', 'tblTempVendorCDR_20' ) end [2025-02-28 16:55:22] Production.INFO: ProcessCDR(1,14577812,1,1,2) [2025-02-28 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577812', 'tblTempUsageDetail_20' ) start [2025-02-28 16:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577812', 'tblTempUsageDetail_20' ) end [2025-02-28 16:55:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:55:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:55:28] Production.INFO: ==5459== Releasing lock... [2025-02-28 16:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:55:28] Production.INFO: 69 MB #Memory Used# [2025-02-28 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:56:05 [end_date_ymd] => 2025-02-28 16:56:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:56:05' and `end` < '2025-02-28 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-02-28 16:56:19] Production.INFO: count ==5472 [2025-02-28 16:56:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:56:05 - End Time 2025-02-28 16:56:05 [2025-02-28 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577817', 'tblTempUsageDetail_20' ) start [2025-02-28 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577817', 'tblTempUsageDetail_20' ) end [2025-02-28 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577817', 'tblTempVendorCDR_20' ) start [2025-02-28 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577817', 'tblTempVendorCDR_20' ) end [2025-02-28 16:56:21] Production.INFO: ProcessCDR(1,14577817,1,1,2) [2025-02-28 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577817', 'tblTempUsageDetail_20' ) start [2025-02-28 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577817', 'tblTempUsageDetail_20' ) end [2025-02-28 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:56:27] Production.INFO: ==5540== Releasing lock... [2025-02-28 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:56:27] Production.INFO: 69 MB #Memory Used# [2025-02-28 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:57:05 [end_date_ymd] => 2025-02-28 16:57:05 [RateCDR] => 1 ) [2025-02-28 16: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-02-28 13:57:05' and `end` < '2025-02-28 16: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-02-28 16:57:19] Production.INFO: count ==5470 [2025-02-28 16:57:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:57:05 - End Time 2025-02-28 16:57:05 [2025-02-28 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577822', 'tblTempUsageDetail_20' ) start [2025-02-28 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577822', 'tblTempUsageDetail_20' ) end [2025-02-28 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577822', 'tblTempVendorCDR_20' ) start [2025-02-28 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577822', 'tblTempVendorCDR_20' ) end [2025-02-28 16:57:21] Production.INFO: ProcessCDR(1,14577822,1,1,2) [2025-02-28 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577822', 'tblTempUsageDetail_20' ) start [2025-02-28 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577822', 'tblTempUsageDetail_20' ) end [2025-02-28 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:57:27] Production.INFO: ==5659== Releasing lock... [2025-02-28 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:57:27] Production.INFO: 69 MB #Memory Used# [2025-02-28 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:58:05 [end_date_ymd] => 2025-02-28 16:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 13:58:05' and `end` < '2025-02-28 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-02-28 16:58:18] Production.INFO: count ==5548 [2025-02-28 16:58:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:58:05 - End Time 2025-02-28 16:58:05 [2025-02-28 16:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577827', 'tblTempUsageDetail_20' ) start [2025-02-28 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577827', 'tblTempUsageDetail_20' ) end [2025-02-28 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577827', 'tblTempVendorCDR_20' ) start [2025-02-28 16:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577827', 'tblTempVendorCDR_20' ) end [2025-02-28 16:58:21] Production.INFO: ProcessCDR(1,14577827,1,1,2) [2025-02-28 16:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:58:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577827', 'tblTempUsageDetail_20' ) start [2025-02-28 16:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577827', 'tblTempUsageDetail_20' ) end [2025-02-28 16:58:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:58:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:58:27] Production.INFO: ==5744== Releasing lock... [2025-02-28 16:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:58:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 13:59:05 [end_date_ymd] => 2025-02-28 16:59:05 [RateCDR] => 1 ) [2025-02-28 16:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 13:59:05' and `end` < '2025-02-28 16:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 16:59:18] Production.INFO: count ==5562 [2025-02-28 16:59:21] Production.ERROR: pbx CDR StartTime 2025-02-28 13:59:05 - End Time 2025-02-28 16:59:05 [2025-02-28 16:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577832', 'tblTempUsageDetail_20' ) start [2025-02-28 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577832', 'tblTempUsageDetail_20' ) end [2025-02-28 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577832', 'tblTempVendorCDR_20' ) start [2025-02-28 16:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577832', 'tblTempVendorCDR_20' ) end [2025-02-28 16:59:21] Production.INFO: ProcessCDR(1,14577832,1,1,2) [2025-02-28 16:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 16:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 16:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577832', 'tblTempUsageDetail_20' ) start [2025-02-28 16:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577832', 'tblTempUsageDetail_20' ) end [2025-02-28 16:59:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 16:59:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 16:59:27] Production.INFO: ==5827== Releasing lock... [2025-02-28 16:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 16:59:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:00:06 [end_date_ymd] => 2025-02-28 17:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:00:06' and `end` < '2025-02-28 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-02-28 17:00:19] Production.INFO: count ==5563 [2025-02-28 17:00:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:00:06 - End Time 2025-02-28 17:00:06 [2025-02-28 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577837', 'tblTempUsageDetail_20' ) start [2025-02-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577837', 'tblTempUsageDetail_20' ) end [2025-02-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577837', 'tblTempVendorCDR_20' ) start [2025-02-28 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577837', 'tblTempVendorCDR_20' ) end [2025-02-28 17:00:22] Production.INFO: ProcessCDR(1,14577837,1,1,2) [2025-02-28 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577837', 'tblTempUsageDetail_20' ) start [2025-02-28 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577837', 'tblTempUsageDetail_20' ) end [2025-02-28 17:00:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:00:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:00:27] Production.INFO: ==5913== Releasing lock... [2025-02-28 17:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:00:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:01:06 [end_date_ymd] => 2025-02-28 17:01:06 [RateCDR] => 1 ) [2025-02-28 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:01:06' and `end` < '2025-02-28 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:01:19] Production.INFO: count ==5573 [2025-02-28 17:01:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:01:06 - End Time 2025-02-28 17:01:06 [2025-02-28 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577843', 'tblTempUsageDetail_20' ) start [2025-02-28 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577843', 'tblTempUsageDetail_20' ) end [2025-02-28 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577843', 'tblTempVendorCDR_20' ) start [2025-02-28 17:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577843', 'tblTempVendorCDR_20' ) end [2025-02-28 17:01:22] Production.INFO: ProcessCDR(1,14577843,1,1,2) [2025-02-28 17:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577843', 'tblTempUsageDetail_20' ) start [2025-02-28 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577843', 'tblTempUsageDetail_20' ) end [2025-02-28 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:01:27] Production.INFO: ==6008== Releasing lock... [2025-02-28 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:01:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:02:06 [end_date_ymd] => 2025-02-28 17:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:02:06' and `end` < '2025-02-28 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-02-28 17:02:19] Production.INFO: count ==5587 [2025-02-28 17:02:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:02:06 - End Time 2025-02-28 17:02:06 [2025-02-28 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577848', 'tblTempUsageDetail_20' ) start [2025-02-28 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577848', 'tblTempUsageDetail_20' ) end [2025-02-28 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577848', 'tblTempVendorCDR_20' ) start [2025-02-28 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577848', 'tblTempVendorCDR_20' ) end [2025-02-28 17:02:22] Production.INFO: ProcessCDR(1,14577848,1,1,2) [2025-02-28 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577848', 'tblTempUsageDetail_20' ) start [2025-02-28 17:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577848', 'tblTempUsageDetail_20' ) end [2025-02-28 17:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:02:27] Production.INFO: ==6095== Releasing lock... [2025-02-28 17:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:02:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:03:05 [end_date_ymd] => 2025-02-28 17:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:03:05' and `end` < '2025-02-28 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-02-28 17:03:19] Production.INFO: count ==5600 [2025-02-28 17:03:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:03:05 - End Time 2025-02-28 17:03:05 [2025-02-28 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577853', 'tblTempUsageDetail_20' ) start [2025-02-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577853', 'tblTempUsageDetail_20' ) end [2025-02-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577853', 'tblTempVendorCDR_20' ) start [2025-02-28 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577853', 'tblTempVendorCDR_20' ) end [2025-02-28 17:03:21] Production.INFO: ProcessCDR(1,14577853,1,1,2) [2025-02-28 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577853', 'tblTempUsageDetail_20' ) start [2025-02-28 17:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577853', 'tblTempUsageDetail_20' ) end [2025-02-28 17:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:03:27] Production.INFO: ==6175== Releasing lock... [2025-02-28 17:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:03:27] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:04:06 [end_date_ymd] => 2025-02-28 17:04:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:04:06' and `end` < '2025-02-28 17: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-02-28 17:04:19] Production.INFO: count ==5602 [2025-02-28 17:04:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:04:06 - End Time 2025-02-28 17:04:06 [2025-02-28 17:04:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577858', 'tblTempUsageDetail_20' ) start [2025-02-28 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577858', 'tblTempUsageDetail_20' ) end [2025-02-28 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577858', 'tblTempVendorCDR_20' ) start [2025-02-28 17:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577858', 'tblTempVendorCDR_20' ) end [2025-02-28 17:04:22] Production.INFO: ProcessCDR(1,14577858,1,1,2) [2025-02-28 17:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577858,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577858,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577858', 'tblTempUsageDetail_20' ) start [2025-02-28 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577858', 'tblTempUsageDetail_20' ) end [2025-02-28 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:04:27] Production.INFO: ==6259== Releasing lock... [2025-02-28 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:04:27] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:05:05 [end_date_ymd] => 2025-02-28 17:05:05 [RateCDR] => 1 ) [2025-02-28 17:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:05:05' and `end` < '2025-02-28 17:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:05:19] Production.INFO: count ==5601 [2025-02-28 17:05:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:05:05 - End Time 2025-02-28 17:05:05 [2025-02-28 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577863', 'tblTempUsageDetail_20' ) start [2025-02-28 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577863', 'tblTempUsageDetail_20' ) end [2025-02-28 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577863', 'tblTempVendorCDR_20' ) start [2025-02-28 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577863', 'tblTempVendorCDR_20' ) end [2025-02-28 17:05:21] Production.INFO: ProcessCDR(1,14577863,1,1,2) [2025-02-28 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577863', 'tblTempUsageDetail_20' ) start [2025-02-28 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577863', 'tblTempUsageDetail_20' ) end [2025-02-28 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:05:26] Production.INFO: ==6337== Releasing lock... [2025-02-28 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:05:26] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:06:06 [end_date_ymd] => 2025-02-28 17:06:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:06:06' and `end` < '2025-02-28 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-02-28 17:06:19] Production.INFO: count ==5564 [2025-02-28 17:06:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:06:06 - End Time 2025-02-28 17:06:06 [2025-02-28 17:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577868', 'tblTempUsageDetail_20' ) start [2025-02-28 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577868', 'tblTempUsageDetail_20' ) end [2025-02-28 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577868', 'tblTempVendorCDR_20' ) start [2025-02-28 17:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577868', 'tblTempVendorCDR_20' ) end [2025-02-28 17:06:22] Production.INFO: ProcessCDR(1,14577868,1,1,2) [2025-02-28 17:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577868,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577868,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577868', 'tblTempUsageDetail_20' ) start [2025-02-28 17:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577868', 'tblTempUsageDetail_20' ) end [2025-02-28 17:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:06:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:06:28] Production.INFO: ==6418== Releasing lock... [2025-02-28 17:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:06:28] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:07:05 [end_date_ymd] => 2025-02-28 17:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:07:05' and `end` < '2025-02-28 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-02-28 17:07:18] Production.INFO: count ==5516 [2025-02-28 17:07:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:07:05 - End Time 2025-02-28 17:07:05 [2025-02-28 17:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577873', 'tblTempUsageDetail_20' ) start [2025-02-28 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577873', 'tblTempUsageDetail_20' ) end [2025-02-28 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577873', 'tblTempVendorCDR_20' ) start [2025-02-28 17:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577873', 'tblTempVendorCDR_20' ) end [2025-02-28 17:07:21] Production.INFO: ProcessCDR(1,14577873,1,1,2) [2025-02-28 17:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577873', 'tblTempUsageDetail_20' ) start [2025-02-28 17:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577873', 'tblTempUsageDetail_20' ) end [2025-02-28 17:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:07:26] Production.INFO: ==6498== Releasing lock... [2025-02-28 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:07:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-28 17:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:08:06 [end_date_ymd] => 2025-02-28 17:08:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:08:06' and `end` < '2025-02-28 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-02-28 17:08:19] Production.INFO: count ==5459 [2025-02-28 17:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:08:06 - End Time 2025-02-28 17:08:06 [2025-02-28 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577878', 'tblTempUsageDetail_20' ) start [2025-02-28 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577878', 'tblTempUsageDetail_20' ) end [2025-02-28 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577878', 'tblTempVendorCDR_20' ) start [2025-02-28 17:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577878', 'tblTempVendorCDR_20' ) end [2025-02-28 17:08:22] Production.INFO: ProcessCDR(1,14577878,1,1,2) [2025-02-28 17:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577878', 'tblTempUsageDetail_20' ) start [2025-02-28 17:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577878', 'tblTempUsageDetail_20' ) end [2025-02-28 17:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:08:27] Production.INFO: ==6580== Releasing lock... [2025-02-28 17:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:08:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:09:06 [end_date_ymd] => 2025-02-28 17:09:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:09:06' and `end` < '2025-02-28 17: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-02-28 17:09:19] Production.INFO: count ==5424 [2025-02-28 17:09:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:09:06 - End Time 2025-02-28 17:09:06 [2025-02-28 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577883', 'tblTempUsageDetail_20' ) start [2025-02-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577883', 'tblTempUsageDetail_20' ) end [2025-02-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577883', 'tblTempVendorCDR_20' ) start [2025-02-28 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577883', 'tblTempVendorCDR_20' ) end [2025-02-28 17:09:22] Production.INFO: ProcessCDR(1,14577883,1,1,2) [2025-02-28 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577883', 'tblTempUsageDetail_20' ) start [2025-02-28 17:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577883', 'tblTempUsageDetail_20' ) end [2025-02-28 17:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:09:26] Production.INFO: ==6663== Releasing lock... [2025-02-28 17:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:09:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 17:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:10:07 [end_date_ymd] => 2025-02-28 17:10:07 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:10:07' and `end` < '2025-02-28 17: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-02-28 17:10:20] Production.INFO: count ==5427 [2025-02-28 17:10:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:10:07 - End Time 2025-02-28 17:10:07 [2025-02-28 17:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577889', 'tblTempUsageDetail_20' ) start [2025-02-28 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577889', 'tblTempUsageDetail_20' ) end [2025-02-28 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577889', 'tblTempVendorCDR_20' ) start [2025-02-28 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577889', 'tblTempVendorCDR_20' ) end [2025-02-28 17:10:23] Production.INFO: ProcessCDR(1,14577889,1,1,2) [2025-02-28 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577889', 'tblTempUsageDetail_20' ) start [2025-02-28 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577889', 'tblTempUsageDetail_20' ) end [2025-02-28 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:10:26] Production.INFO: ==6747== Releasing lock... [2025-02-28 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:10:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:11:06 [end_date_ymd] => 2025-02-28 17:11:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:11:06' and `end` < '2025-02-28 17: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-02-28 17:11:19] Production.INFO: count ==5463 [2025-02-28 17:11:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:11:06 - End Time 2025-02-28 17:11:06 [2025-02-28 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577894', 'tblTempUsageDetail_20' ) start [2025-02-28 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577894', 'tblTempUsageDetail_20' ) end [2025-02-28 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577894', 'tblTempVendorCDR_20' ) start [2025-02-28 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577894', 'tblTempVendorCDR_20' ) end [2025-02-28 17:11:21] Production.INFO: ProcessCDR(1,14577894,1,1,2) [2025-02-28 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577894', 'tblTempUsageDetail_20' ) start [2025-02-28 17:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577894', 'tblTempUsageDetail_20' ) end [2025-02-28 17:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:11:27] Production.INFO: ==6832== Releasing lock... [2025-02-28 17:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:11:27] Production.INFO: 69 MB #Memory Used# [2025-02-28 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:12:06 [end_date_ymd] => 2025-02-28 17:12:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:12:06' and `end` < '2025-02-28 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-02-28 17:12:19] Production.INFO: count ==5473 [2025-02-28 17:12:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:12:06 - End Time 2025-02-28 17:12:06 [2025-02-28 17:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577899', 'tblTempUsageDetail_20' ) start [2025-02-28 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577899', 'tblTempUsageDetail_20' ) end [2025-02-28 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577899', 'tblTempVendorCDR_20' ) start [2025-02-28 17:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577899', 'tblTempVendorCDR_20' ) end [2025-02-28 17:12:22] Production.INFO: ProcessCDR(1,14577899,1,1,2) [2025-02-28 17:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577899', 'tblTempUsageDetail_20' ) start [2025-02-28 17:12:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577899', 'tblTempUsageDetail_20' ) end [2025-02-28 17:12:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:12:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:12:28] Production.INFO: ==6956== Releasing lock... [2025-02-28 17:12:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:12:28] Production.INFO: 69 MB #Memory Used# [2025-02-28 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:13:06 [end_date_ymd] => 2025-02-28 17:13:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:13:06' and `end` < '2025-02-28 17: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-02-28 17:13:19] Production.INFO: count ==5446 [2025-02-28 17:13:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:13:06 - End Time 2025-02-28 17:13:06 [2025-02-28 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577904', 'tblTempUsageDetail_20' ) start [2025-02-28 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577904', 'tblTempUsageDetail_20' ) end [2025-02-28 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577904', 'tblTempVendorCDR_20' ) start [2025-02-28 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577904', 'tblTempVendorCDR_20' ) end [2025-02-28 17:13:21] Production.INFO: ProcessCDR(1,14577904,1,1,2) [2025-02-28 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577904', 'tblTempUsageDetail_20' ) start [2025-02-28 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577904', 'tblTempUsageDetail_20' ) end [2025-02-28 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:13:27] Production.INFO: ==7038== Releasing lock... [2025-02-28 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:13:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:14:05 [end_date_ymd] => 2025-02-28 17:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:14:05' and `end` < '2025-02-28 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-02-28 17:14:18] Production.INFO: count ==5384 [2025-02-28 17:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:14:05 - End Time 2025-02-28 17:14:05 [2025-02-28 17:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577909', 'tblTempUsageDetail_20' ) start [2025-02-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577909', 'tblTempUsageDetail_20' ) end [2025-02-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577909', 'tblTempVendorCDR_20' ) start [2025-02-28 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577909', 'tblTempVendorCDR_20' ) end [2025-02-28 17:14:21] Production.INFO: ProcessCDR(1,14577909,1,1,2) [2025-02-28 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577909', 'tblTempUsageDetail_20' ) start [2025-02-28 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577909', 'tblTempUsageDetail_20' ) end [2025-02-28 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:14:26] Production.INFO: ==7122== Releasing lock... [2025-02-28 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:14:26] Production.INFO: 68.25 MB #Memory Used# [2025-02-28 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:15:06 [end_date_ymd] => 2025-02-28 17:15:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:15:06' and `end` < '2025-02-28 17: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-02-28 17:15:19] Production.INFO: count ==5333 [2025-02-28 17:15:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:15:06 - End Time 2025-02-28 17:15:06 [2025-02-28 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577914', 'tblTempUsageDetail_20' ) start [2025-02-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577914', 'tblTempUsageDetail_20' ) end [2025-02-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577914', 'tblTempVendorCDR_20' ) start [2025-02-28 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577914', 'tblTempVendorCDR_20' ) end [2025-02-28 17:15:21] Production.INFO: ProcessCDR(1,14577914,1,1,2) [2025-02-28 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577914,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577914,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577914', 'tblTempUsageDetail_20' ) start [2025-02-28 17:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577914', 'tblTempUsageDetail_20' ) end [2025-02-28 17:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:15:27] Production.INFO: ==7209== Releasing lock... [2025-02-28 17:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:15:27] Production.INFO: 68 MB #Memory Used# [2025-02-28 17:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:16:06 [end_date_ymd] => 2025-02-28 17:16:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:16:06' and `end` < '2025-02-28 17: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-02-28 17:16:19] Production.INFO: count ==5307 [2025-02-28 17:16:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:16:06 - End Time 2025-02-28 17:16:06 [2025-02-28 17:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577919', 'tblTempUsageDetail_20' ) start [2025-02-28 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577919', 'tblTempUsageDetail_20' ) end [2025-02-28 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577919', 'tblTempVendorCDR_20' ) start [2025-02-28 17:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577919', 'tblTempVendorCDR_20' ) end [2025-02-28 17:16:22] Production.INFO: ProcessCDR(1,14577919,1,1,2) [2025-02-28 17:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577919', 'tblTempUsageDetail_20' ) start [2025-02-28 17:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577919', 'tblTempUsageDetail_20' ) end [2025-02-28 17:16:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:16:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:16:27] Production.INFO: ==7289== Releasing lock... [2025-02-28 17:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:16:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:17:06 [end_date_ymd] => 2025-02-28 17:17:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:17:06' and `end` < '2025-02-28 17: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-02-28 17:17:19] Production.INFO: count ==5305 [2025-02-28 17:17:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:17:06 - End Time 2025-02-28 17:17:06 [2025-02-28 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577924', 'tblTempUsageDetail_20' ) start [2025-02-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577924', 'tblTempUsageDetail_20' ) end [2025-02-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577924', 'tblTempVendorCDR_20' ) start [2025-02-28 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577924', 'tblTempVendorCDR_20' ) end [2025-02-28 17:17:21] Production.INFO: ProcessCDR(1,14577924,1,1,2) [2025-02-28 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577924,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577924,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577924', 'tblTempUsageDetail_20' ) start [2025-02-28 17:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577924', 'tblTempUsageDetail_20' ) end [2025-02-28 17:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:17:27] Production.INFO: ==7368== Releasing lock... [2025-02-28 17:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:17:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 17:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:18:06 [end_date_ymd] => 2025-02-28 17:18:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:18:06' and `end` < '2025-02-28 17: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-02-28 17:18:19] Production.INFO: count ==5313 [2025-02-28 17:18:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:18:06 - End Time 2025-02-28 17:18:06 [2025-02-28 17:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577929', 'tblTempUsageDetail_20' ) start [2025-02-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577929', 'tblTempUsageDetail_20' ) end [2025-02-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577929', 'tblTempVendorCDR_20' ) start [2025-02-28 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577929', 'tblTempVendorCDR_20' ) end [2025-02-28 17:18:21] Production.INFO: ProcessCDR(1,14577929,1,1,2) [2025-02-28 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577929', 'tblTempUsageDetail_20' ) start [2025-02-28 17:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577929', 'tblTempUsageDetail_20' ) end [2025-02-28 17:18:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:18:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:18:27] Production.INFO: ==7449== Releasing lock... [2025-02-28 17:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:18:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 17:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:19:06 [end_date_ymd] => 2025-02-28 17:19:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:19:06' and `end` < '2025-02-28 17: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-02-28 17:19:19] Production.INFO: count ==5314 [2025-02-28 17:19:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:19:06 - End Time 2025-02-28 17:19:06 [2025-02-28 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577934', 'tblTempUsageDetail_20' ) start [2025-02-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577934', 'tblTempUsageDetail_20' ) end [2025-02-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577934', 'tblTempVendorCDR_20' ) start [2025-02-28 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577934', 'tblTempVendorCDR_20' ) end [2025-02-28 17:19:21] Production.INFO: ProcessCDR(1,14577934,1,1,2) [2025-02-28 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577934', 'tblTempUsageDetail_20' ) start [2025-02-28 17:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577934', 'tblTempUsageDetail_20' ) end [2025-02-28 17:19:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:19:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:19:27] Production.INFO: ==7531== Releasing lock... [2025-02-28 17:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:19:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:20:06 [end_date_ymd] => 2025-02-28 17:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:20:06' and `end` < '2025-02-28 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-02-28 17:20:19] Production.INFO: count ==5309 [2025-02-28 17:20:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:20:06 - End Time 2025-02-28 17:20:06 [2025-02-28 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577939', 'tblTempUsageDetail_20' ) start [2025-02-28 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577939', 'tblTempUsageDetail_20' ) end [2025-02-28 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577939', 'tblTempVendorCDR_20' ) start [2025-02-28 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577939', 'tblTempVendorCDR_20' ) end [2025-02-28 17:20:21] Production.INFO: ProcessCDR(1,14577939,1,1,2) [2025-02-28 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577939', 'tblTempUsageDetail_20' ) start [2025-02-28 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577939', 'tblTempUsageDetail_20' ) end [2025-02-28 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:20:27] Production.INFO: ==7615== Releasing lock... [2025-02-28 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:20:27] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 17:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:21:06 [end_date_ymd] => 2025-02-28 17:21:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:21:06' and `end` < '2025-02-28 17: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-02-28 17:21:19] Production.INFO: count ==5340 [2025-02-28 17:21:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:21:06 - End Time 2025-02-28 17:21:06 [2025-02-28 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577945', 'tblTempUsageDetail_20' ) start [2025-02-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577945', 'tblTempUsageDetail_20' ) end [2025-02-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577945', 'tblTempVendorCDR_20' ) start [2025-02-28 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577945', 'tblTempVendorCDR_20' ) end [2025-02-28 17:21:21] Production.INFO: ProcessCDR(1,14577945,1,1,2) [2025-02-28 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577945', 'tblTempUsageDetail_20' ) start [2025-02-28 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577945', 'tblTempUsageDetail_20' ) end [2025-02-28 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:21:26] Production.INFO: ==7697== Releasing lock... [2025-02-28 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:21:26] Production.INFO: 68 MB #Memory Used# [2025-02-28 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:22:05 [end_date_ymd] => 2025-02-28 17:22:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:22:05' and `end` < '2025-02-28 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-02-28 17:22:18] Production.INFO: count ==5400 [2025-02-28 17:22:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:22:05 - End Time 2025-02-28 17:22:05 [2025-02-28 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577950', 'tblTempUsageDetail_20' ) start [2025-02-28 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577950', 'tblTempUsageDetail_20' ) end [2025-02-28 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577950', 'tblTempVendorCDR_20' ) start [2025-02-28 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577950', 'tblTempVendorCDR_20' ) end [2025-02-28 17:22:21] Production.INFO: ProcessCDR(1,14577950,1,1,2) [2025-02-28 17:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577950', 'tblTempUsageDetail_20' ) start [2025-02-28 17:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577950', 'tblTempUsageDetail_20' ) end [2025-02-28 17:22:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:22:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:22:26] Production.INFO: ==7776== Releasing lock... [2025-02-28 17:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:22:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:23:05 [end_date_ymd] => 2025-02-28 17:23:05 [RateCDR] => 1 ) [2025-02-28 17:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:23:05' and `end` < '2025-02-28 17:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:23:18] Production.INFO: count ==5405 [2025-02-28 17:23:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:23:05 - End Time 2025-02-28 17:23:05 [2025-02-28 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577955', 'tblTempUsageDetail_20' ) start [2025-02-28 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577955', 'tblTempUsageDetail_20' ) end [2025-02-28 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577955', 'tblTempVendorCDR_20' ) start [2025-02-28 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577955', 'tblTempVendorCDR_20' ) end [2025-02-28 17:23:21] Production.INFO: ProcessCDR(1,14577955,1,1,2) [2025-02-28 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577955', 'tblTempUsageDetail_20' ) start [2025-02-28 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577955', 'tblTempUsageDetail_20' ) end [2025-02-28 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:23:26] Production.INFO: ==7883== Releasing lock... [2025-02-28 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:23:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:24:05 [end_date_ymd] => 2025-02-28 17:24:05 [RateCDR] => 1 ) [2025-02-28 17:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:24:05' and `end` < '2025-02-28 17:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:24:18] Production.INFO: count ==5444 [2025-02-28 17:24:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:24:05 - End Time 2025-02-28 17:24:05 [2025-02-28 17:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577960', 'tblTempUsageDetail_20' ) start [2025-02-28 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577960', 'tblTempUsageDetail_20' ) end [2025-02-28 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577960', 'tblTempVendorCDR_20' ) start [2025-02-28 17:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577960', 'tblTempVendorCDR_20' ) end [2025-02-28 17:24:20] Production.INFO: ProcessCDR(1,14577960,1,1,2) [2025-02-28 17:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577960,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577960,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577960', 'tblTempUsageDetail_20' ) start [2025-02-28 17:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577960', 'tblTempUsageDetail_20' ) end [2025-02-28 17:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:24:25] Production.INFO: ==7973== Releasing lock... [2025-02-28 17:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:24:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:25:06 [end_date_ymd] => 2025-02-28 17:25:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:25:06' and `end` < '2025-02-28 17: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-02-28 17:25:19] Production.INFO: count ==5448 [2025-02-28 17:25:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:25:06 - End Time 2025-02-28 17:25:06 [2025-02-28 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577965', 'tblTempUsageDetail_20' ) start [2025-02-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577965', 'tblTempUsageDetail_20' ) end [2025-02-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577965', 'tblTempVendorCDR_20' ) start [2025-02-28 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577965', 'tblTempVendorCDR_20' ) end [2025-02-28 17:25:22] Production.INFO: ProcessCDR(1,14577965,1,1,2) [2025-02-28 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577965', 'tblTempUsageDetail_20' ) start [2025-02-28 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577965', 'tblTempUsageDetail_20' ) end [2025-02-28 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:25:27] Production.INFO: ==8057== Releasing lock... [2025-02-28 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:25:27] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:26:18] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:26:18 [end_date_ymd] => 2025-02-28 17:26:18 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:26:18' and `end` < '2025-02-28 17: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-02-28 17:26:31] Production.INFO: count ==5444 [2025-02-28 17:27:38] Production.ERROR: pbx CDR StartTime 2025-02-28 14:26:18 - End Time 2025-02-28 17:26:18 [2025-02-28 17:27:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:27:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577970', 'tblTempUsageDetail_20' ) start [2025-02-28 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577970', 'tblTempUsageDetail_20' ) end [2025-02-28 17:27:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577970', 'tblTempVendorCDR_20' ) start [2025-02-28 17:27:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577970', 'tblTempVendorCDR_20' ) end [2025-02-28 17:27:42] Production.INFO: ProcessCDR(1,14577970,1,1,2) [2025-02-28 17:27:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:27:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:27:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577970', 'tblTempUsageDetail_20' ) start [2025-02-28 17:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577970', 'tblTempUsageDetail_20' ) end [2025-02-28 17:28:30] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:28:30] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:28:35] Production.INFO: ==8164== Releasing lock... [2025-02-28 17:28:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:28:35] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:29:13] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:29:13 [end_date_ymd] => 2025-02-28 17:29:13 [RateCDR] => 1 ) [2025-02-28 17:29:13] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:29:13' and `end` < '2025-02-28 17:29:13' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:29:26] Production.INFO: count ==5441 [2025-02-28 17:30:00] Production.ERROR: pbx CDR StartTime 2025-02-28 14:29:13 - End Time 2025-02-28 17:29:13 [2025-02-28 17:30:00] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:30:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577981', 'tblTempUsageDetail_20' ) start [2025-02-28 17:30:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577981', 'tblTempUsageDetail_20' ) end [2025-02-28 17:30:06] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577981', 'tblTempVendorCDR_20' ) start [2025-02-28 17:30:08] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577981', 'tblTempVendorCDR_20' ) end [2025-02-28 17:30:08] Production.INFO: ProcessCDR(1,14577981,1,1,2) [2025-02-28 17:30:08] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:30:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:30:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577981', 'tblTempUsageDetail_20' ) start [2025-02-28 17:31:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577981', 'tblTempUsageDetail_20' ) end [2025-02-28 17:31:01] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:31:01] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:31:05] Production.INFO: ==8473== Releasing lock... [2025-02-28 17:31:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:31:05] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:32:06 [end_date_ymd] => 2025-02-28 17:32:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:32:06' and `end` < '2025-02-28 17: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-02-28 17:32:19] Production.INFO: count ==5424 [2025-02-28 17:32:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:32:06 - End Time 2025-02-28 17:32:06 [2025-02-28 17:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577994', 'tblTempUsageDetail_20' ) start [2025-02-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577994', 'tblTempUsageDetail_20' ) end [2025-02-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577994', 'tblTempVendorCDR_20' ) start [2025-02-28 17:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577994', 'tblTempVendorCDR_20' ) end [2025-02-28 17:32:22] Production.INFO: ProcessCDR(1,14577994,1,1,2) [2025-02-28 17:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577994', 'tblTempUsageDetail_20' ) start [2025-02-28 17:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577994', 'tblTempUsageDetail_20' ) end [2025-02-28 17:32:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:32:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:32:27] Production.INFO: ==8734== Releasing lock... [2025-02-28 17:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:32:27] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:33:05 [end_date_ymd] => 2025-02-28 17:33:05 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:33:05' and `end` < '2025-02-28 17: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-02-28 17:33:18] Production.INFO: count ==5405 [2025-02-28 17:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:33:05 - End Time 2025-02-28 17:33:05 [2025-02-28 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577999', 'tblTempUsageDetail_20' ) start [2025-02-28 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14577999', 'tblTempUsageDetail_20' ) end [2025-02-28 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577999', 'tblTempVendorCDR_20' ) start [2025-02-28 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14577999', 'tblTempVendorCDR_20' ) end [2025-02-28 17:33:20] Production.INFO: ProcessCDR(1,14577999,1,1,2) [2025-02-28 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14577999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14577999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14577999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14577999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577999', 'tblTempUsageDetail_20' ) start [2025-02-28 17:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14577999', 'tblTempUsageDetail_20' ) end [2025-02-28 17:33:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:33:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:33:25] Production.INFO: ==8830== Releasing lock... [2025-02-28 17:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:33:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:34:06 [end_date_ymd] => 2025-02-28 17:34:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:34:06' and `end` < '2025-02-28 17: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-02-28 17:34:18] Production.INFO: count ==5495 [2025-02-28 17:34:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:34:06 - End Time 2025-02-28 17:34:06 [2025-02-28 17:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578004', 'tblTempUsageDetail_20' ) start [2025-02-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578004', 'tblTempUsageDetail_20' ) end [2025-02-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578004', 'tblTempVendorCDR_20' ) start [2025-02-28 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578004', 'tblTempVendorCDR_20' ) end [2025-02-28 17:34:21] Production.INFO: ProcessCDR(1,14578004,1,1,2) [2025-02-28 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578004', 'tblTempUsageDetail_20' ) start [2025-02-28 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578004', 'tblTempUsageDetail_20' ) end [2025-02-28 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:34:26] Production.INFO: ==8927== Releasing lock... [2025-02-28 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:34:26] Production.INFO: 69 MB #Memory Used# [2025-02-28 17:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:35:06 [end_date_ymd] => 2025-02-28 17:35:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:35:06' and `end` < '2025-02-28 17: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-02-28 17:35:19] Production.INFO: count ==5493 [2025-02-28 17:35:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:35:06 - End Time 2025-02-28 17:35:06 [2025-02-28 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578009', 'tblTempUsageDetail_20' ) start [2025-02-28 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578009', 'tblTempUsageDetail_20' ) end [2025-02-28 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578009', 'tblTempVendorCDR_20' ) start [2025-02-28 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578009', 'tblTempVendorCDR_20' ) end [2025-02-28 17:35:21] Production.INFO: ProcessCDR(1,14578009,1,1,2) [2025-02-28 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578009', 'tblTempUsageDetail_20' ) start [2025-02-28 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578009', 'tblTempUsageDetail_20' ) end [2025-02-28 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:35:27] Production.INFO: ==9011== Releasing lock... [2025-02-28 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:35:27] Production.INFO: 69 MB #Memory Used# [2025-02-28 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:36:05 [end_date_ymd] => 2025-02-28 17:36:05 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:36:05' and `end` < '2025-02-28 17: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-02-28 17:36:19] Production.INFO: count ==5493 [2025-02-28 17:36:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:36:05 - End Time 2025-02-28 17:36:05 [2025-02-28 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578014', 'tblTempUsageDetail_20' ) start [2025-02-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578014', 'tblTempUsageDetail_20' ) end [2025-02-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578014', 'tblTempVendorCDR_20' ) start [2025-02-28 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578014', 'tblTempVendorCDR_20' ) end [2025-02-28 17:36:21] Production.INFO: ProcessCDR(1,14578014,1,1,2) [2025-02-28 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578014', 'tblTempUsageDetail_20' ) start [2025-02-28 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578014', 'tblTempUsageDetail_20' ) end [2025-02-28 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:36:26] Production.INFO: ==9113== Releasing lock... [2025-02-28 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:36:26] Production.INFO: 69 MB #Memory Used# [2025-02-28 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:37:05 [end_date_ymd] => 2025-02-28 17:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:37:05' and `end` < '2025-02-28 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-02-28 17:37:19] Production.INFO: count ==5484 [2025-02-28 17:37:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:37:05 - End Time 2025-02-28 17:37:05 [2025-02-28 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578019', 'tblTempUsageDetail_20' ) start [2025-02-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578019', 'tblTempUsageDetail_20' ) end [2025-02-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578019', 'tblTempVendorCDR_20' ) start [2025-02-28 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578019', 'tblTempVendorCDR_20' ) end [2025-02-28 17:37:21] Production.INFO: ProcessCDR(1,14578019,1,1,2) [2025-02-28 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578019', 'tblTempUsageDetail_20' ) start [2025-02-28 17:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578019', 'tblTempUsageDetail_20' ) end [2025-02-28 17:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:37:25] Production.INFO: ==9200== Releasing lock... [2025-02-28 17:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:37:25] Production.INFO: 69 MB #Memory Used# [2025-02-28 17:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:38:06 [end_date_ymd] => 2025-02-28 17:38:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:38:06' and `end` < '2025-02-28 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-02-28 17:38:19] Production.INFO: count ==5469 [2025-02-28 17:38:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:38:06 - End Time 2025-02-28 17:38:06 [2025-02-28 17:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578024', 'tblTempUsageDetail_20' ) start [2025-02-28 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578024', 'tblTempUsageDetail_20' ) end [2025-02-28 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578024', 'tblTempVendorCDR_20' ) start [2025-02-28 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578024', 'tblTempVendorCDR_20' ) end [2025-02-28 17:38:21] Production.INFO: ProcessCDR(1,14578024,1,1,2) [2025-02-28 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578024', 'tblTempUsageDetail_20' ) start [2025-02-28 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578024', 'tblTempUsageDetail_20' ) end [2025-02-28 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:38:26] Production.INFO: ==9304== Releasing lock... [2025-02-28 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:38:26] Production.INFO: 69 MB #Memory Used# [2025-02-28 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:39:05 [end_date_ymd] => 2025-02-28 17:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:39:05' and `end` < '2025-02-28 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-02-28 17:39:19] Production.INFO: count ==5450 [2025-02-28 17:39:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:39:05 - End Time 2025-02-28 17:39:05 [2025-02-28 17:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578029', 'tblTempUsageDetail_20' ) start [2025-02-28 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578029', 'tblTempUsageDetail_20' ) end [2025-02-28 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578029', 'tblTempVendorCDR_20' ) start [2025-02-28 17:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578029', 'tblTempVendorCDR_20' ) end [2025-02-28 17:39:21] Production.INFO: ProcessCDR(1,14578029,1,1,2) [2025-02-28 17:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578029', 'tblTempUsageDetail_20' ) start [2025-02-28 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578029', 'tblTempUsageDetail_20' ) end [2025-02-28 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:39:25] Production.INFO: ==9396== Releasing lock... [2025-02-28 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:39:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:40:07 [end_date_ymd] => 2025-02-28 17:40:07 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:40:07' and `end` < '2025-02-28 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-02-28 17:40:20] Production.INFO: count ==5444 [2025-02-28 17:40:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:40:07 - End Time 2025-02-28 17:40:07 [2025-02-28 17:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578035', 'tblTempUsageDetail_20' ) start [2025-02-28 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578035', 'tblTempUsageDetail_20' ) end [2025-02-28 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578035', 'tblTempVendorCDR_20' ) start [2025-02-28 17:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578035', 'tblTempVendorCDR_20' ) end [2025-02-28 17:40:22] Production.INFO: ProcessCDR(1,14578035,1,1,2) [2025-02-28 17:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578035', 'tblTempUsageDetail_20' ) start [2025-02-28 17:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578035', 'tblTempUsageDetail_20' ) end [2025-02-28 17:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:40:26] Production.INFO: ==9502== Releasing lock... [2025-02-28 17:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:40:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:41:05 [end_date_ymd] => 2025-02-28 17:41:05 [RateCDR] => 1 ) [2025-02-28 17:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:41:05' and `end` < '2025-02-28 17:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:41:20] Production.INFO: count ==5510 [2025-02-28 17:41:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:41:05 - End Time 2025-02-28 17:41:05 [2025-02-28 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578040', 'tblTempUsageDetail_20' ) start [2025-02-28 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578040', 'tblTempUsageDetail_20' ) end [2025-02-28 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578040', 'tblTempVendorCDR_20' ) start [2025-02-28 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578040', 'tblTempVendorCDR_20' ) end [2025-02-28 17:41:23] Production.INFO: ProcessCDR(1,14578040,1,1,2) [2025-02-28 17:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578040', 'tblTempUsageDetail_20' ) start [2025-02-28 17:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578040', 'tblTempUsageDetail_20' ) end [2025-02-28 17:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:41:26] Production.INFO: ==9590== Releasing lock... [2025-02-28 17:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:41:26] Production.INFO: 69.25 MB #Memory Used# [2025-02-28 17:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:42:06 [end_date_ymd] => 2025-02-28 17:42:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:42:06' and `end` < '2025-02-28 17: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-02-28 17:42:19] Production.INFO: count ==5532 [2025-02-28 17:42:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:42:06 - End Time 2025-02-28 17:42:06 [2025-02-28 17:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578045', 'tblTempUsageDetail_20' ) start [2025-02-28 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578045', 'tblTempUsageDetail_20' ) end [2025-02-28 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578045', 'tblTempVendorCDR_20' ) start [2025-02-28 17:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578045', 'tblTempVendorCDR_20' ) end [2025-02-28 17:42:21] Production.INFO: ProcessCDR(1,14578045,1,1,2) [2025-02-28 17:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578045', 'tblTempUsageDetail_20' ) start [2025-02-28 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578045', 'tblTempUsageDetail_20' ) end [2025-02-28 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:42:27] Production.INFO: ==9671== Releasing lock... [2025-02-28 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:42:27] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:43:05 [end_date_ymd] => 2025-02-28 17:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:43:05' and `end` < '2025-02-28 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-02-28 17:43:18] Production.INFO: count ==5562 [2025-02-28 17:43:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:43:05 - End Time 2025-02-28 17:43:05 [2025-02-28 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578050', 'tblTempUsageDetail_20' ) start [2025-02-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578050', 'tblTempUsageDetail_20' ) end [2025-02-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578050', 'tblTempVendorCDR_20' ) start [2025-02-28 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578050', 'tblTempVendorCDR_20' ) end [2025-02-28 17:43:21] Production.INFO: ProcessCDR(1,14578050,1,1,2) [2025-02-28 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578050', 'tblTempUsageDetail_20' ) start [2025-02-28 17:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578050', 'tblTempUsageDetail_20' ) end [2025-02-28 17:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:43:26] Production.INFO: ==9806== Releasing lock... [2025-02-28 17:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:43:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:44:06 [end_date_ymd] => 2025-02-28 17:44:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:44:06' and `end` < '2025-02-28 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-02-28 17:44:19] Production.INFO: count ==5570 [2025-02-28 17:44:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:44:06 - End Time 2025-02-28 17:44:06 [2025-02-28 17:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578055', 'tblTempUsageDetail_20' ) start [2025-02-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578055', 'tblTempUsageDetail_20' ) end [2025-02-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578055', 'tblTempVendorCDR_20' ) start [2025-02-28 17:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578055', 'tblTempVendorCDR_20' ) end [2025-02-28 17:44:21] Production.INFO: ProcessCDR(1,14578055,1,1,2) [2025-02-28 17:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578055', 'tblTempUsageDetail_20' ) start [2025-02-28 17:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578055', 'tblTempUsageDetail_20' ) end [2025-02-28 17:44:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:44:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:44:27] Production.INFO: ==9901== Releasing lock... [2025-02-28 17:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:44:27] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:45:05 [end_date_ymd] => 2025-02-28 17:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:45:05' and `end` < '2025-02-28 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-02-28 17:45:18] Production.INFO: count ==5564 [2025-02-28 17:45:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:45:05 - End Time 2025-02-28 17:45:05 [2025-02-28 17:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578060', 'tblTempUsageDetail_20' ) start [2025-02-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578060', 'tblTempUsageDetail_20' ) end [2025-02-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578060', 'tblTempVendorCDR_20' ) start [2025-02-28 17:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578060', 'tblTempVendorCDR_20' ) end [2025-02-28 17:45:20] Production.INFO: ProcessCDR(1,14578060,1,1,2) [2025-02-28 17:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578060', 'tblTempUsageDetail_20' ) start [2025-02-28 17:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578060', 'tblTempUsageDetail_20' ) end [2025-02-28 17:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:45:25] Production.INFO: ==9989== Releasing lock... [2025-02-28 17:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:45:25] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:46:06 [end_date_ymd] => 2025-02-28 17:46:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:46:06' and `end` < '2025-02-28 17: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-02-28 17:46:19] Production.INFO: count ==5636 [2025-02-28 17:46:22] Production.ERROR: pbx CDR StartTime 2025-02-28 14:46:06 - End Time 2025-02-28 17:46:06 [2025-02-28 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578065', 'tblTempUsageDetail_20' ) start [2025-02-28 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578065', 'tblTempUsageDetail_20' ) end [2025-02-28 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578065', 'tblTempVendorCDR_20' ) start [2025-02-28 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578065', 'tblTempVendorCDR_20' ) end [2025-02-28 17:46:22] Production.INFO: ProcessCDR(1,14578065,1,1,2) [2025-02-28 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578065', 'tblTempUsageDetail_20' ) start [2025-02-28 17:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578065', 'tblTempUsageDetail_20' ) end [2025-02-28 17:46:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:46:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:46:26] Production.INFO: ==10071== Releasing lock... [2025-02-28 17:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:46:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-28 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:47:05 [end_date_ymd] => 2025-02-28 17:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:47:05' and `end` < '2025-02-28 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-02-28 17:47:18] Production.INFO: count ==5628 [2025-02-28 17:47:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:47:05 - End Time 2025-02-28 17:47:05 [2025-02-28 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578070', 'tblTempUsageDetail_20' ) start [2025-02-28 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578070', 'tblTempUsageDetail_20' ) end [2025-02-28 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578070', 'tblTempVendorCDR_20' ) start [2025-02-28 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578070', 'tblTempVendorCDR_20' ) end [2025-02-28 17:47:20] Production.INFO: ProcessCDR(1,14578070,1,1,2) [2025-02-28 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578070', 'tblTempUsageDetail_20' ) start [2025-02-28 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578070', 'tblTempUsageDetail_20' ) end [2025-02-28 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:47:25] Production.INFO: ==10154== Releasing lock... [2025-02-28 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:47:25] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:48:06 [end_date_ymd] => 2025-02-28 17:48:06 [RateCDR] => 1 ) [2025-02-28 17: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-02-28 14:48:06' and `end` < '2025-02-28 17: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-02-28 17:48:19] Production.INFO: count ==5622 [2025-02-28 17:48:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:48:06 - End Time 2025-02-28 17:48:06 [2025-02-28 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578075', 'tblTempUsageDetail_20' ) start [2025-02-28 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578075', 'tblTempUsageDetail_20' ) end [2025-02-28 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578075', 'tblTempVendorCDR_20' ) start [2025-02-28 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578075', 'tblTempVendorCDR_20' ) end [2025-02-28 17:48:21] Production.INFO: ProcessCDR(1,14578075,1,1,2) [2025-02-28 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578075', 'tblTempUsageDetail_20' ) start [2025-02-28 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578075', 'tblTempUsageDetail_20' ) end [2025-02-28 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:48:25] Production.INFO: ==10244== Releasing lock... [2025-02-28 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:48:25] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:49:05 [end_date_ymd] => 2025-02-28 17:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:49:05' and `end` < '2025-02-28 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-02-28 17:49:18] Production.INFO: count ==5632 [2025-02-28 17:49:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:49:05 - End Time 2025-02-28 17:49:05 [2025-02-28 17:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578080', 'tblTempUsageDetail_20' ) start [2025-02-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578080', 'tblTempUsageDetail_20' ) end [2025-02-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578080', 'tblTempVendorCDR_20' ) start [2025-02-28 17:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578080', 'tblTempVendorCDR_20' ) end [2025-02-28 17:49:21] Production.INFO: ProcessCDR(1,14578080,1,1,2) [2025-02-28 17:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578080', 'tblTempUsageDetail_20' ) start [2025-02-28 17:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578080', 'tblTempUsageDetail_20' ) end [2025-02-28 17:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:49:26] Production.INFO: ==10345== Releasing lock... [2025-02-28 17:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:49:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-28 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:50:06 [end_date_ymd] => 2025-02-28 17:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:50:06' and `end` < '2025-02-28 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-02-28 17:50:19] Production.INFO: count ==5624 [2025-02-28 17:50:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:50:06 - End Time 2025-02-28 17:50:06 [2025-02-28 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578086', 'tblTempUsageDetail_20' ) start [2025-02-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578086', 'tblTempUsageDetail_20' ) end [2025-02-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578086', 'tblTempVendorCDR_20' ) start [2025-02-28 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578086', 'tblTempVendorCDR_20' ) end [2025-02-28 17:50:21] Production.INFO: ProcessCDR(1,14578086,1,1,2) [2025-02-28 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578086', 'tblTempUsageDetail_20' ) start [2025-02-28 17:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578086', 'tblTempUsageDetail_20' ) end [2025-02-28 17:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:50:27] Production.INFO: ==10447== Releasing lock... [2025-02-28 17:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:50:27] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:51:05 [end_date_ymd] => 2025-02-28 17:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:51:05' and `end` < '2025-02-28 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-02-28 17:51:18] Production.INFO: count ==5650 [2025-02-28 17:51:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:51:05 - End Time 2025-02-28 17:51:05 [2025-02-28 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578091', 'tblTempUsageDetail_20' ) start [2025-02-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578091', 'tblTempUsageDetail_20' ) end [2025-02-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578091', 'tblTempVendorCDR_20' ) start [2025-02-28 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578091', 'tblTempVendorCDR_20' ) end [2025-02-28 17:51:21] Production.INFO: ProcessCDR(1,14578091,1,1,2) [2025-02-28 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578091', 'tblTempUsageDetail_20' ) start [2025-02-28 17:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578091', 'tblTempUsageDetail_20' ) end [2025-02-28 17:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:51:26] Production.INFO: ==10546== Releasing lock... [2025-02-28 17:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:51:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-28 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:52:06 [end_date_ymd] => 2025-02-28 17:52:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:52:06' and `end` < '2025-02-28 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-02-28 17:52:19] Production.INFO: count ==5633 [2025-02-28 17:52:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:52:06 - End Time 2025-02-28 17:52:06 [2025-02-28 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578096', 'tblTempUsageDetail_20' ) start [2025-02-28 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578096', 'tblTempUsageDetail_20' ) end [2025-02-28 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578096', 'tblTempVendorCDR_20' ) start [2025-02-28 17:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578096', 'tblTempVendorCDR_20' ) end [2025-02-28 17:52:22] Production.INFO: ProcessCDR(1,14578096,1,1,2) [2025-02-28 17:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578096', 'tblTempUsageDetail_20' ) start [2025-02-28 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578096', 'tblTempUsageDetail_20' ) end [2025-02-28 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:52:26] Production.INFO: ==10646== Releasing lock... [2025-02-28 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:52:26] Production.INFO: 70.25 MB #Memory Used# [2025-02-28 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:53:05 [end_date_ymd] => 2025-02-28 17:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:53:05' and `end` < '2025-02-28 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-02-28 17:53:18] Production.INFO: count ==5601 [2025-02-28 17:53:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:53:05 - End Time 2025-02-28 17:53:05 [2025-02-28 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578101', 'tblTempUsageDetail_20' ) start [2025-02-28 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578101', 'tblTempUsageDetail_20' ) end [2025-02-28 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578101', 'tblTempVendorCDR_20' ) start [2025-02-28 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578101', 'tblTempVendorCDR_20' ) end [2025-02-28 17:53:21] Production.INFO: ProcessCDR(1,14578101,1,1,2) [2025-02-28 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578101', 'tblTempUsageDetail_20' ) start [2025-02-28 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578101', 'tblTempUsageDetail_20' ) end [2025-02-28 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:53:26] Production.INFO: ==10741== Releasing lock... [2025-02-28 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:53:26] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:54:05 [end_date_ymd] => 2025-02-28 17:54:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:54:05' and `end` < '2025-02-28 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-02-28 17:54:19] Production.INFO: count ==5581 [2025-02-28 17:54:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:54:05 - End Time 2025-02-28 17:54:05 [2025-02-28 17:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578106', 'tblTempUsageDetail_20' ) start [2025-02-28 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578106', 'tblTempUsageDetail_20' ) end [2025-02-28 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578106', 'tblTempVendorCDR_20' ) start [2025-02-28 17:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578106', 'tblTempVendorCDR_20' ) end [2025-02-28 17:54:21] Production.INFO: ProcessCDR(1,14578106,1,1,2) [2025-02-28 17:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578106', 'tblTempUsageDetail_20' ) start [2025-02-28 17:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578106', 'tblTempUsageDetail_20' ) end [2025-02-28 17:54:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:54:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:54:26] Production.INFO: ==10833== Releasing lock... [2025-02-28 17:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:54:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:55:05 [end_date_ymd] => 2025-02-28 17:55:05 [RateCDR] => 1 ) [2025-02-28 17:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:55:05' and `end` < '2025-02-28 17:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:55:18] Production.INFO: count ==5612 [2025-02-28 17:55:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:55:05 - End Time 2025-02-28 17:55:05 [2025-02-28 17:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578111', 'tblTempUsageDetail_20' ) start [2025-02-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578111', 'tblTempUsageDetail_20' ) end [2025-02-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578111', 'tblTempVendorCDR_20' ) start [2025-02-28 17:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578111', 'tblTempVendorCDR_20' ) end [2025-02-28 17:55:21] Production.INFO: ProcessCDR(1,14578111,1,1,2) [2025-02-28 17:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578111', 'tblTempUsageDetail_20' ) start [2025-02-28 17:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578111', 'tblTempUsageDetail_20' ) end [2025-02-28 17:55:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:55:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:55:26] Production.INFO: ==10932== Releasing lock... [2025-02-28 17:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:55:26] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:56:05 [end_date_ymd] => 2025-02-28 17:56:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:56:05' and `end` < '2025-02-28 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-02-28 17:56:19] Production.INFO: count ==5604 [2025-02-28 17:56:21] Production.ERROR: pbx CDR StartTime 2025-02-28 14:56:05 - End Time 2025-02-28 17:56:05 [2025-02-28 17:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578116', 'tblTempUsageDetail_20' ) start [2025-02-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578116', 'tblTempUsageDetail_20' ) end [2025-02-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578116', 'tblTempVendorCDR_20' ) start [2025-02-28 17:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578116', 'tblTempVendorCDR_20' ) end [2025-02-28 17:56:21] Production.INFO: ProcessCDR(1,14578116,1,1,2) [2025-02-28 17:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578116', 'tblTempUsageDetail_20' ) start [2025-02-28 17:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578116', 'tblTempUsageDetail_20' ) end [2025-02-28 17:56:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:56:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:56:26] Production.INFO: ==11024== Releasing lock... [2025-02-28 17:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:56:26] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:57:05 [end_date_ymd] => 2025-02-28 17:57:05 [RateCDR] => 1 ) [2025-02-28 17:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 14:57:05' and `end` < '2025-02-28 17:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 17:57:18] Production.INFO: count ==5606 [2025-02-28 17:57:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:57:05 - End Time 2025-02-28 17:57:05 [2025-02-28 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578121', 'tblTempUsageDetail_20' ) start [2025-02-28 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578121', 'tblTempUsageDetail_20' ) end [2025-02-28 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578121', 'tblTempVendorCDR_20' ) start [2025-02-28 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578121', 'tblTempVendorCDR_20' ) end [2025-02-28 17:57:20] Production.INFO: ProcessCDR(1,14578121,1,1,2) [2025-02-28 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578121', 'tblTempUsageDetail_20' ) start [2025-02-28 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578121', 'tblTempUsageDetail_20' ) end [2025-02-28 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:57:26] Production.INFO: ==11114== Releasing lock... [2025-02-28 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:57:26] Production.INFO: 70 MB #Memory Used# [2025-02-28 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:58:05 [end_date_ymd] => 2025-02-28 17:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:58:05' and `end` < '2025-02-28 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-02-28 17:58:18] Production.INFO: count ==5591 [2025-02-28 17:58:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:58:05 - End Time 2025-02-28 17:58:05 [2025-02-28 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578126', 'tblTempUsageDetail_20' ) start [2025-02-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578126', 'tblTempUsageDetail_20' ) end [2025-02-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578126', 'tblTempVendorCDR_20' ) start [2025-02-28 17:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578126', 'tblTempVendorCDR_20' ) end [2025-02-28 17:58:21] Production.INFO: ProcessCDR(1,14578126,1,1,2) [2025-02-28 17:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578126', 'tblTempUsageDetail_20' ) start [2025-02-28 17:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578126', 'tblTempUsageDetail_20' ) end [2025-02-28 17:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:58:26] Production.INFO: ==11205== Releasing lock... [2025-02-28 17:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:58:26] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 14:59:05 [end_date_ymd] => 2025-02-28 17:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 14:59:05' and `end` < '2025-02-28 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-02-28 17:59:18] Production.INFO: count ==5665 [2025-02-28 17:59:20] Production.ERROR: pbx CDR StartTime 2025-02-28 14:59:05 - End Time 2025-02-28 17:59:05 [2025-02-28 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578131', 'tblTempUsageDetail_20' ) start [2025-02-28 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578131', 'tblTempUsageDetail_20' ) end [2025-02-28 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578131', 'tblTempVendorCDR_20' ) start [2025-02-28 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578131', 'tblTempVendorCDR_20' ) end [2025-02-28 17:59:20] Production.INFO: ProcessCDR(1,14578131,1,1,2) [2025-02-28 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578131', 'tblTempUsageDetail_20' ) start [2025-02-28 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578131', 'tblTempUsageDetail_20' ) end [2025-02-28 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 17:59:25] Production.INFO: ==11334== Releasing lock... [2025-02-28 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 17:59:25] Production.INFO: 70.5 MB #Memory Used# [2025-02-28 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:00:06 [end_date_ymd] => 2025-02-28 18:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:00:06' and `end` < '2025-02-28 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-02-28 18:00:19] Production.INFO: count ==5699 [2025-02-28 18:00:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:00:06 - End Time 2025-02-28 18:00:06 [2025-02-28 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578136', 'tblTempUsageDetail_20' ) start [2025-02-28 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578136', 'tblTempUsageDetail_20' ) end [2025-02-28 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578136', 'tblTempVendorCDR_20' ) start [2025-02-28 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578136', 'tblTempVendorCDR_20' ) end [2025-02-28 18:00:21] Production.INFO: ProcessCDR(1,14578136,1,1,2) [2025-02-28 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578136', 'tblTempUsageDetail_20' ) start [2025-02-28 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578136', 'tblTempUsageDetail_20' ) end [2025-02-28 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:00:26] Production.INFO: ==11435== Releasing lock... [2025-02-28 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:00:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-28 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:01:04 [end_date_ymd] => 2025-02-28 18:01:04 [RateCDR] => 1 ) [2025-02-28 18:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:01:04' and `end` < '2025-02-28 18:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:01:17] Production.INFO: count ==5692 [2025-02-28 18:01:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:01:04 - End Time 2025-02-28 18:01:04 [2025-02-28 18:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578142', 'tblTempUsageDetail_20' ) start [2025-02-28 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578142', 'tblTempUsageDetail_20' ) end [2025-02-28 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578142', 'tblTempVendorCDR_20' ) start [2025-02-28 18:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578142', 'tblTempVendorCDR_20' ) end [2025-02-28 18:01:20] Production.INFO: ProcessCDR(1,14578142,1,1,2) [2025-02-28 18:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578142', 'tblTempUsageDetail_20' ) start [2025-02-28 18:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578142', 'tblTempUsageDetail_20' ) end [2025-02-28 18:01:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:01:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:01:23] Production.INFO: ==11553== Releasing lock... [2025-02-28 18:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:01:23] Production.INFO: 70.5 MB #Memory Used# [2025-02-28 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:02:06 [end_date_ymd] => 2025-02-28 18:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:02:06' and `end` < '2025-02-28 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-02-28 18:02:19] Production.INFO: count ==5674 [2025-02-28 18:02:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:02:06 - End Time 2025-02-28 18:02:06 [2025-02-28 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578147', 'tblTempUsageDetail_20' ) start [2025-02-28 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578147', 'tblTempUsageDetail_20' ) end [2025-02-28 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578147', 'tblTempVendorCDR_20' ) start [2025-02-28 18:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578147', 'tblTempVendorCDR_20' ) end [2025-02-28 18:02:22] Production.INFO: ProcessCDR(1,14578147,1,1,2) [2025-02-28 18:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578147', 'tblTempUsageDetail_20' ) start [2025-02-28 18:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578147', 'tblTempUsageDetail_20' ) end [2025-02-28 18:02:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:02:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:02:26] Production.INFO: ==11641== Releasing lock... [2025-02-28 18:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:02:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-28 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:03:05 [end_date_ymd] => 2025-02-28 18:03:05 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:03:05' and `end` < '2025-02-28 18: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-02-28 18:03:17] Production.INFO: count ==5668 [2025-02-28 18:03:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:03:05 - End Time 2025-02-28 18:03:05 [2025-02-28 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578152', 'tblTempUsageDetail_20' ) start [2025-02-28 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578152', 'tblTempUsageDetail_20' ) end [2025-02-28 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578152', 'tblTempVendorCDR_20' ) start [2025-02-28 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578152', 'tblTempVendorCDR_20' ) end [2025-02-28 18:03:20] Production.INFO: ProcessCDR(1,14578152,1,1,2) [2025-02-28 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578152', 'tblTempUsageDetail_20' ) start [2025-02-28 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578152', 'tblTempUsageDetail_20' ) end [2025-02-28 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:03:25] Production.INFO: ==11730== Releasing lock... [2025-02-28 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:03:25] Production.INFO: 70.5 MB #Memory Used# [2025-02-28 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:04:05 [end_date_ymd] => 2025-02-28 18:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:04:05' and `end` < '2025-02-28 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-02-28 18:04:18] Production.INFO: count ==5656 [2025-02-28 18:04:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:04:05 - End Time 2025-02-28 18:04:05 [2025-02-28 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578157', 'tblTempUsageDetail_20' ) start [2025-02-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578157', 'tblTempUsageDetail_20' ) end [2025-02-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578157', 'tblTempVendorCDR_20' ) start [2025-02-28 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578157', 'tblTempVendorCDR_20' ) end [2025-02-28 18:04:21] Production.INFO: ProcessCDR(1,14578157,1,1,2) [2025-02-28 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578157', 'tblTempUsageDetail_20' ) start [2025-02-28 18:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578157', 'tblTempUsageDetail_20' ) end [2025-02-28 18:04:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:04:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:04:27] Production.INFO: ==11812== Releasing lock... [2025-02-28 18:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:04:27] Production.INFO: 70.25 MB #Memory Used# [2025-02-28 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:05:05 [end_date_ymd] => 2025-02-28 18:05:05 [RateCDR] => 1 ) [2025-02-28 18:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:05:05' and `end` < '2025-02-28 18:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:05:19] Production.INFO: count ==5691 [2025-02-28 18:05:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:05:05 - End Time 2025-02-28 18:05:05 [2025-02-28 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578162', 'tblTempUsageDetail_20' ) start [2025-02-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578162', 'tblTempUsageDetail_20' ) end [2025-02-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578162', 'tblTempVendorCDR_20' ) start [2025-02-28 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578162', 'tblTempVendorCDR_20' ) end [2025-02-28 18:05:21] Production.INFO: ProcessCDR(1,14578162,1,1,2) [2025-02-28 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578162', 'tblTempUsageDetail_20' ) start [2025-02-28 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578162', 'tblTempUsageDetail_20' ) end [2025-02-28 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:05:26] Production.INFO: ==11895== Releasing lock... [2025-02-28 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:05:26] Production.INFO: 70.5 MB #Memory Used# [2025-02-28 18:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:06:06 [end_date_ymd] => 2025-02-28 18:06:06 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:06:06' and `end` < '2025-02-28 18: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-02-28 18:06:19] Production.INFO: count ==5692 [2025-02-28 18:06:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:06:06 - End Time 2025-02-28 18:06:06 [2025-02-28 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578167', 'tblTempUsageDetail_20' ) start [2025-02-28 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578167', 'tblTempUsageDetail_20' ) end [2025-02-28 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578167', 'tblTempVendorCDR_20' ) start [2025-02-28 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578167', 'tblTempVendorCDR_20' ) end [2025-02-28 18:06:22] Production.INFO: ProcessCDR(1,14578167,1,1,2) [2025-02-28 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578167', 'tblTempUsageDetail_20' ) start [2025-02-28 18:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578167', 'tblTempUsageDetail_20' ) end [2025-02-28 18:06:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:06:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:06:27] Production.INFO: ==11985== Releasing lock... [2025-02-28 18:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:06:27] Production.INFO: 70.5 MB #Memory Used# [2025-02-28 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:07:05 [end_date_ymd] => 2025-02-28 18:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:07:05' and `end` < '2025-02-28 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-02-28 18:07:18] Production.INFO: count ==5677 [2025-02-28 18:07:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:07:05 - End Time 2025-02-28 18:07:05 [2025-02-28 18:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578172', 'tblTempUsageDetail_20' ) start [2025-02-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578172', 'tblTempUsageDetail_20' ) end [2025-02-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578172', 'tblTempVendorCDR_20' ) start [2025-02-28 18:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578172', 'tblTempVendorCDR_20' ) end [2025-02-28 18:07:21] Production.INFO: ProcessCDR(1,14578172,1,1,2) [2025-02-28 18:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578172', 'tblTempUsageDetail_20' ) start [2025-02-28 18:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578172', 'tblTempUsageDetail_20' ) end [2025-02-28 18:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:07:26] Production.INFO: ==12067== Releasing lock... [2025-02-28 18:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:07:26] Production.INFO: 70.75 MB #Memory Used# [2025-02-28 18:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:08:06 [end_date_ymd] => 2025-02-28 18:08:06 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:08:06' and `end` < '2025-02-28 18: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-02-28 18:08:19] Production.INFO: count ==5737 [2025-02-28 18:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:08:06 - End Time 2025-02-28 18:08:06 [2025-02-28 18:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578177', 'tblTempUsageDetail_20' ) start [2025-02-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578177', 'tblTempUsageDetail_20' ) end [2025-02-28 18:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578177', 'tblTempVendorCDR_20' ) start [2025-02-28 18:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578177', 'tblTempVendorCDR_20' ) end [2025-02-28 18:08:22] Production.INFO: ProcessCDR(1,14578177,1,1,2) [2025-02-28 18:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578177', 'tblTempUsageDetail_20' ) start [2025-02-28 18:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578177', 'tblTempUsageDetail_20' ) end [2025-02-28 18:08:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:08:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:08:27] Production.INFO: ==12154== Releasing lock... [2025-02-28 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:08:27] Production.INFO: 71 MB #Memory Used# [2025-02-28 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:09:05 [end_date_ymd] => 2025-02-28 18:09:05 [RateCDR] => 1 ) [2025-02-28 18:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:09:05' and `end` < '2025-02-28 18:09:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:09:18] Production.INFO: count ==5732 [2025-02-28 18:09:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:09:05 - End Time 2025-02-28 18:09:05 [2025-02-28 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578182', 'tblTempUsageDetail_20' ) start [2025-02-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578182', 'tblTempUsageDetail_20' ) end [2025-02-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578182', 'tblTempVendorCDR_20' ) start [2025-02-28 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578182', 'tblTempVendorCDR_20' ) end [2025-02-28 18:09:20] Production.INFO: ProcessCDR(1,14578182,1,1,2) [2025-02-28 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578182', 'tblTempUsageDetail_20' ) start [2025-02-28 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578182', 'tblTempUsageDetail_20' ) end [2025-02-28 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:09:25] Production.INFO: ==12249== Releasing lock... [2025-02-28 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:09:25] Production.INFO: 71 MB #Memory Used# [2025-02-28 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:10:06 [end_date_ymd] => 2025-02-28 18:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:10:06' and `end` < '2025-02-28 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-02-28 18:10:19] Production.INFO: count ==5810 [2025-02-28 18:10:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:10:06 - End Time 2025-02-28 18:10:06 [2025-02-28 18:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578188', 'tblTempUsageDetail_20' ) start [2025-02-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578188', 'tblTempUsageDetail_20' ) end [2025-02-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578188', 'tblTempVendorCDR_20' ) start [2025-02-28 18:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578188', 'tblTempVendorCDR_20' ) end [2025-02-28 18:10:22] Production.INFO: ProcessCDR(1,14578188,1,1,2) [2025-02-28 18:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578188', 'tblTempUsageDetail_20' ) start [2025-02-28 18:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578188', 'tblTempUsageDetail_20' ) end [2025-02-28 18:10:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:10:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:10:27] Production.INFO: ==12333== Releasing lock... [2025-02-28 18:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:10:27] Production.INFO: 71.5 MB #Memory Used# [2025-02-28 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:11:05 [end_date_ymd] => 2025-02-28 18:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:11:05' and `end` < '2025-02-28 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-02-28 18:11:18] Production.INFO: count ==5844 [2025-02-28 18:11:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:11:05 - End Time 2025-02-28 18:11:05 [2025-02-28 18:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578193', 'tblTempUsageDetail_20' ) start [2025-02-28 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578193', 'tblTempUsageDetail_20' ) end [2025-02-28 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578193', 'tblTempVendorCDR_20' ) start [2025-02-28 18:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578193', 'tblTempVendorCDR_20' ) end [2025-02-28 18:11:21] Production.INFO: ProcessCDR(1,14578193,1,1,2) [2025-02-28 18:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578193', 'tblTempUsageDetail_20' ) start [2025-02-28 18:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578193', 'tblTempUsageDetail_20' ) end [2025-02-28 18:11:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:11:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:11:27] Production.INFO: ==12417== Releasing lock... [2025-02-28 18:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:11:27] Production.INFO: 71.75 MB #Memory Used# [2025-02-28 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:12:05 [end_date_ymd] => 2025-02-28 18:12:05 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:12:05' and `end` < '2025-02-28 18: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-02-28 18:12:19] Production.INFO: count ==5837 [2025-02-28 18:12:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:12:05 - End Time 2025-02-28 18:12:05 [2025-02-28 18:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578198', 'tblTempUsageDetail_20' ) start [2025-02-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578198', 'tblTempUsageDetail_20' ) end [2025-02-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578198', 'tblTempVendorCDR_20' ) start [2025-02-28 18:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578198', 'tblTempVendorCDR_20' ) end [2025-02-28 18:12:21] Production.INFO: ProcessCDR(1,14578198,1,1,2) [2025-02-28 18:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578198', 'tblTempUsageDetail_20' ) start [2025-02-28 18:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578198', 'tblTempUsageDetail_20' ) end [2025-02-28 18:12:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:12:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:12:26] Production.INFO: ==12487== Releasing lock... [2025-02-28 18:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:12:26] Production.INFO: 71.75 MB #Memory Used# [2025-02-28 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:13:05 [end_date_ymd] => 2025-02-28 18:13:05 [RateCDR] => 1 ) [2025-02-28 18:13:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:13:05' and `end` < '2025-02-28 18:13:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:13:18] Production.INFO: count ==5829 [2025-02-28 18:13:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:13:05 - End Time 2025-02-28 18:13:05 [2025-02-28 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578203', 'tblTempUsageDetail_20' ) start [2025-02-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578203', 'tblTempUsageDetail_20' ) end [2025-02-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578203', 'tblTempVendorCDR_20' ) start [2025-02-28 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578203', 'tblTempVendorCDR_20' ) end [2025-02-28 18:13:20] Production.INFO: ProcessCDR(1,14578203,1,1,2) [2025-02-28 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578203', 'tblTempUsageDetail_20' ) start [2025-02-28 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578203', 'tblTempUsageDetail_20' ) end [2025-02-28 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:13:26] Production.INFO: ==12575== Releasing lock... [2025-02-28 18:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:13:26] Production.INFO: 71.5 MB #Memory Used# [2025-02-28 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:14:05 [end_date_ymd] => 2025-02-28 18:14:05 [RateCDR] => 1 ) [2025-02-28 18:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:14:05' and `end` < '2025-02-28 18:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:14:18] Production.INFO: count ==5821 [2025-02-28 18:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:14:05 - End Time 2025-02-28 18:14:05 [2025-02-28 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578208', 'tblTempUsageDetail_20' ) start [2025-02-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578208', 'tblTempUsageDetail_20' ) end [2025-02-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578208', 'tblTempVendorCDR_20' ) start [2025-02-28 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578208', 'tblTempVendorCDR_20' ) end [2025-02-28 18:14:21] Production.INFO: ProcessCDR(1,14578208,1,1,2) [2025-02-28 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578208', 'tblTempUsageDetail_20' ) start [2025-02-28 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578208', 'tblTempUsageDetail_20' ) end [2025-02-28 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:14:26] Production.INFO: ==12707== Releasing lock... [2025-02-28 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:14:26] Production.INFO: 71.5 MB #Memory Used# [2025-02-28 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:15:06 [end_date_ymd] => 2025-02-28 18:15:06 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:15:06' and `end` < '2025-02-28 18: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-02-28 18:15:19] Production.INFO: count ==5824 [2025-02-28 18:15:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:15:06 - End Time 2025-02-28 18:15:06 [2025-02-28 18:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578213', 'tblTempUsageDetail_20' ) start [2025-02-28 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578213', 'tblTempUsageDetail_20' ) end [2025-02-28 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578213', 'tblTempVendorCDR_20' ) start [2025-02-28 18:15:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578213', 'tblTempVendorCDR_20' ) end [2025-02-28 18:15:22] Production.INFO: ProcessCDR(1,14578213,1,1,2) [2025-02-28 18:15:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578213', 'tblTempUsageDetail_20' ) start [2025-02-28 18:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578213', 'tblTempUsageDetail_20' ) end [2025-02-28 18:15:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:15:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:15:27] Production.INFO: ==12802== Releasing lock... [2025-02-28 18:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:15:27] Production.INFO: 71.5 MB #Memory Used# [2025-02-28 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:16:05 [end_date_ymd] => 2025-02-28 18:16:05 [RateCDR] => 1 ) [2025-02-28 18:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:16:05' and `end` < '2025-02-28 18:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:16:18] Production.INFO: count ==5861 [2025-02-28 18:16:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:16:05 - End Time 2025-02-28 18:16:05 [2025-02-28 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578218', 'tblTempUsageDetail_20' ) start [2025-02-28 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578218', 'tblTempUsageDetail_20' ) end [2025-02-28 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578218', 'tblTempVendorCDR_20' ) start [2025-02-28 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578218', 'tblTempVendorCDR_20' ) end [2025-02-28 18:16:21] Production.INFO: ProcessCDR(1,14578218,1,1,2) [2025-02-28 18:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578218', 'tblTempUsageDetail_20' ) start [2025-02-28 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578218', 'tblTempUsageDetail_20' ) end [2025-02-28 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:16:25] Production.INFO: ==12878== Releasing lock... [2025-02-28 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:16:25] Production.INFO: 71.75 MB #Memory Used# [2025-02-28 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:17:05 [end_date_ymd] => 2025-02-28 18:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:17:05' and `end` < '2025-02-28 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-02-28 18:17:18] Production.INFO: count ==5872 [2025-02-28 18:17:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:17:05 - End Time 2025-02-28 18:17:05 [2025-02-28 18:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578223', 'tblTempUsageDetail_20' ) start [2025-02-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578223', 'tblTempUsageDetail_20' ) end [2025-02-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578223', 'tblTempVendorCDR_20' ) start [2025-02-28 18:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578223', 'tblTempVendorCDR_20' ) end [2025-02-28 18:17:21] Production.INFO: ProcessCDR(1,14578223,1,1,2) [2025-02-28 18:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578223', 'tblTempUsageDetail_20' ) start [2025-02-28 18:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578223', 'tblTempUsageDetail_20' ) end [2025-02-28 18:17:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:17:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:17:27] Production.INFO: ==12951== Releasing lock... [2025-02-28 18:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:17:27] Production.INFO: 72 MB #Memory Used# [2025-02-28 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:18:05 [end_date_ymd] => 2025-02-28 18:18:05 [RateCDR] => 1 ) [2025-02-28 18:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:18:05' and `end` < '2025-02-28 18:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:18:18] Production.INFO: count ==5879 [2025-02-28 18:18:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:18:05 - End Time 2025-02-28 18:18:05 [2025-02-28 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578228', 'tblTempUsageDetail_20' ) start [2025-02-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578228', 'tblTempUsageDetail_20' ) end [2025-02-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578228', 'tblTempVendorCDR_20' ) start [2025-02-28 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578228', 'tblTempVendorCDR_20' ) end [2025-02-28 18:18:21] Production.INFO: ProcessCDR(1,14578228,1,1,2) [2025-02-28 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578228', 'tblTempUsageDetail_20' ) start [2025-02-28 18:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578228', 'tblTempUsageDetail_20' ) end [2025-02-28 18:18:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:18:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:18:26] Production.INFO: ==13039== Releasing lock... [2025-02-28 18:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:18:26] Production.INFO: 72 MB #Memory Used# [2025-02-28 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:19:05 [end_date_ymd] => 2025-02-28 18:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:19:05' and `end` < '2025-02-28 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-02-28 18:19:18] Production.INFO: count ==5956 [2025-02-28 18:19:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:19:05 - End Time 2025-02-28 18:19:05 [2025-02-28 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578233', 'tblTempUsageDetail_20' ) start [2025-02-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578233', 'tblTempUsageDetail_20' ) end [2025-02-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578233', 'tblTempVendorCDR_20' ) start [2025-02-28 18:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578233', 'tblTempVendorCDR_20' ) end [2025-02-28 18:19:21] Production.INFO: ProcessCDR(1,14578233,1,1,2) [2025-02-28 18:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578233', 'tblTempUsageDetail_20' ) start [2025-02-28 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578233', 'tblTempUsageDetail_20' ) end [2025-02-28 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:19:26] Production.INFO: ==13119== Releasing lock... [2025-02-28 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:19:26] Production.INFO: 72.5 MB #Memory Used# [2025-02-28 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:20:06 [end_date_ymd] => 2025-02-28 18:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:20:06' and `end` < '2025-02-28 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-02-28 18:20:19] Production.INFO: count ==5969 [2025-02-28 18:20:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:20:06 - End Time 2025-02-28 18:20:06 [2025-02-28 18:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578239', 'tblTempUsageDetail_20' ) start [2025-02-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578239', 'tblTempUsageDetail_20' ) end [2025-02-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578239', 'tblTempVendorCDR_20' ) start [2025-02-28 18:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578239', 'tblTempVendorCDR_20' ) end [2025-02-28 18:20:22] Production.INFO: ProcessCDR(1,14578239,1,1,2) [2025-02-28 18:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578239', 'tblTempUsageDetail_20' ) start [2025-02-28 18:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578239', 'tblTempUsageDetail_20' ) end [2025-02-28 18:20:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:20:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:20:27] Production.INFO: ==13194== Releasing lock... [2025-02-28 18:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:20:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-28 18:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:21:06 [end_date_ymd] => 2025-02-28 18:21:06 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:21:06' and `end` < '2025-02-28 18: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-02-28 18:21:19] Production.INFO: count ==5938 [2025-02-28 18:21:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:21:06 - End Time 2025-02-28 18:21:06 [2025-02-28 18:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578244', 'tblTempUsageDetail_20' ) start [2025-02-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578244', 'tblTempUsageDetail_20' ) end [2025-02-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578244', 'tblTempVendorCDR_20' ) start [2025-02-28 18:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578244', 'tblTempVendorCDR_20' ) end [2025-02-28 18:21:21] Production.INFO: ProcessCDR(1,14578244,1,1,2) [2025-02-28 18:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578244', 'tblTempUsageDetail_20' ) start [2025-02-28 18:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578244', 'tblTempUsageDetail_20' ) end [2025-02-28 18:21:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:21:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:21:26] Production.INFO: ==13271== Releasing lock... [2025-02-28 18:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:21:26] Production.INFO: 72.5 MB #Memory Used# [2025-02-28 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:22:06 [end_date_ymd] => 2025-02-28 18:22:06 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:22:06' and `end` < '2025-02-28 18: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-02-28 18:22:19] Production.INFO: count ==5947 [2025-02-28 18:22:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:22:06 - End Time 2025-02-28 18:22:06 [2025-02-28 18:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578249', 'tblTempUsageDetail_20' ) start [2025-02-28 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578249', 'tblTempUsageDetail_20' ) end [2025-02-28 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578249', 'tblTempVendorCDR_20' ) start [2025-02-28 18:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578249', 'tblTempVendorCDR_20' ) end [2025-02-28 18:22:22] Production.INFO: ProcessCDR(1,14578249,1,1,2) [2025-02-28 18:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578249', 'tblTempUsageDetail_20' ) start [2025-02-28 18:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578249', 'tblTempUsageDetail_20' ) end [2025-02-28 18:22:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:22:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:22:27] Production.INFO: ==13352== Releasing lock... [2025-02-28 18:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:22:27] Production.INFO: 72.5 MB #Memory Used# [2025-02-28 18:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:23:06 [end_date_ymd] => 2025-02-28 18:23:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:23:06' and `end` < '2025-02-28 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-02-28 18:23:19] Production.INFO: count ==6006 [2025-02-28 18:23:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:23:06 - End Time 2025-02-28 18:23:06 [2025-02-28 18:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578254', 'tblTempUsageDetail_20' ) start [2025-02-28 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578254', 'tblTempUsageDetail_20' ) end [2025-02-28 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578254', 'tblTempVendorCDR_20' ) start [2025-02-28 18:23:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578254', 'tblTempVendorCDR_20' ) end [2025-02-28 18:23:22] Production.INFO: ProcessCDR(1,14578254,1,1,2) [2025-02-28 18:23:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578254', 'tblTempUsageDetail_20' ) start [2025-02-28 18:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578254', 'tblTempUsageDetail_20' ) end [2025-02-28 18:23:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:23:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:23:27] Production.INFO: ==13432== Releasing lock... [2025-02-28 18:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:23:27] Production.INFO: 73 MB #Memory Used# [2025-02-28 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:24:06 [end_date_ymd] => 2025-02-28 18:24:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:24:06' and `end` < '2025-02-28 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-02-28 18:24:19] Production.INFO: count ==6000 [2025-02-28 18:24:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:24:06 - End Time 2025-02-28 18:24:06 [2025-02-28 18:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578259', 'tblTempUsageDetail_20' ) start [2025-02-28 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578259', 'tblTempUsageDetail_20' ) end [2025-02-28 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578259', 'tblTempVendorCDR_20' ) start [2025-02-28 18:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578259', 'tblTempVendorCDR_20' ) end [2025-02-28 18:24:22] Production.INFO: ProcessCDR(1,14578259,1,1,2) [2025-02-28 18:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578259', 'tblTempUsageDetail_20' ) start [2025-02-28 18:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578259', 'tblTempUsageDetail_20' ) end [2025-02-28 18:24:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:24:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:24:27] Production.INFO: ==13509== Releasing lock... [2025-02-28 18:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:24:27] Production.INFO: 72.75 MB #Memory Used# [2025-02-28 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:25:05 [end_date_ymd] => 2025-02-28 18:25:05 [RateCDR] => 1 ) [2025-02-28 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:25:05' and `end` < '2025-02-28 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:25:18] Production.INFO: count ==6009 [2025-02-28 18:25:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:25:05 - End Time 2025-02-28 18:25:05 [2025-02-28 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578264', 'tblTempUsageDetail_20' ) start [2025-02-28 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578264', 'tblTempUsageDetail_20' ) end [2025-02-28 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578264', 'tblTempVendorCDR_20' ) start [2025-02-28 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578264', 'tblTempVendorCDR_20' ) end [2025-02-28 18:25:21] Production.INFO: ProcessCDR(1,14578264,1,1,2) [2025-02-28 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578264', 'tblTempUsageDetail_20' ) start [2025-02-28 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578264', 'tblTempUsageDetail_20' ) end [2025-02-28 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:25:26] Production.INFO: ==13593== Releasing lock... [2025-02-28 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:25:26] Production.INFO: 73 MB #Memory Used# [2025-02-28 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:26:05 [end_date_ymd] => 2025-02-28 18:26:05 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:26:05' and `end` < '2025-02-28 18: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-02-28 18:26:18] Production.INFO: count ==6008 [2025-02-28 18:26:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:26:05 - End Time 2025-02-28 18:26:05 [2025-02-28 18:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578269', 'tblTempUsageDetail_20' ) start [2025-02-28 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578269', 'tblTempUsageDetail_20' ) end [2025-02-28 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578269', 'tblTempVendorCDR_20' ) start [2025-02-28 18:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578269', 'tblTempVendorCDR_20' ) end [2025-02-28 18:26:21] Production.INFO: ProcessCDR(1,14578269,1,1,2) [2025-02-28 18:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578269', 'tblTempUsageDetail_20' ) start [2025-02-28 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578269', 'tblTempUsageDetail_20' ) end [2025-02-28 18:26:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:26:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:26:25] Production.INFO: ==13664== Releasing lock... [2025-02-28 18:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:26:25] Production.INFO: 73 MB #Memory Used# [2025-02-28 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:27:05 [end_date_ymd] => 2025-02-28 18:27:05 [RateCDR] => 1 ) [2025-02-28 18:27:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:27:05' and `end` < '2025-02-28 18:27:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:27:18] Production.INFO: count ==6081 [2025-02-28 18:27:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:27:05 - End Time 2025-02-28 18:27:05 [2025-02-28 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578274', 'tblTempUsageDetail_20' ) start [2025-02-28 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578274', 'tblTempUsageDetail_20' ) end [2025-02-28 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578274', 'tblTempVendorCDR_20' ) start [2025-02-28 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578274', 'tblTempVendorCDR_20' ) end [2025-02-28 18:27:21] Production.INFO: ProcessCDR(1,14578274,1,1,2) [2025-02-28 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578274', 'tblTempUsageDetail_20' ) start [2025-02-28 18:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578274', 'tblTempUsageDetail_20' ) end [2025-02-28 18:27:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:27:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:27:26] Production.INFO: ==13734== Releasing lock... [2025-02-28 18:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:27:26] Production.INFO: 73.5 MB #Memory Used# [2025-02-28 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:28:05 [end_date_ymd] => 2025-02-28 18:28:05 [RateCDR] => 1 ) [2025-02-28 18:28:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:28:05' and `end` < '2025-02-28 18:28:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:28:18] Production.INFO: count ==6172 [2025-02-28 18:28:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:28:05 - End Time 2025-02-28 18:28:05 [2025-02-28 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578279', 'tblTempUsageDetail_20' ) start [2025-02-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578279', 'tblTempUsageDetail_20' ) end [2025-02-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578279', 'tblTempVendorCDR_20' ) start [2025-02-28 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578279', 'tblTempVendorCDR_20' ) end [2025-02-28 18:28:20] Production.INFO: ProcessCDR(1,14578279,1,1,2) [2025-02-28 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578279', 'tblTempUsageDetail_20' ) start [2025-02-28 18:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578279', 'tblTempUsageDetail_20' ) end [2025-02-28 18:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:28:26] Production.INFO: ==13807== Releasing lock... [2025-02-28 18:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:28:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-28 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:29:05 [end_date_ymd] => 2025-02-28 18:29:05 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:29:05' and `end` < '2025-02-28 18: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-02-28 18:29:18] Production.INFO: count ==6174 [2025-02-28 18:29:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:29:05 - End Time 2025-02-28 18:29:05 [2025-02-28 18:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578284', 'tblTempUsageDetail_20' ) start [2025-02-28 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578284', 'tblTempUsageDetail_20' ) end [2025-02-28 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578284', 'tblTempVendorCDR_20' ) start [2025-02-28 18:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578284', 'tblTempVendorCDR_20' ) end [2025-02-28 18:29:21] Production.INFO: ProcessCDR(1,14578284,1,1,2) [2025-02-28 18:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578284', 'tblTempUsageDetail_20' ) start [2025-02-28 18:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578284', 'tblTempUsageDetail_20' ) end [2025-02-28 18:29:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:29:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:29:26] Production.INFO: ==13885== Releasing lock... [2025-02-28 18:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:29:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-28 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:30:06 [end_date_ymd] => 2025-02-28 18:30:06 [RateCDR] => 1 ) [2025-02-28 18:30:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:30:06' and `end` < '2025-02-28 18:30:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:30:19] Production.INFO: count ==6184 [2025-02-28 18:30:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:30:06 - End Time 2025-02-28 18:30:06 [2025-02-28 18:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578290', 'tblTempUsageDetail_20' ) start [2025-02-28 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578290', 'tblTempUsageDetail_20' ) end [2025-02-28 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578290', 'tblTempVendorCDR_20' ) start [2025-02-28 18:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578290', 'tblTempVendorCDR_20' ) end [2025-02-28 18:30:22] Production.INFO: ProcessCDR(1,14578290,1,1,2) [2025-02-28 18:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578290', 'tblTempUsageDetail_20' ) start [2025-02-28 18:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578290', 'tblTempUsageDetail_20' ) end [2025-02-28 18:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:30:26] Production.INFO: ==14008== Releasing lock... [2025-02-28 18:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:30:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-28 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:31:06 [end_date_ymd] => 2025-02-28 18:31:06 [RateCDR] => 1 ) [2025-02-28 18:31:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:31:06' and `end` < '2025-02-28 18:31:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:31:19] Production.INFO: count ==6192 [2025-02-28 18:31:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:31:06 - End Time 2025-02-28 18:31:06 [2025-02-28 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578295', 'tblTempUsageDetail_20' ) start [2025-02-28 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578295', 'tblTempUsageDetail_20' ) end [2025-02-28 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578295', 'tblTempVendorCDR_20' ) start [2025-02-28 18:31:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578295', 'tblTempVendorCDR_20' ) end [2025-02-28 18:31:22] Production.INFO: ProcessCDR(1,14578295,1,1,2) [2025-02-28 18:31:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578295', 'tblTempUsageDetail_20' ) start [2025-02-28 18:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578295', 'tblTempUsageDetail_20' ) end [2025-02-28 18:31:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:31:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:31:27] Production.INFO: ==14092== Releasing lock... [2025-02-28 18:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:31:27] Production.INFO: 74.25 MB #Memory Used# [2025-02-28 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:32:05 [end_date_ymd] => 2025-02-28 18:32:05 [RateCDR] => 1 ) [2025-02-28 18:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:32:05' and `end` < '2025-02-28 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-02-28 18:32:18] Production.INFO: count ==6217 [2025-02-28 18:32:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:32:05 - End Time 2025-02-28 18:32:05 [2025-02-28 18:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578300', 'tblTempUsageDetail_20' ) start [2025-02-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578300', 'tblTempUsageDetail_20' ) end [2025-02-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578300', 'tblTempVendorCDR_20' ) start [2025-02-28 18:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578300', 'tblTempVendorCDR_20' ) end [2025-02-28 18:32:21] Production.INFO: ProcessCDR(1,14578300,1,1,2) [2025-02-28 18:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578300', 'tblTempUsageDetail_20' ) start [2025-02-28 18:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578300', 'tblTempUsageDetail_20' ) end [2025-02-28 18:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:32:26] Production.INFO: ==14164== Releasing lock... [2025-02-28 18:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:32:26] Production.INFO: 74.5 MB #Memory Used# [2025-02-28 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:33:05 [end_date_ymd] => 2025-02-28 18:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:33:05' and `end` < '2025-02-28 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-02-28 18:33:18] Production.INFO: count ==6235 [2025-02-28 18:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:33:05 - End Time 2025-02-28 18:33:05 [2025-02-28 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578305', 'tblTempUsageDetail_20' ) start [2025-02-28 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578305', 'tblTempUsageDetail_20' ) end [2025-02-28 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578305', 'tblTempVendorCDR_20' ) start [2025-02-28 18:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578305', 'tblTempVendorCDR_20' ) end [2025-02-28 18:33:21] Production.INFO: ProcessCDR(1,14578305,1,1,2) [2025-02-28 18:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578305', 'tblTempUsageDetail_20' ) start [2025-02-28 18:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578305', 'tblTempUsageDetail_20' ) end [2025-02-28 18:33:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:33:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:33:26] Production.INFO: ==14236== Releasing lock... [2025-02-28 18:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:33:26] Production.INFO: 74.5 MB #Memory Used# [2025-02-28 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:34:05 [end_date_ymd] => 2025-02-28 18:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:34:05' and `end` < '2025-02-28 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-02-28 18:34:18] Production.INFO: count ==6307 [2025-02-28 18:34:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:34:05 - End Time 2025-02-28 18:34:05 [2025-02-28 18:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578310', 'tblTempUsageDetail_20' ) start [2025-02-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578310', 'tblTempUsageDetail_20' ) end [2025-02-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578310', 'tblTempVendorCDR_20' ) start [2025-02-28 18:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578310', 'tblTempVendorCDR_20' ) end [2025-02-28 18:34:21] Production.INFO: ProcessCDR(1,14578310,1,1,2) [2025-02-28 18:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578310', 'tblTempUsageDetail_20' ) start [2025-02-28 18:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578310', 'tblTempUsageDetail_20' ) end [2025-02-28 18:34:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:34:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:34:26] Production.INFO: ==14328== Releasing lock... [2025-02-28 18:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:34:26] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:35:05 [end_date_ymd] => 2025-02-28 18:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:35:05' and `end` < '2025-02-28 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-02-28 18:35:18] Production.INFO: count ==6365 [2025-02-28 18:35:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:35:05 - End Time 2025-02-28 18:35:05 [2025-02-28 18:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578315', 'tblTempUsageDetail_20' ) start [2025-02-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578315', 'tblTempUsageDetail_20' ) end [2025-02-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578315', 'tblTempVendorCDR_20' ) start [2025-02-28 18:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578315', 'tblTempVendorCDR_20' ) end [2025-02-28 18:35:21] Production.INFO: ProcessCDR(1,14578315,1,1,2) [2025-02-28 18:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578315', 'tblTempUsageDetail_20' ) start [2025-02-28 18:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578315', 'tblTempUsageDetail_20' ) end [2025-02-28 18:35:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:35:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:35:26] Production.INFO: ==14415== Releasing lock... [2025-02-28 18:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:35:26] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:36:05 [end_date_ymd] => 2025-02-28 18:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:36:05' and `end` < '2025-02-28 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-02-28 18:36:18] Production.INFO: count ==6362 [2025-02-28 18:36:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:36:05 - End Time 2025-02-28 18:36:05 [2025-02-28 18:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578320', 'tblTempUsageDetail_20' ) start [2025-02-28 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578320', 'tblTempUsageDetail_20' ) end [2025-02-28 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578320', 'tblTempVendorCDR_20' ) start [2025-02-28 18:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578320', 'tblTempVendorCDR_20' ) end [2025-02-28 18:36:21] Production.INFO: ProcessCDR(1,14578320,1,1,2) [2025-02-28 18:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578320', 'tblTempUsageDetail_20' ) start [2025-02-28 18:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578320', 'tblTempUsageDetail_20' ) end [2025-02-28 18:36:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:36:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:36:26] Production.INFO: ==14492== Releasing lock... [2025-02-28 18:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:36:26] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:37:05 [end_date_ymd] => 2025-02-28 18:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:37:05' and `end` < '2025-02-28 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-02-28 18:37:18] Production.INFO: count ==6367 [2025-02-28 18:37:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:37:05 - End Time 2025-02-28 18:37:05 [2025-02-28 18:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578325', 'tblTempUsageDetail_20' ) start [2025-02-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578325', 'tblTempUsageDetail_20' ) end [2025-02-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578325', 'tblTempVendorCDR_20' ) start [2025-02-28 18:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578325', 'tblTempVendorCDR_20' ) end [2025-02-28 18:37:21] Production.INFO: ProcessCDR(1,14578325,1,1,2) [2025-02-28 18:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578325', 'tblTempUsageDetail_20' ) start [2025-02-28 18:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578325', 'tblTempUsageDetail_20' ) end [2025-02-28 18:37:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:37:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:37:26] Production.INFO: ==14572== Releasing lock... [2025-02-28 18:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:37:26] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:38:05 [end_date_ymd] => 2025-02-28 18:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:38:05' and `end` < '2025-02-28 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-02-28 18:38:18] Production.INFO: count ==6361 [2025-02-28 18:38:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:38:05 - End Time 2025-02-28 18:38:05 [2025-02-28 18:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578330', 'tblTempUsageDetail_20' ) start [2025-02-28 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578330', 'tblTempUsageDetail_20' ) end [2025-02-28 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578330', 'tblTempVendorCDR_20' ) start [2025-02-28 18:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578330', 'tblTempVendorCDR_20' ) end [2025-02-28 18:38:21] Production.INFO: ProcessCDR(1,14578330,1,1,2) [2025-02-28 18:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578330', 'tblTempUsageDetail_20' ) start [2025-02-28 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578330', 'tblTempUsageDetail_20' ) end [2025-02-28 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:38:24] Production.INFO: ==14655== Releasing lock... [2025-02-28 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:38:24] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:39:05 [end_date_ymd] => 2025-02-28 18:39:05 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:39:05' and `end` < '2025-02-28 18: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-02-28 18:39:18] Production.INFO: count ==6363 [2025-02-28 18:39:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:39:05 - End Time 2025-02-28 18:39:05 [2025-02-28 18:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578335', 'tblTempUsageDetail_20' ) start [2025-02-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578335', 'tblTempUsageDetail_20' ) end [2025-02-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578335', 'tblTempVendorCDR_20' ) start [2025-02-28 18:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578335', 'tblTempVendorCDR_20' ) end [2025-02-28 18:39:21] Production.INFO: ProcessCDR(1,14578335,1,1,2) [2025-02-28 18:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578335', 'tblTempUsageDetail_20' ) start [2025-02-28 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578335', 'tblTempUsageDetail_20' ) end [2025-02-28 18:39:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:39:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:39:26] Production.INFO: ==14737== Releasing lock... [2025-02-28 18:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:39:26] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:40:06 [end_date_ymd] => 2025-02-28 18:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:40:06' and `end` < '2025-02-28 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-02-28 18:40:19] Production.INFO: count ==6356 [2025-02-28 18:40:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:40:06 - End Time 2025-02-28 18:40:06 [2025-02-28 18:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578341', 'tblTempUsageDetail_20' ) start [2025-02-28 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578341', 'tblTempUsageDetail_20' ) end [2025-02-28 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578341', 'tblTempVendorCDR_20' ) start [2025-02-28 18:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578341', 'tblTempVendorCDR_20' ) end [2025-02-28 18:40:22] Production.INFO: ProcessCDR(1,14578341,1,1,2) [2025-02-28 18:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578341', 'tblTempUsageDetail_20' ) start [2025-02-28 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578341', 'tblTempUsageDetail_20' ) end [2025-02-28 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:40:26] Production.INFO: ==14815== Releasing lock... [2025-02-28 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:40:26] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:41:05 [end_date_ymd] => 2025-02-28 18:41:05 [RateCDR] => 1 ) [2025-02-28 18:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:41:05' and `end` < '2025-02-28 18:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:41:18] Production.INFO: count ==6316 [2025-02-28 18:41:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:41:05 - End Time 2025-02-28 18:41:05 [2025-02-28 18:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578346', 'tblTempUsageDetail_20' ) start [2025-02-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578346', 'tblTempUsageDetail_20' ) end [2025-02-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578346', 'tblTempVendorCDR_20' ) start [2025-02-28 18:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578346', 'tblTempVendorCDR_20' ) end [2025-02-28 18:41:21] Production.INFO: ProcessCDR(1,14578346,1,1,2) [2025-02-28 18:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578346', 'tblTempUsageDetail_20' ) start [2025-02-28 18:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578346', 'tblTempUsageDetail_20' ) end [2025-02-28 18:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:41:26] Production.INFO: ==14894== Releasing lock... [2025-02-28 18:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:41:26] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 18:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:42:06 [end_date_ymd] => 2025-02-28 18:42:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:42:06' and `end` < '2025-02-28 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-02-28 18:42:19] Production.INFO: count ==6324 [2025-02-28 18:42:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:42:06 - End Time 2025-02-28 18:42:06 [2025-02-28 18:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578351', 'tblTempUsageDetail_20' ) start [2025-02-28 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578351', 'tblTempUsageDetail_20' ) end [2025-02-28 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578351', 'tblTempVendorCDR_20' ) start [2025-02-28 18:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578351', 'tblTempVendorCDR_20' ) end [2025-02-28 18:42:22] Production.INFO: ProcessCDR(1,14578351,1,1,2) [2025-02-28 18:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578351', 'tblTempUsageDetail_20' ) start [2025-02-28 18:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578351', 'tblTempUsageDetail_20' ) end [2025-02-28 18:42:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:42:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:42:27] Production.INFO: ==14972== Releasing lock... [2025-02-28 18:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:42:27] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:43:05 [end_date_ymd] => 2025-02-28 18:43:05 [RateCDR] => 1 ) [2025-02-28 18:43:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:43:05' and `end` < '2025-02-28 18:43:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:43:18] Production.INFO: count ==6332 [2025-02-28 18:43:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:43:05 - End Time 2025-02-28 18:43:05 [2025-02-28 18:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578356', 'tblTempUsageDetail_20' ) start [2025-02-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578356', 'tblTempUsageDetail_20' ) end [2025-02-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578356', 'tblTempVendorCDR_20' ) start [2025-02-28 18:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578356', 'tblTempVendorCDR_20' ) end [2025-02-28 18:43:21] Production.INFO: ProcessCDR(1,14578356,1,1,2) [2025-02-28 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578356', 'tblTempUsageDetail_20' ) start [2025-02-28 18:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578356', 'tblTempUsageDetail_20' ) end [2025-02-28 18:43:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:43:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:43:26] Production.INFO: ==15059== Releasing lock... [2025-02-28 18:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:43:26] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:44:06 [end_date_ymd] => 2025-02-28 18:44:06 [RateCDR] => 1 ) [2025-02-28 18: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-02-28 15:44:06' and `end` < '2025-02-28 18: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-02-28 18:44:19] Production.INFO: count ==6328 [2025-02-28 18:44:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:44:06 - End Time 2025-02-28 18:44:06 [2025-02-28 18:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578361', 'tblTempUsageDetail_20' ) start [2025-02-28 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578361', 'tblTempUsageDetail_20' ) end [2025-02-28 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578361', 'tblTempVendorCDR_20' ) start [2025-02-28 18:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578361', 'tblTempVendorCDR_20' ) end [2025-02-28 18:44:22] Production.INFO: ProcessCDR(1,14578361,1,1,2) [2025-02-28 18:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578361', 'tblTempUsageDetail_20' ) start [2025-02-28 18:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578361', 'tblTempUsageDetail_20' ) end [2025-02-28 18:44:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:44:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:44:25] Production.INFO: ==15140== Releasing lock... [2025-02-28 18:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:44:25] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:45:05 [end_date_ymd] => 2025-02-28 18:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:45:05' and `end` < '2025-02-28 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-02-28 18:45:18] Production.INFO: count ==6336 [2025-02-28 18:45:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:45:05 - End Time 2025-02-28 18:45:05 [2025-02-28 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578366', 'tblTempUsageDetail_20' ) start [2025-02-28 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578366', 'tblTempUsageDetail_20' ) end [2025-02-28 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578366', 'tblTempVendorCDR_20' ) start [2025-02-28 18:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578366', 'tblTempVendorCDR_20' ) end [2025-02-28 18:45:21] Production.INFO: ProcessCDR(1,14578366,1,1,2) [2025-02-28 18:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578366', 'tblTempUsageDetail_20' ) start [2025-02-28 18:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578366', 'tblTempUsageDetail_20' ) end [2025-02-28 18:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:45:24] Production.INFO: ==15255== Releasing lock... [2025-02-28 18:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:45:24] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:46:05 [end_date_ymd] => 2025-02-28 18:46:05 [RateCDR] => 1 ) [2025-02-28 18:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:46:05' and `end` < '2025-02-28 18:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:46:18] Production.INFO: count ==6456 [2025-02-28 18:46:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:46:05 - End Time 2025-02-28 18:46:05 [2025-02-28 18:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578371', 'tblTempUsageDetail_20' ) start [2025-02-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578371', 'tblTempUsageDetail_20' ) end [2025-02-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578371', 'tblTempVendorCDR_20' ) start [2025-02-28 18:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578371', 'tblTempVendorCDR_20' ) end [2025-02-28 18:46:21] Production.INFO: ProcessCDR(1,14578371,1,1,2) [2025-02-28 18:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578371', 'tblTempUsageDetail_20' ) start [2025-02-28 18:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578371', 'tblTempUsageDetail_20' ) end [2025-02-28 18:46:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:46:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:46:27] Production.INFO: ==15332== Releasing lock... [2025-02-28 18:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:46:27] Production.INFO: 76.25 MB #Memory Used# [2025-02-28 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:47:05 [end_date_ymd] => 2025-02-28 18:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:47:05' and `end` < '2025-02-28 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-02-28 18:47:18] Production.INFO: count ==6482 [2025-02-28 18:47:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:47:05 - End Time 2025-02-28 18:47:05 [2025-02-28 18:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578376', 'tblTempUsageDetail_20' ) start [2025-02-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578376', 'tblTempUsageDetail_20' ) end [2025-02-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578376', 'tblTempVendorCDR_20' ) start [2025-02-28 18:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578376', 'tblTempVendorCDR_20' ) end [2025-02-28 18:47:21] Production.INFO: ProcessCDR(1,14578376,1,1,2) [2025-02-28 18:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578376', 'tblTempUsageDetail_20' ) start [2025-02-28 18:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578376', 'tblTempUsageDetail_20' ) end [2025-02-28 18:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:47:24] Production.INFO: ==15411== Releasing lock... [2025-02-28 18:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:47:24] Production.INFO: 76.5 MB #Memory Used# [2025-02-28 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:48:05 [end_date_ymd] => 2025-02-28 18:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:48:05' and `end` < '2025-02-28 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-02-28 18:48:18] Production.INFO: count ==6493 [2025-02-28 18:48:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:48:05 - End Time 2025-02-28 18:48:05 [2025-02-28 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578381', 'tblTempUsageDetail_20' ) start [2025-02-28 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578381', 'tblTempUsageDetail_20' ) end [2025-02-28 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578381', 'tblTempVendorCDR_20' ) start [2025-02-28 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578381', 'tblTempVendorCDR_20' ) end [2025-02-28 18:48:21] Production.INFO: ProcessCDR(1,14578381,1,1,2) [2025-02-28 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578381', 'tblTempUsageDetail_20' ) start [2025-02-28 18:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578381', 'tblTempUsageDetail_20' ) end [2025-02-28 18:48:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:48:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:48:27] Production.INFO: ==15484== Releasing lock... [2025-02-28 18:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:48:27] Production.INFO: 76.5 MB #Memory Used# [2025-02-28 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:49:05 [end_date_ymd] => 2025-02-28 18:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:49:05' and `end` < '2025-02-28 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-02-28 18:49:18] Production.INFO: count ==6491 [2025-02-28 18:49:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:49:05 - End Time 2025-02-28 18:49:05 [2025-02-28 18:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578386', 'tblTempUsageDetail_20' ) start [2025-02-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578386', 'tblTempUsageDetail_20' ) end [2025-02-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578386', 'tblTempVendorCDR_20' ) start [2025-02-28 18:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578386', 'tblTempVendorCDR_20' ) end [2025-02-28 18:49:21] Production.INFO: ProcessCDR(1,14578386,1,1,2) [2025-02-28 18:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578386', 'tblTempUsageDetail_20' ) start [2025-02-28 18:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578386', 'tblTempUsageDetail_20' ) end [2025-02-28 18:49:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:49:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:49:26] Production.INFO: ==15564== Releasing lock... [2025-02-28 18:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:49:26] Production.INFO: 76.5 MB #Memory Used# [2025-02-28 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:50:06 [end_date_ymd] => 2025-02-28 18:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:50:06' and `end` < '2025-02-28 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-02-28 18:50:19] Production.INFO: count ==6462 [2025-02-28 18:50:22] Production.ERROR: pbx CDR StartTime 2025-02-28 15:50:06 - End Time 2025-02-28 18:50:06 [2025-02-28 18:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578391', 'tblTempUsageDetail_20' ) start [2025-02-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578391', 'tblTempUsageDetail_20' ) end [2025-02-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578391', 'tblTempVendorCDR_20' ) start [2025-02-28 18:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578391', 'tblTempVendorCDR_20' ) end [2025-02-28 18:50:22] Production.INFO: ProcessCDR(1,14578391,1,1,2) [2025-02-28 18:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578391', 'tblTempUsageDetail_20' ) start [2025-02-28 18:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578391', 'tblTempUsageDetail_20' ) end [2025-02-28 18:50:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:50:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:50:27] Production.INFO: ==15640== Releasing lock... [2025-02-28 18:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:50:27] Production.INFO: 76.25 MB #Memory Used# [2025-02-28 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:51:05 [end_date_ymd] => 2025-02-28 18:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:51:05' and `end` < '2025-02-28 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-02-28 18:51:18] Production.INFO: count ==6391 [2025-02-28 18:51:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:51:05 - End Time 2025-02-28 18:51:05 [2025-02-28 18:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578397', 'tblTempUsageDetail_20' ) start [2025-02-28 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578397', 'tblTempUsageDetail_20' ) end [2025-02-28 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578397', 'tblTempVendorCDR_20' ) start [2025-02-28 18:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578397', 'tblTempVendorCDR_20' ) end [2025-02-28 18:51:21] Production.INFO: ProcessCDR(1,14578397,1,1,2) [2025-02-28 18:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578397', 'tblTempUsageDetail_20' ) start [2025-02-28 18:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578397', 'tblTempUsageDetail_20' ) end [2025-02-28 18:51:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:51:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:51:26] Production.INFO: ==15716== Releasing lock... [2025-02-28 18:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:51:26] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:52:05 [end_date_ymd] => 2025-02-28 18:52:05 [RateCDR] => 1 ) [2025-02-28 18:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:52:05' and `end` < '2025-02-28 18:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:52:18] Production.INFO: count ==6377 [2025-02-28 18:52:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:52:05 - End Time 2025-02-28 18:52:05 [2025-02-28 18:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578402', 'tblTempUsageDetail_20' ) start [2025-02-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578402', 'tblTempUsageDetail_20' ) end [2025-02-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578402', 'tblTempVendorCDR_20' ) start [2025-02-28 18:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578402', 'tblTempVendorCDR_20' ) end [2025-02-28 18:52:21] Production.INFO: ProcessCDR(1,14578402,1,1,2) [2025-02-28 18:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578402', 'tblTempUsageDetail_20' ) start [2025-02-28 18:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578402', 'tblTempUsageDetail_20' ) end [2025-02-28 18:52:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:52:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:52:26] Production.INFO: ==15788== Releasing lock... [2025-02-28 18:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:52:26] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:53:05 [end_date_ymd] => 2025-02-28 18:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:53:05' and `end` < '2025-02-28 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-02-28 18:53:17] Production.INFO: count ==6382 [2025-02-28 18:53:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:53:05 - End Time 2025-02-28 18:53:05 [2025-02-28 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578407', 'tblTempUsageDetail_20' ) start [2025-02-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578407', 'tblTempUsageDetail_20' ) end [2025-02-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578407', 'tblTempVendorCDR_20' ) start [2025-02-28 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578407', 'tblTempVendorCDR_20' ) end [2025-02-28 18:53:20] Production.INFO: ProcessCDR(1,14578407,1,1,2) [2025-02-28 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578407', 'tblTempUsageDetail_20' ) start [2025-02-28 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578407', 'tblTempUsageDetail_20' ) end [2025-02-28 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:53:24] Production.INFO: ==15871== Releasing lock... [2025-02-28 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:53:24] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:54:05 [end_date_ymd] => 2025-02-28 18:54:05 [RateCDR] => 1 ) [2025-02-28 18:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:54:05' and `end` < '2025-02-28 18:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:54:18] Production.INFO: count ==6374 [2025-02-28 18:54:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:54:05 - End Time 2025-02-28 18:54:05 [2025-02-28 18:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578412', 'tblTempUsageDetail_20' ) start [2025-02-28 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578412', 'tblTempUsageDetail_20' ) end [2025-02-28 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578412', 'tblTempVendorCDR_20' ) start [2025-02-28 18:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578412', 'tblTempVendorCDR_20' ) end [2025-02-28 18:54:21] Production.INFO: ProcessCDR(1,14578412,1,1,2) [2025-02-28 18:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578412', 'tblTempUsageDetail_20' ) start [2025-02-28 18:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578412', 'tblTempUsageDetail_20' ) end [2025-02-28 18:54:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:54:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:54:24] Production.INFO: ==15947== Releasing lock... [2025-02-28 18:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:54:24] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:55:05 [end_date_ymd] => 2025-02-28 18:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:55:05' and `end` < '2025-02-28 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-02-28 18:55:18] Production.INFO: count ==6371 [2025-02-28 18:55:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:55:05 - End Time 2025-02-28 18:55:05 [2025-02-28 18:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578417', 'tblTempUsageDetail_20' ) start [2025-02-28 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578417', 'tblTempUsageDetail_20' ) end [2025-02-28 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578417', 'tblTempVendorCDR_20' ) start [2025-02-28 18:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578417', 'tblTempVendorCDR_20' ) end [2025-02-28 18:55:21] Production.INFO: ProcessCDR(1,14578417,1,1,2) [2025-02-28 18:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578417', 'tblTempUsageDetail_20' ) start [2025-02-28 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578417', 'tblTempUsageDetail_20' ) end [2025-02-28 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:55:24] Production.INFO: ==16023== Releasing lock... [2025-02-28 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:55:24] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:56:05 [end_date_ymd] => 2025-02-28 18:56:05 [RateCDR] => 1 ) [2025-02-28 18:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:56:05' and `end` < '2025-02-28 18:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:56:18] Production.INFO: count ==6367 [2025-02-28 18:56:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:56:05 - End Time 2025-02-28 18:56:05 [2025-02-28 18:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578422', 'tblTempUsageDetail_20' ) start [2025-02-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578422', 'tblTempUsageDetail_20' ) end [2025-02-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578422', 'tblTempVendorCDR_20' ) start [2025-02-28 18:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578422', 'tblTempVendorCDR_20' ) end [2025-02-28 18:56:21] Production.INFO: ProcessCDR(1,14578422,1,1,2) [2025-02-28 18:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578422', 'tblTempUsageDetail_20' ) start [2025-02-28 18:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578422', 'tblTempUsageDetail_20' ) end [2025-02-28 18:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:56:25] Production.INFO: ==16100== Releasing lock... [2025-02-28 18:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:56:25] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:57:05 [end_date_ymd] => 2025-02-28 18:57:05 [RateCDR] => 1 ) [2025-02-28 18:57:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 15:57:05' and `end` < '2025-02-28 18:57:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 18:57:18] Production.INFO: count ==6371 [2025-02-28 18:57:20] Production.ERROR: pbx CDR StartTime 2025-02-28 15:57:05 - End Time 2025-02-28 18:57:05 [2025-02-28 18:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578427', 'tblTempUsageDetail_20' ) start [2025-02-28 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578427', 'tblTempUsageDetail_20' ) end [2025-02-28 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578427', 'tblTempVendorCDR_20' ) start [2025-02-28 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578427', 'tblTempVendorCDR_20' ) end [2025-02-28 18:57:21] Production.INFO: ProcessCDR(1,14578427,1,1,2) [2025-02-28 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578427', 'tblTempUsageDetail_20' ) start [2025-02-28 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578427', 'tblTempUsageDetail_20' ) end [2025-02-28 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:57:25] Production.INFO: ==16177== Releasing lock... [2025-02-28 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:57:25] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:58:05 [end_date_ymd] => 2025-02-28 18:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:58:05' and `end` < '2025-02-28 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-02-28 18:58:18] Production.INFO: count ==6357 [2025-02-28 18:58:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:58:05 - End Time 2025-02-28 18:58:05 [2025-02-28 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578432', 'tblTempUsageDetail_20' ) start [2025-02-28 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578432', 'tblTempUsageDetail_20' ) end [2025-02-28 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578432', 'tblTempVendorCDR_20' ) start [2025-02-28 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578432', 'tblTempVendorCDR_20' ) end [2025-02-28 18:58:21] Production.INFO: ProcessCDR(1,14578432,1,1,2) [2025-02-28 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578432', 'tblTempUsageDetail_20' ) start [2025-02-28 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578432', 'tblTempUsageDetail_20' ) end [2025-02-28 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:58:25] Production.INFO: ==16263== Releasing lock... [2025-02-28 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:58:25] Production.INFO: 75.5 MB #Memory Used# [2025-02-28 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 15:59:05 [end_date_ymd] => 2025-02-28 18:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 15:59:05' and `end` < '2025-02-28 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-02-28 18:59:18] Production.INFO: count ==6379 [2025-02-28 18:59:21] Production.ERROR: pbx CDR StartTime 2025-02-28 15:59:05 - End Time 2025-02-28 18:59:05 [2025-02-28 18:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578437', 'tblTempUsageDetail_20' ) start [2025-02-28 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578437', 'tblTempUsageDetail_20' ) end [2025-02-28 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578437', 'tblTempVendorCDR_20' ) start [2025-02-28 18:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578437', 'tblTempVendorCDR_20' ) end [2025-02-28 18:59:21] Production.INFO: ProcessCDR(1,14578437,1,1,2) [2025-02-28 18:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 18:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578437', 'tblTempUsageDetail_20' ) start [2025-02-28 18:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578437', 'tblTempUsageDetail_20' ) end [2025-02-28 18:59:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 18:59:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 18:59:26] Production.INFO: ==16343== Releasing lock... [2025-02-28 18:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 18:59:26] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:00:06 [end_date_ymd] => 2025-02-28 19:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:00:06' and `end` < '2025-02-28 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-02-28 19:00:19] Production.INFO: count ==6383 [2025-02-28 19:00:23] Production.ERROR: pbx CDR StartTime 2025-02-28 16:00:06 - End Time 2025-02-28 19:00:06 [2025-02-28 19:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578443', 'tblTempUsageDetail_20' ) start [2025-02-28 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578443', 'tblTempUsageDetail_20' ) end [2025-02-28 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578443', 'tblTempVendorCDR_20' ) start [2025-02-28 19:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578443', 'tblTempVendorCDR_20' ) end [2025-02-28 19:00:23] Production.INFO: ProcessCDR(1,14578443,1,1,2) [2025-02-28 19:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578443', 'tblTempUsageDetail_20' ) start [2025-02-28 19:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578443', 'tblTempUsageDetail_20' ) end [2025-02-28 19:00:28] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:00:28] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:00:28] Production.INFO: ==16467== Releasing lock... [2025-02-28 19:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:00:28] Production.INFO: 75.75 MB #Memory Used# [2025-02-28 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:01:05 [end_date_ymd] => 2025-02-28 19:01:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:01:05' and `end` < '2025-02-28 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-02-28 19:01:18] Production.INFO: count ==6322 [2025-02-28 19:01:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:01:05 - End Time 2025-02-28 19:01:05 [2025-02-28 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578448', 'tblTempUsageDetail_20' ) start [2025-02-28 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578448', 'tblTempUsageDetail_20' ) end [2025-02-28 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578448', 'tblTempVendorCDR_20' ) start [2025-02-28 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578448', 'tblTempVendorCDR_20' ) end [2025-02-28 19:01:21] Production.INFO: ProcessCDR(1,14578448,1,1,2) [2025-02-28 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578448', 'tblTempUsageDetail_20' ) start [2025-02-28 19:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578448', 'tblTempUsageDetail_20' ) end [2025-02-28 19:01:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:01:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:01:26] Production.INFO: ==16638== Releasing lock... [2025-02-28 19:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:01:26] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:02:05 [end_date_ymd] => 2025-02-28 19:02:05 [RateCDR] => 1 ) [2025-02-28 19: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-02-28 16:02:05' and `end` < '2025-02-28 19: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-02-28 19:02:18] Production.INFO: count ==6299 [2025-02-28 19:02:22] Production.ERROR: pbx CDR StartTime 2025-02-28 16:02:05 - End Time 2025-02-28 19:02:05 [2025-02-28 19:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578453', 'tblTempUsageDetail_20' ) start [2025-02-28 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578453', 'tblTempUsageDetail_20' ) end [2025-02-28 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578453', 'tblTempVendorCDR_20' ) start [2025-02-28 19:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578453', 'tblTempVendorCDR_20' ) end [2025-02-28 19:02:22] Production.INFO: ProcessCDR(1,14578453,1,1,2) [2025-02-28 19:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:02:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:02:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578453', 'tblTempUsageDetail_20' ) start [2025-02-28 19:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578453', 'tblTempUsageDetail_20' ) end [2025-02-28 19:02:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:02:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:02:27] Production.INFO: ==16721== Releasing lock... [2025-02-28 19:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:02:27] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:03:06 [end_date_ymd] => 2025-02-28 19:03:06 [RateCDR] => 1 ) [2025-02-28 19: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-02-28 16:03:06' and `end` < '2025-02-28 19: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-02-28 19:03:19] Production.INFO: count ==6275 [2025-02-28 19:03:22] Production.ERROR: pbx CDR StartTime 2025-02-28 16:03:06 - End Time 2025-02-28 19:03:06 [2025-02-28 19:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578458', 'tblTempUsageDetail_20' ) start [2025-02-28 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578458', 'tblTempUsageDetail_20' ) end [2025-02-28 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578458', 'tblTempVendorCDR_20' ) start [2025-02-28 19:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578458', 'tblTempVendorCDR_20' ) end [2025-02-28 19:03:22] Production.INFO: ProcessCDR(1,14578458,1,1,2) [2025-02-28 19:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578458', 'tblTempUsageDetail_20' ) start [2025-02-28 19:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578458', 'tblTempUsageDetail_20' ) end [2025-02-28 19:03:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:03:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:03:27] Production.INFO: ==16802== Releasing lock... [2025-02-28 19:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:03:27] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:04:05 [end_date_ymd] => 2025-02-28 19:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:04:05' and `end` < '2025-02-28 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-02-28 19:04:18] Production.INFO: count ==6272 [2025-02-28 19:04:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:04:05 - End Time 2025-02-28 19:04:05 [2025-02-28 19:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578463', 'tblTempUsageDetail_20' ) start [2025-02-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578463', 'tblTempUsageDetail_20' ) end [2025-02-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578463', 'tblTempVendorCDR_20' ) start [2025-02-28 19:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578463', 'tblTempVendorCDR_20' ) end [2025-02-28 19:04:21] Production.INFO: ProcessCDR(1,14578463,1,1,2) [2025-02-28 19:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578463', 'tblTempUsageDetail_20' ) start [2025-02-28 19:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578463', 'tblTempUsageDetail_20' ) end [2025-02-28 19:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:04:25] Production.INFO: ==16884== Releasing lock... [2025-02-28 19:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:04:25] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:05:05 [end_date_ymd] => 2025-02-28 19:05:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:05:05' and `end` < '2025-02-28 19:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:05:19] Production.INFO: count ==6268 [2025-02-28 19:05:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:05:05 - End Time 2025-02-28 19:05:05 [2025-02-28 19:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578468', 'tblTempUsageDetail_20' ) start [2025-02-28 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578468', 'tblTempUsageDetail_20' ) end [2025-02-28 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578468', 'tblTempVendorCDR_20' ) start [2025-02-28 19:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578468', 'tblTempVendorCDR_20' ) end [2025-02-28 19:05:22] Production.INFO: ProcessCDR(1,14578468,1,1,2) [2025-02-28 19:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578468', 'tblTempUsageDetail_20' ) start [2025-02-28 19:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578468', 'tblTempUsageDetail_20' ) end [2025-02-28 19:05:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:05:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:05:26] Production.INFO: ==17036== Releasing lock... [2025-02-28 19:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:05:26] Production.INFO: 74.75 MB #Memory Used# [2025-02-28 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:06:05 [end_date_ymd] => 2025-02-28 19:06:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:06:05' and `end` < '2025-02-28 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-02-28 19:06:18] Production.INFO: count ==6248 [2025-02-28 19:06:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:06:05 - End Time 2025-02-28 19:06:05 [2025-02-28 19:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578473', 'tblTempUsageDetail_20' ) start [2025-02-28 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578473', 'tblTempUsageDetail_20' ) end [2025-02-28 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578473', 'tblTempVendorCDR_20' ) start [2025-02-28 19:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578473', 'tblTempVendorCDR_20' ) end [2025-02-28 19:06:21] Production.INFO: ProcessCDR(1,14578473,1,1,2) [2025-02-28 19:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578473', 'tblTempUsageDetail_20' ) start [2025-02-28 19:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578473', 'tblTempUsageDetail_20' ) end [2025-02-28 19:06:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:06:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:06:26] Production.INFO: ==17108== Releasing lock... [2025-02-28 19:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:06:26] Production.INFO: 74.75 MB #Memory Used# [2025-02-28 19:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:07:06 [end_date_ymd] => 2025-02-28 19:07:06 [RateCDR] => 1 ) [2025-02-28 19: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-02-28 16:07:06' and `end` < '2025-02-28 19: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-02-28 19:07:19] Production.INFO: count ==6264 [2025-02-28 19:07:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:07:06 - End Time 2025-02-28 19:07:06 [2025-02-28 19:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578478', 'tblTempUsageDetail_20' ) start [2025-02-28 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578478', 'tblTempUsageDetail_20' ) end [2025-02-28 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578478', 'tblTempVendorCDR_20' ) start [2025-02-28 19:07:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578478', 'tblTempVendorCDR_20' ) end [2025-02-28 19:07:22] Production.INFO: ProcessCDR(1,14578478,1,1,2) [2025-02-28 19:07:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578478', 'tblTempUsageDetail_20' ) start [2025-02-28 19:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578478', 'tblTempUsageDetail_20' ) end [2025-02-28 19:07:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:07:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:07:26] Production.INFO: ==17179== Releasing lock... [2025-02-28 19:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:07:26] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:08:05 [end_date_ymd] => 2025-02-28 19:08:05 [RateCDR] => 1 ) [2025-02-28 19:08:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:08:05' and `end` < '2025-02-28 19:08:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:08:18] Production.INFO: count ==6283 [2025-02-28 19:08:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:08:05 - End Time 2025-02-28 19:08:05 [2025-02-28 19:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578483', 'tblTempUsageDetail_20' ) start [2025-02-28 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578483', 'tblTempUsageDetail_20' ) end [2025-02-28 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578483', 'tblTempVendorCDR_20' ) start [2025-02-28 19:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578483', 'tblTempVendorCDR_20' ) end [2025-02-28 19:08:21] Production.INFO: ProcessCDR(1,14578483,1,1,2) [2025-02-28 19:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578483', 'tblTempUsageDetail_20' ) start [2025-02-28 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578483', 'tblTempUsageDetail_20' ) end [2025-02-28 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:08:24] Production.INFO: ==17342== Releasing lock... [2025-02-28 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:08:24] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:09:05 [end_date_ymd] => 2025-02-28 19:09:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:09:05' and `end` < '2025-02-28 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-02-28 19:09:18] Production.INFO: count ==6278 [2025-02-28 19:09:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:09:05 - End Time 2025-02-28 19:09:05 [2025-02-28 19:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578488', 'tblTempUsageDetail_20' ) start [2025-02-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578488', 'tblTempUsageDetail_20' ) end [2025-02-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578488', 'tblTempVendorCDR_20' ) start [2025-02-28 19:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578488', 'tblTempVendorCDR_20' ) end [2025-02-28 19:09:21] Production.INFO: ProcessCDR(1,14578488,1,1,2) [2025-02-28 19:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578488', 'tblTempUsageDetail_20' ) start [2025-02-28 19:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578488', 'tblTempUsageDetail_20' ) end [2025-02-28 19:09:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:09:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:09:26] Production.INFO: ==17415== Releasing lock... [2025-02-28 19:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:09:26] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:10:06 [end_date_ymd] => 2025-02-28 19:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:10:06' and `end` < '2025-02-28 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-02-28 19:10:19] Production.INFO: count ==6253 [2025-02-28 19:10:22] Production.ERROR: pbx CDR StartTime 2025-02-28 16:10:06 - End Time 2025-02-28 19:10:06 [2025-02-28 19:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578494', 'tblTempUsageDetail_20' ) start [2025-02-28 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578494', 'tblTempUsageDetail_20' ) end [2025-02-28 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578494', 'tblTempVendorCDR_20' ) start [2025-02-28 19:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578494', 'tblTempVendorCDR_20' ) end [2025-02-28 19:10:22] Production.INFO: ProcessCDR(1,14578494,1,1,2) [2025-02-28 19:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578494', 'tblTempUsageDetail_20' ) start [2025-02-28 19:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578494', 'tblTempUsageDetail_20' ) end [2025-02-28 19:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:10:26] Production.INFO: ==17491== Releasing lock... [2025-02-28 19:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:10:26] Production.INFO: 74.75 MB #Memory Used# [2025-02-28 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:11:05 [end_date_ymd] => 2025-02-28 19:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:11:05' and `end` < '2025-02-28 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-02-28 19:11:18] Production.INFO: count ==6328 [2025-02-28 19:11:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:11:05 - End Time 2025-02-28 19:11:05 [2025-02-28 19:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578499', 'tblTempUsageDetail_20' ) start [2025-02-28 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578499', 'tblTempUsageDetail_20' ) end [2025-02-28 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578499', 'tblTempVendorCDR_20' ) start [2025-02-28 19:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578499', 'tblTempVendorCDR_20' ) end [2025-02-28 19:11:21] Production.INFO: ProcessCDR(1,14578499,1,1,2) [2025-02-28 19:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578499', 'tblTempUsageDetail_20' ) start [2025-02-28 19:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578499', 'tblTempUsageDetail_20' ) end [2025-02-28 19:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:11:25] Production.INFO: ==17573== Releasing lock... [2025-02-28 19:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:11:25] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:12:05 [end_date_ymd] => 2025-02-28 19:12:05 [RateCDR] => 1 ) [2025-02-28 19:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:12:05' and `end` < '2025-02-28 19:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:12:18] Production.INFO: count ==6319 [2025-02-28 19:12:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:12:05 - End Time 2025-02-28 19:12:05 [2025-02-28 19:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578504', 'tblTempUsageDetail_20' ) start [2025-02-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578504', 'tblTempUsageDetail_20' ) end [2025-02-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578504', 'tblTempVendorCDR_20' ) start [2025-02-28 19:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578504', 'tblTempVendorCDR_20' ) end [2025-02-28 19:12:21] Production.INFO: ProcessCDR(1,14578504,1,1,2) [2025-02-28 19:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578504', 'tblTempUsageDetail_20' ) start [2025-02-28 19:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578504', 'tblTempUsageDetail_20' ) end [2025-02-28 19:12:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:12:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:12:25] Production.INFO: ==17725== Releasing lock... [2025-02-28 19:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:12:25] Production.INFO: 75.25 MB #Memory Used# [2025-02-28 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:13:06 [end_date_ymd] => 2025-02-28 19:13:06 [RateCDR] => 1 ) [2025-02-28 19:13:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:13:06' and `end` < '2025-02-28 19:13:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:13:18] Production.INFO: count ==6307 [2025-02-28 19:13:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:13:06 - End Time 2025-02-28 19:13:06 [2025-02-28 19:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578509', 'tblTempUsageDetail_20' ) start [2025-02-28 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578509', 'tblTempUsageDetail_20' ) end [2025-02-28 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578509', 'tblTempVendorCDR_20' ) start [2025-02-28 19:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578509', 'tblTempVendorCDR_20' ) end [2025-02-28 19:13:22] Production.INFO: ProcessCDR(1,14578509,1,1,2) [2025-02-28 19:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578509', 'tblTempUsageDetail_20' ) start [2025-02-28 19:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578509', 'tblTempUsageDetail_20' ) end [2025-02-28 19:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:13:25] Production.INFO: ==17798== Releasing lock... [2025-02-28 19:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:13:25] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:14:05 [end_date_ymd] => 2025-02-28 19:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:14:05' and `end` < '2025-02-28 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-02-28 19:14:18] Production.INFO: count ==6293 [2025-02-28 19:14:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:14:05 - End Time 2025-02-28 19:14:05 [2025-02-28 19:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578514', 'tblTempUsageDetail_20' ) start [2025-02-28 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578514', 'tblTempUsageDetail_20' ) end [2025-02-28 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578514', 'tblTempVendorCDR_20' ) start [2025-02-28 19:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578514', 'tblTempVendorCDR_20' ) end [2025-02-28 19:14:21] Production.INFO: ProcessCDR(1,14578514,1,1,2) [2025-02-28 19:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578514', 'tblTempUsageDetail_20' ) start [2025-02-28 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578514', 'tblTempUsageDetail_20' ) end [2025-02-28 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:14:24] Production.INFO: ==17880== Releasing lock... [2025-02-28 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:14:24] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:15:06 [end_date_ymd] => 2025-02-28 19:15:06 [RateCDR] => 1 ) [2025-02-28 19: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-02-28 16:15:06' and `end` < '2025-02-28 19: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-02-28 19:15:18] Production.INFO: count ==6279 [2025-02-28 19:15:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:15:06 - End Time 2025-02-28 19:15:06 [2025-02-28 19:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578519', 'tblTempUsageDetail_20' ) start [2025-02-28 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578519', 'tblTempUsageDetail_20' ) end [2025-02-28 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578519', 'tblTempVendorCDR_20' ) start [2025-02-28 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578519', 'tblTempVendorCDR_20' ) end [2025-02-28 19:15:21] Production.INFO: ProcessCDR(1,14578519,1,1,2) [2025-02-28 19:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578519', 'tblTempUsageDetail_20' ) start [2025-02-28 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578519', 'tblTempUsageDetail_20' ) end [2025-02-28 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:15:24] Production.INFO: ==18039== Releasing lock... [2025-02-28 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:15:24] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:16:05 [end_date_ymd] => 2025-02-28 19:16:05 [RateCDR] => 1 ) [2025-02-28 19:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:16:05' and `end` < '2025-02-28 19:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:16:18] Production.INFO: count ==6269 [2025-02-28 19:16:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:16:05 - End Time 2025-02-28 19:16:05 [2025-02-28 19:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578524', 'tblTempUsageDetail_20' ) start [2025-02-28 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578524', 'tblTempUsageDetail_20' ) end [2025-02-28 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578524', 'tblTempVendorCDR_20' ) start [2025-02-28 19:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578524', 'tblTempVendorCDR_20' ) end [2025-02-28 19:16:21] Production.INFO: ProcessCDR(1,14578524,1,1,2) [2025-02-28 19:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578524', 'tblTempUsageDetail_20' ) start [2025-02-28 19:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578524', 'tblTempUsageDetail_20' ) end [2025-02-28 19:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:16:24] Production.INFO: ==18152== Releasing lock... [2025-02-28 19:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:16:24] Production.INFO: 74.75 MB #Memory Used# [2025-02-28 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:17:05 [end_date_ymd] => 2025-02-28 19:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:17:05' and `end` < '2025-02-28 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-02-28 19:17:18] Production.INFO: count ==6277 [2025-02-28 19:17:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:17:05 - End Time 2025-02-28 19:17:05 [2025-02-28 19:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578529', 'tblTempUsageDetail_20' ) start [2025-02-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578529', 'tblTempUsageDetail_20' ) end [2025-02-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578529', 'tblTempVendorCDR_20' ) start [2025-02-28 19:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578529', 'tblTempVendorCDR_20' ) end [2025-02-28 19:17:21] Production.INFO: ProcessCDR(1,14578529,1,1,2) [2025-02-28 19:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578529', 'tblTempUsageDetail_20' ) start [2025-02-28 19:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578529', 'tblTempUsageDetail_20' ) end [2025-02-28 19:17:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:17:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:17:26] Production.INFO: ==18231== Releasing lock... [2025-02-28 19:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:17:26] Production.INFO: 75 MB #Memory Used# [2025-02-28 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:18:05 [end_date_ymd] => 2025-02-28 19:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:18:05' and `end` < '2025-02-28 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-02-28 19:18:18] Production.INFO: count ==6271 [2025-02-28 19:18:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:18:05 - End Time 2025-02-28 19:18:05 [2025-02-28 19:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578534', 'tblTempUsageDetail_20' ) start [2025-02-28 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578534', 'tblTempUsageDetail_20' ) end [2025-02-28 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578534', 'tblTempVendorCDR_20' ) start [2025-02-28 19:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578534', 'tblTempVendorCDR_20' ) end [2025-02-28 19:18:21] Production.INFO: ProcessCDR(1,14578534,1,1,2) [2025-02-28 19:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578534', 'tblTempUsageDetail_20' ) start [2025-02-28 19:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578534', 'tblTempUsageDetail_20' ) end [2025-02-28 19:18:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:18:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:18:24] Production.INFO: ==18312== Releasing lock... [2025-02-28 19:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:18:24] Production.INFO: 74.75 MB #Memory Used# [2025-02-28 19:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:19:06 [end_date_ymd] => 2025-02-28 19:19:06 [RateCDR] => 1 ) [2025-02-28 19: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-02-28 16:19:06' and `end` < '2025-02-28 19: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-02-28 19:19:18] Production.INFO: count ==6269 [2025-02-28 19:19:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:19:06 - End Time 2025-02-28 19:19:06 [2025-02-28 19:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578539', 'tblTempUsageDetail_20' ) start [2025-02-28 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578539', 'tblTempUsageDetail_20' ) end [2025-02-28 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578539', 'tblTempVendorCDR_20' ) start [2025-02-28 19:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578539', 'tblTempVendorCDR_20' ) end [2025-02-28 19:19:21] Production.INFO: ProcessCDR(1,14578539,1,1,2) [2025-02-28 19:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578539', 'tblTempUsageDetail_20' ) start [2025-02-28 19:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578539', 'tblTempUsageDetail_20' ) end [2025-02-28 19:19:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:19:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:19:26] Production.INFO: ==18386== Releasing lock... [2025-02-28 19:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:19:26] Production.INFO: 74.75 MB #Memory Used# [2025-02-28 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:20:06 [end_date_ymd] => 2025-02-28 19:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:20:06' and `end` < '2025-02-28 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-02-28 19:20:19] Production.INFO: count ==6265 [2025-02-28 19:20:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:20:06 - End Time 2025-02-28 19:20:06 [2025-02-28 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578545', 'tblTempUsageDetail_20' ) start [2025-02-28 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578545', 'tblTempUsageDetail_20' ) end [2025-02-28 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578545', 'tblTempVendorCDR_20' ) start [2025-02-28 19:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578545', 'tblTempVendorCDR_20' ) end [2025-02-28 19:20:22] Production.INFO: ProcessCDR(1,14578545,1,1,2) [2025-02-28 19:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578545', 'tblTempUsageDetail_20' ) start [2025-02-28 19:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578545', 'tblTempUsageDetail_20' ) end [2025-02-28 19:20:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:20:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:20:25] Production.INFO: ==18467== Releasing lock... [2025-02-28 19:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:20:25] Production.INFO: 74.75 MB #Memory Used# [2025-02-28 19:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:21:06 [end_date_ymd] => 2025-02-28 19:21:06 [RateCDR] => 1 ) [2025-02-28 19:21:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:21:06' and `end` < '2025-02-28 19:21:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:21:19] Production.INFO: count ==6237 [2025-02-28 19:21:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:21:06 - End Time 2025-02-28 19:21:06 [2025-02-28 19:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578550', 'tblTempUsageDetail_20' ) start [2025-02-28 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578550', 'tblTempUsageDetail_20' ) end [2025-02-28 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578550', 'tblTempVendorCDR_20' ) start [2025-02-28 19:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578550', 'tblTempVendorCDR_20' ) end [2025-02-28 19:21:22] Production.INFO: ProcessCDR(1,14578550,1,1,2) [2025-02-28 19:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578550', 'tblTempUsageDetail_20' ) start [2025-02-28 19:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578550', 'tblTempUsageDetail_20' ) end [2025-02-28 19:21:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:21:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:21:25] Production.INFO: ==18542== Releasing lock... [2025-02-28 19:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:21:25] Production.INFO: 74.5 MB #Memory Used# [2025-02-28 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:22:05 [end_date_ymd] => 2025-02-28 19:22:05 [RateCDR] => 1 ) [2025-02-28 19:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:22:05' and `end` < '2025-02-28 19:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:22:18] Production.INFO: count ==6235 [2025-02-28 19:22:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:22:05 - End Time 2025-02-28 19:22:05 [2025-02-28 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578555', 'tblTempUsageDetail_20' ) start [2025-02-28 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578555', 'tblTempUsageDetail_20' ) end [2025-02-28 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578555', 'tblTempVendorCDR_20' ) start [2025-02-28 19:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578555', 'tblTempVendorCDR_20' ) end [2025-02-28 19:22:21] Production.INFO: ProcessCDR(1,14578555,1,1,2) [2025-02-28 19:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578555', 'tblTempUsageDetail_20' ) start [2025-02-28 19:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578555', 'tblTempUsageDetail_20' ) end [2025-02-28 19:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:22:24] Production.INFO: ==18627== Releasing lock... [2025-02-28 19:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:22:24] Production.INFO: 74.5 MB #Memory Used# [2025-02-28 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:23:05 [end_date_ymd] => 2025-02-28 19:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:23:05' and `end` < '2025-02-28 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-02-28 19:23:18] Production.INFO: count ==6218 [2025-02-28 19:23:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:23:05 - End Time 2025-02-28 19:23:05 [2025-02-28 19:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578560', 'tblTempUsageDetail_20' ) start [2025-02-28 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578560', 'tblTempUsageDetail_20' ) end [2025-02-28 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578560', 'tblTempVendorCDR_20' ) start [2025-02-28 19:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578560', 'tblTempVendorCDR_20' ) end [2025-02-28 19:23:21] Production.INFO: ProcessCDR(1,14578560,1,1,2) [2025-02-28 19:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578560', 'tblTempUsageDetail_20' ) start [2025-02-28 19:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578560', 'tblTempUsageDetail_20' ) end [2025-02-28 19:23:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:23:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:23:25] Production.INFO: ==18705== Releasing lock... [2025-02-28 19:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:23:25] Production.INFO: 74.5 MB #Memory Used# [2025-02-28 19:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:24:04 [end_date_ymd] => 2025-02-28 19:24:04 [RateCDR] => 1 ) [2025-02-28 19:24:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:24:04' and `end` < '2025-02-28 19:24:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:24:17] Production.INFO: count ==6193 [2025-02-28 19:24:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:24:04 - End Time 2025-02-28 19:24:04 [2025-02-28 19:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578565', 'tblTempUsageDetail_20' ) start [2025-02-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578565', 'tblTempUsageDetail_20' ) end [2025-02-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578565', 'tblTempVendorCDR_20' ) start [2025-02-28 19:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578565', 'tblTempVendorCDR_20' ) end [2025-02-28 19:24:20] Production.INFO: ProcessCDR(1,14578565,1,1,2) [2025-02-28 19:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578565', 'tblTempUsageDetail_20' ) start [2025-02-28 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578565', 'tblTempUsageDetail_20' ) end [2025-02-28 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:24:23] Production.INFO: ==18778== Releasing lock... [2025-02-28 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:24:23] Production.INFO: 74.25 MB #Memory Used# [2025-02-28 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:25:05 [end_date_ymd] => 2025-02-28 19:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:25:05' and `end` < '2025-02-28 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-02-28 19:25:18] Production.INFO: count ==6156 [2025-02-28 19:25:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:25:05 - End Time 2025-02-28 19:25:05 [2025-02-28 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578570', 'tblTempUsageDetail_20' ) start [2025-02-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578570', 'tblTempUsageDetail_20' ) end [2025-02-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578570', 'tblTempVendorCDR_20' ) start [2025-02-28 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578570', 'tblTempVendorCDR_20' ) end [2025-02-28 19:25:20] Production.INFO: ProcessCDR(1,14578570,1,1,2) [2025-02-28 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578570', 'tblTempUsageDetail_20' ) start [2025-02-28 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578570', 'tblTempUsageDetail_20' ) end [2025-02-28 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:25:24] Production.INFO: ==18859== Releasing lock... [2025-02-28 19:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:25:24] Production.INFO: 74 MB #Memory Used# [2025-02-28 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:26:05 [end_date_ymd] => 2025-02-28 19:26:05 [RateCDR] => 1 ) [2025-02-28 19:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:26:05' and `end` < '2025-02-28 19:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:26:18] Production.INFO: count ==6149 [2025-02-28 19:26:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:26:05 - End Time 2025-02-28 19:26:05 [2025-02-28 19:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578575', 'tblTempUsageDetail_20' ) start [2025-02-28 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578575', 'tblTempUsageDetail_20' ) end [2025-02-28 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578575', 'tblTempVendorCDR_20' ) start [2025-02-28 19:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578575', 'tblTempVendorCDR_20' ) end [2025-02-28 19:26:21] Production.INFO: ProcessCDR(1,14578575,1,1,2) [2025-02-28 19:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578575', 'tblTempUsageDetail_20' ) start [2025-02-28 19:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578575', 'tblTempUsageDetail_20' ) end [2025-02-28 19:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:26:24] Production.INFO: ==18933== Releasing lock... [2025-02-28 19:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:26:24] Production.INFO: 74 MB #Memory Used# [2025-02-28 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:27:05 [end_date_ymd] => 2025-02-28 19:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:27:05' and `end` < '2025-02-28 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-02-28 19:27:18] Production.INFO: count ==6133 [2025-02-28 19:27:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:27:05 - End Time 2025-02-28 19:27:05 [2025-02-28 19:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578580', 'tblTempUsageDetail_20' ) start [2025-02-28 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578580', 'tblTempUsageDetail_20' ) end [2025-02-28 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578580', 'tblTempVendorCDR_20' ) start [2025-02-28 19:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578580', 'tblTempVendorCDR_20' ) end [2025-02-28 19:27:21] Production.INFO: ProcessCDR(1,14578580,1,1,2) [2025-02-28 19:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578580', 'tblTempUsageDetail_20' ) start [2025-02-28 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578580', 'tblTempUsageDetail_20' ) end [2025-02-28 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:27:24] Production.INFO: ==19003== Releasing lock... [2025-02-28 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:27:24] Production.INFO: 73.75 MB #Memory Used# [2025-02-28 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:28:05 [end_date_ymd] => 2025-02-28 19:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:28:05' and `end` < '2025-02-28 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-02-28 19:28:18] Production.INFO: count ==6188 [2025-02-28 19:28:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:28:05 - End Time 2025-02-28 19:28:05 [2025-02-28 19:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578585', 'tblTempUsageDetail_20' ) start [2025-02-28 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578585', 'tblTempUsageDetail_20' ) end [2025-02-28 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578585', 'tblTempVendorCDR_20' ) start [2025-02-28 19:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578585', 'tblTempVendorCDR_20' ) end [2025-02-28 19:28:21] Production.INFO: ProcessCDR(1,14578585,1,1,2) [2025-02-28 19:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578585', 'tblTempUsageDetail_20' ) start [2025-02-28 19:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578585', 'tblTempUsageDetail_20' ) end [2025-02-28 19:28:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:28:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:28:26] Production.INFO: ==19079== Releasing lock... [2025-02-28 19:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:28:26] Production.INFO: 74.25 MB #Memory Used# [2025-02-28 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:29:05 [end_date_ymd] => 2025-02-28 19:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:29:05' and `end` < '2025-02-28 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-02-28 19:29:18] Production.INFO: count ==6171 [2025-02-28 19:29:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:29:05 - End Time 2025-02-28 19:29:05 [2025-02-28 19:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578590', 'tblTempUsageDetail_20' ) start [2025-02-28 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578590', 'tblTempUsageDetail_20' ) end [2025-02-28 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578590', 'tblTempVendorCDR_20' ) start [2025-02-28 19:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578590', 'tblTempVendorCDR_20' ) end [2025-02-28 19:29:21] Production.INFO: ProcessCDR(1,14578590,1,1,2) [2025-02-28 19:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578590', 'tblTempUsageDetail_20' ) start [2025-02-28 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578590', 'tblTempUsageDetail_20' ) end [2025-02-28 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:29:24] Production.INFO: ==19155== Releasing lock... [2025-02-28 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:29:24] Production.INFO: 74 MB #Memory Used# [2025-02-28 19:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:30:07 [end_date_ymd] => 2025-02-28 19:30:07 [RateCDR] => 1 ) [2025-02-28 19:30: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-02-28 16:30:07' and `end` < '2025-02-28 19:30: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-02-28 19:30:20] Production.INFO: count ==6161 [2025-02-28 19:30:23] Production.ERROR: pbx CDR StartTime 2025-02-28 16:30:07 - End Time 2025-02-28 19:30:07 [2025-02-28 19:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578596', 'tblTempUsageDetail_20' ) start [2025-02-28 19:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578596', 'tblTempUsageDetail_20' ) end [2025-02-28 19:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578596', 'tblTempVendorCDR_20' ) start [2025-02-28 19:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578596', 'tblTempVendorCDR_20' ) end [2025-02-28 19:30:23] Production.INFO: ProcessCDR(1,14578596,1,1,2) [2025-02-28 19:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578596', 'tblTempUsageDetail_20' ) start [2025-02-28 19:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578596', 'tblTempUsageDetail_20' ) end [2025-02-28 19:30:27] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:30:27] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:30:27] Production.INFO: ==19231== Releasing lock... [2025-02-28 19:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:30:27] Production.INFO: 74 MB #Memory Used# [2025-02-28 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:31:05 [end_date_ymd] => 2025-02-28 19:31:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:31:05' and `end` < '2025-02-28 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-02-28 19:31:18] Production.INFO: count ==6114 [2025-02-28 19:31:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:31:05 - End Time 2025-02-28 19:31:05 [2025-02-28 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578601', 'tblTempUsageDetail_20' ) start [2025-02-28 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578601', 'tblTempUsageDetail_20' ) end [2025-02-28 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578601', 'tblTempVendorCDR_20' ) start [2025-02-28 19:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578601', 'tblTempVendorCDR_20' ) end [2025-02-28 19:31:21] Production.INFO: ProcessCDR(1,14578601,1,1,2) [2025-02-28 19:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578601', 'tblTempUsageDetail_20' ) start [2025-02-28 19:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578601', 'tblTempUsageDetail_20' ) end [2025-02-28 19:31:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:31:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:31:25] Production.INFO: ==19360== Releasing lock... [2025-02-28 19:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:31:25] Production.INFO: 73.75 MB #Memory Used# [2025-02-28 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:32:05 [end_date_ymd] => 2025-02-28 19:32:05 [RateCDR] => 1 ) [2025-02-28 19:32:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:32:05' and `end` < '2025-02-28 19:32:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:32:18] Production.INFO: count ==6091 [2025-02-28 19:32:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:32:05 - End Time 2025-02-28 19:32:05 [2025-02-28 19:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578606', 'tblTempUsageDetail_20' ) start [2025-02-28 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578606', 'tblTempUsageDetail_20' ) end [2025-02-28 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578606', 'tblTempVendorCDR_20' ) start [2025-02-28 19:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578606', 'tblTempVendorCDR_20' ) end [2025-02-28 19:32:21] Production.INFO: ProcessCDR(1,14578606,1,1,2) [2025-02-28 19:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578606', 'tblTempUsageDetail_20' ) start [2025-02-28 19:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578606', 'tblTempUsageDetail_20' ) end [2025-02-28 19:32:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:32:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:32:26] Production.INFO: ==19439== Releasing lock... [2025-02-28 19:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:32:26] Production.INFO: 73.5 MB #Memory Used# [2025-02-28 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:33:05 [end_date_ymd] => 2025-02-28 19:33:05 [RateCDR] => 1 ) [2025-02-28 19:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:33:05' and `end` < '2025-02-28 19:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:33:18] Production.INFO: count ==6111 [2025-02-28 19:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:33:05 - End Time 2025-02-28 19:33:05 [2025-02-28 19:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578611', 'tblTempUsageDetail_20' ) start [2025-02-28 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578611', 'tblTempUsageDetail_20' ) end [2025-02-28 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578611', 'tblTempVendorCDR_20' ) start [2025-02-28 19:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578611', 'tblTempVendorCDR_20' ) end [2025-02-28 19:33:21] Production.INFO: ProcessCDR(1,14578611,1,1,2) [2025-02-28 19:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578611', 'tblTempUsageDetail_20' ) start [2025-02-28 19:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578611', 'tblTempUsageDetail_20' ) end [2025-02-28 19:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:33:24] Production.INFO: ==19513== Releasing lock... [2025-02-28 19:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:33:24] Production.INFO: 73.75 MB #Memory Used# [2025-02-28 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:34:05 [end_date_ymd] => 2025-02-28 19:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:34:05' and `end` < '2025-02-28 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-02-28 19:34:18] Production.INFO: count ==6095 [2025-02-28 19:34:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:34:05 - End Time 2025-02-28 19:34:05 [2025-02-28 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578616', 'tblTempUsageDetail_20' ) start [2025-02-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578616', 'tblTempUsageDetail_20' ) end [2025-02-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578616', 'tblTempVendorCDR_20' ) start [2025-02-28 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578616', 'tblTempVendorCDR_20' ) end [2025-02-28 19:34:20] Production.INFO: ProcessCDR(1,14578616,1,1,2) [2025-02-28 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578616', 'tblTempUsageDetail_20' ) start [2025-02-28 19:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578616', 'tblTempUsageDetail_20' ) end [2025-02-28 19:34:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:34:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:34:24] Production.INFO: ==19596== Releasing lock... [2025-02-28 19:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:34:24] Production.INFO: 73.5 MB #Memory Used# [2025-02-28 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:35:05 [end_date_ymd] => 2025-02-28 19:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:35:05' and `end` < '2025-02-28 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-02-28 19:35:17] Production.INFO: count ==6073 [2025-02-28 19:35:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:35:05 - End Time 2025-02-28 19:35:05 [2025-02-28 19:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578621', 'tblTempUsageDetail_20' ) start [2025-02-28 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578621', 'tblTempUsageDetail_20' ) end [2025-02-28 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578621', 'tblTempVendorCDR_20' ) start [2025-02-28 19:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578621', 'tblTempVendorCDR_20' ) end [2025-02-28 19:35:20] Production.INFO: ProcessCDR(1,14578621,1,1,2) [2025-02-28 19:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578621', 'tblTempUsageDetail_20' ) start [2025-02-28 19:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578621', 'tblTempUsageDetail_20' ) end [2025-02-28 19:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:35:24] Production.INFO: ==19682== Releasing lock... [2025-02-28 19:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:35:24] Production.INFO: 73.25 MB #Memory Used# [2025-02-28 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:36:05 [end_date_ymd] => 2025-02-28 19:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:36:05' and `end` < '2025-02-28 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-02-28 19:36:18] Production.INFO: count ==6033 [2025-02-28 19:36:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:36:05 - End Time 2025-02-28 19:36:05 [2025-02-28 19:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578626', 'tblTempUsageDetail_20' ) start [2025-02-28 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578626', 'tblTempUsageDetail_20' ) end [2025-02-28 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578626', 'tblTempVendorCDR_20' ) start [2025-02-28 19:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578626', 'tblTempVendorCDR_20' ) end [2025-02-28 19:36:21] Production.INFO: ProcessCDR(1,14578626,1,1,2) [2025-02-28 19:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578626', 'tblTempUsageDetail_20' ) start [2025-02-28 19:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578626', 'tblTempUsageDetail_20' ) end [2025-02-28 19:36:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:36:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:36:24] Production.INFO: ==19757== Releasing lock... [2025-02-28 19:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:36:24] Production.INFO: 73 MB #Memory Used# [2025-02-28 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:37:05 [end_date_ymd] => 2025-02-28 19:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:37:05' and `end` < '2025-02-28 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-02-28 19:37:18] Production.INFO: count ==5990 [2025-02-28 19:37:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:37:05 - End Time 2025-02-28 19:37:05 [2025-02-28 19:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578631', 'tblTempUsageDetail_20' ) start [2025-02-28 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578631', 'tblTempUsageDetail_20' ) end [2025-02-28 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578631', 'tblTempVendorCDR_20' ) start [2025-02-28 19:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578631', 'tblTempVendorCDR_20' ) end [2025-02-28 19:37:20] Production.INFO: ProcessCDR(1,14578631,1,1,2) [2025-02-28 19:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578631', 'tblTempUsageDetail_20' ) start [2025-02-28 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578631', 'tblTempUsageDetail_20' ) end [2025-02-28 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:37:24] Production.INFO: ==19828== Releasing lock... [2025-02-28 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:37:24] Production.INFO: 72.75 MB #Memory Used# [2025-02-28 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:38:05 [end_date_ymd] => 2025-02-28 19:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:38:05' and `end` < '2025-02-28 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-02-28 19:38:18] Production.INFO: count ==5962 [2025-02-28 19:38:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:38:05 - End Time 2025-02-28 19:38:05 [2025-02-28 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578636', 'tblTempUsageDetail_20' ) start [2025-02-28 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578636', 'tblTempUsageDetail_20' ) end [2025-02-28 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578636', 'tblTempVendorCDR_20' ) start [2025-02-28 19:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578636', 'tblTempVendorCDR_20' ) end [2025-02-28 19:38:21] Production.INFO: ProcessCDR(1,14578636,1,1,2) [2025-02-28 19:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578636', 'tblTempUsageDetail_20' ) start [2025-02-28 19:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578636', 'tblTempUsageDetail_20' ) end [2025-02-28 19:38:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:38:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:38:25] Production.INFO: ==19913== Releasing lock... [2025-02-28 19:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:38:25] Production.INFO: 72.5 MB #Memory Used# [2025-02-28 19:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:39:06 [end_date_ymd] => 2025-02-28 19:39:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:39:06' and `end` < '2025-02-28 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-02-28 19:39:19] Production.INFO: count ==5947 [2025-02-28 19:39:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:39:06 - End Time 2025-02-28 19:39:06 [2025-02-28 19:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578641', 'tblTempUsageDetail_20' ) start [2025-02-28 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578641', 'tblTempUsageDetail_20' ) end [2025-02-28 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578641', 'tblTempVendorCDR_20' ) start [2025-02-28 19:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578641', 'tblTempVendorCDR_20' ) end [2025-02-28 19:39:21] Production.INFO: ProcessCDR(1,14578641,1,1,2) [2025-02-28 19:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578641', 'tblTempUsageDetail_20' ) start [2025-02-28 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578641', 'tblTempUsageDetail_20' ) end [2025-02-28 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:39:24] Production.INFO: ==20001== Releasing lock... [2025-02-28 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:39:24] Production.INFO: 72.5 MB #Memory Used# [2025-02-28 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:40:06 [end_date_ymd] => 2025-02-28 19:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:40:06' and `end` < '2025-02-28 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-02-28 19:40:18] Production.INFO: count ==5921 [2025-02-28 19:40:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:40:06 - End Time 2025-02-28 19:40:06 [2025-02-28 19:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578646', 'tblTempUsageDetail_20' ) start [2025-02-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578646', 'tblTempUsageDetail_20' ) end [2025-02-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578646', 'tblTempVendorCDR_20' ) start [2025-02-28 19:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578646', 'tblTempVendorCDR_20' ) end [2025-02-28 19:40:21] Production.INFO: ProcessCDR(1,14578646,1,1,2) [2025-02-28 19:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578646', 'tblTempUsageDetail_20' ) start [2025-02-28 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578646', 'tblTempUsageDetail_20' ) end [2025-02-28 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:40:24] Production.INFO: ==20086== Releasing lock... [2025-02-28 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:40:24] Production.INFO: 72.25 MB #Memory Used# [2025-02-28 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:41:05 [end_date_ymd] => 2025-02-28 19:41:05 [RateCDR] => 1 ) [2025-02-28 19:41:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:41:05' and `end` < '2025-02-28 19:41:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:41:18] Production.INFO: count ==5896 [2025-02-28 19:41:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:41:05 - End Time 2025-02-28 19:41:05 [2025-02-28 19:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578652', 'tblTempUsageDetail_20' ) start [2025-02-28 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578652', 'tblTempUsageDetail_20' ) end [2025-02-28 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578652', 'tblTempVendorCDR_20' ) start [2025-02-28 19:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578652', 'tblTempVendorCDR_20' ) end [2025-02-28 19:41:21] Production.INFO: ProcessCDR(1,14578652,1,1,2) [2025-02-28 19:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578652', 'tblTempUsageDetail_20' ) start [2025-02-28 19:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578652', 'tblTempUsageDetail_20' ) end [2025-02-28 19:41:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:41:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:41:26] Production.INFO: ==20158== Releasing lock... [2025-02-28 19:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:41:26] Production.INFO: 72 MB #Memory Used# [2025-02-28 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:42:05 [end_date_ymd] => 2025-02-28 19:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:42:05' and `end` < '2025-02-28 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-02-28 19:42:18] Production.INFO: count ==5858 [2025-02-28 19:42:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:42:05 - End Time 2025-02-28 19:42:05 [2025-02-28 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578657', 'tblTempUsageDetail_20' ) start [2025-02-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578657', 'tblTempUsageDetail_20' ) end [2025-02-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578657', 'tblTempVendorCDR_20' ) start [2025-02-28 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578657', 'tblTempVendorCDR_20' ) end [2025-02-28 19:42:20] Production.INFO: ProcessCDR(1,14578657,1,1,2) [2025-02-28 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578657', 'tblTempUsageDetail_20' ) start [2025-02-28 19:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578657', 'tblTempUsageDetail_20' ) end [2025-02-28 19:42:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:42:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:42:25] Production.INFO: ==20232== Releasing lock... [2025-02-28 19:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:42:25] Production.INFO: 71.75 MB #Memory Used# [2025-02-28 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:43:05 [end_date_ymd] => 2025-02-28 19:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:43:05' and `end` < '2025-02-28 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-02-28 19:43:18] Production.INFO: count ==5836 [2025-02-28 19:43:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:43:05 - End Time 2025-02-28 19:43:05 [2025-02-28 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578662', 'tblTempUsageDetail_20' ) start [2025-02-28 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578662', 'tblTempUsageDetail_20' ) end [2025-02-28 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578662', 'tblTempVendorCDR_20' ) start [2025-02-28 19:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578662', 'tblTempVendorCDR_20' ) end [2025-02-28 19:43:21] Production.INFO: ProcessCDR(1,14578662,1,1,2) [2025-02-28 19:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578662', 'tblTempUsageDetail_20' ) start [2025-02-28 19:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578662', 'tblTempUsageDetail_20' ) end [2025-02-28 19:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:43:25] Production.INFO: ==20314== Releasing lock... [2025-02-28 19:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:43:25] Production.INFO: 71.5 MB #Memory Used# [2025-02-28 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:44:05 [end_date_ymd] => 2025-02-28 19:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:44:05' and `end` < '2025-02-28 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-02-28 19:44:17] Production.INFO: count ==5864 [2025-02-28 19:44:19] Production.ERROR: pbx CDR StartTime 2025-02-28 16:44:05 - End Time 2025-02-28 19:44:05 [2025-02-28 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578667', 'tblTempUsageDetail_20' ) start [2025-02-28 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578667', 'tblTempUsageDetail_20' ) end [2025-02-28 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578667', 'tblTempVendorCDR_20' ) start [2025-02-28 19:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578667', 'tblTempVendorCDR_20' ) end [2025-02-28 19:44:20] Production.INFO: ProcessCDR(1,14578667,1,1,2) [2025-02-28 19:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578667', 'tblTempUsageDetail_20' ) start [2025-02-28 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578667', 'tblTempUsageDetail_20' ) end [2025-02-28 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:44:23] Production.INFO: ==20400== Releasing lock... [2025-02-28 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:44:23] Production.INFO: 71.75 MB #Memory Used# [2025-02-28 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:45:05 [end_date_ymd] => 2025-02-28 19:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:45:05' and `end` < '2025-02-28 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-02-28 19:45:18] Production.INFO: count ==5851 [2025-02-28 19:45:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:45:05 - End Time 2025-02-28 19:45:05 [2025-02-28 19:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578672', 'tblTempUsageDetail_20' ) start [2025-02-28 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578672', 'tblTempUsageDetail_20' ) end [2025-02-28 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578672', 'tblTempVendorCDR_20' ) start [2025-02-28 19:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578672', 'tblTempVendorCDR_20' ) end [2025-02-28 19:45:20] Production.INFO: ProcessCDR(1,14578672,1,1,2) [2025-02-28 19:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578672', 'tblTempUsageDetail_20' ) start [2025-02-28 19:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578672', 'tblTempUsageDetail_20' ) end [2025-02-28 19:45:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:45:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:45:24] Production.INFO: ==20471== Releasing lock... [2025-02-28 19:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:45:24] Production.INFO: 71.75 MB #Memory Used# [2025-02-28 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:46:05 [end_date_ymd] => 2025-02-28 19:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:46:05' and `end` < '2025-02-28 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-02-28 19:46:18] Production.INFO: count ==5830 [2025-02-28 19:46:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:46:05 - End Time 2025-02-28 19:46:05 [2025-02-28 19:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578677', 'tblTempUsageDetail_20' ) start [2025-02-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578677', 'tblTempUsageDetail_20' ) end [2025-02-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578677', 'tblTempVendorCDR_20' ) start [2025-02-28 19:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578677', 'tblTempVendorCDR_20' ) end [2025-02-28 19:46:20] Production.INFO: ProcessCDR(1,14578677,1,1,2) [2025-02-28 19:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578677', 'tblTempUsageDetail_20' ) start [2025-02-28 19:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578677', 'tblTempUsageDetail_20' ) end [2025-02-28 19:46:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:46:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:46:25] Production.INFO: ==20542== Releasing lock... [2025-02-28 19:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:46:25] Production.INFO: 71.5 MB #Memory Used# [2025-02-28 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:47:06 [end_date_ymd] => 2025-02-28 19:47:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:47:06' and `end` < '2025-02-28 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-02-28 19:47:18] Production.INFO: count ==5822 [2025-02-28 19:47:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:47:06 - End Time 2025-02-28 19:47:06 [2025-02-28 19:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578682', 'tblTempUsageDetail_20' ) start [2025-02-28 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578682', 'tblTempUsageDetail_20' ) end [2025-02-28 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578682', 'tblTempVendorCDR_20' ) start [2025-02-28 19:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578682', 'tblTempVendorCDR_20' ) end [2025-02-28 19:47:21] Production.INFO: ProcessCDR(1,14578682,1,1,2) [2025-02-28 19:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578682', 'tblTempUsageDetail_20' ) start [2025-02-28 19:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578682', 'tblTempUsageDetail_20' ) end [2025-02-28 19:47:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:47:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:47:26] Production.INFO: ==20668== Releasing lock... [2025-02-28 19:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:47:26] Production.INFO: 71.5 MB #Memory Used# [2025-02-28 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:48:05 [end_date_ymd] => 2025-02-28 19:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:48:05' and `end` < '2025-02-28 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-02-28 19:48:18] Production.INFO: count ==5803 [2025-02-28 19:48:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:48:05 - End Time 2025-02-28 19:48:05 [2025-02-28 19:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578687', 'tblTempUsageDetail_20' ) start [2025-02-28 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578687', 'tblTempUsageDetail_20' ) end [2025-02-28 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578687', 'tblTempVendorCDR_20' ) start [2025-02-28 19:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578687', 'tblTempVendorCDR_20' ) end [2025-02-28 19:48:20] Production.INFO: ProcessCDR(1,14578687,1,1,2) [2025-02-28 19:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578687', 'tblTempUsageDetail_20' ) start [2025-02-28 19:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578687', 'tblTempUsageDetail_20' ) end [2025-02-28 19:48:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:48:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:48:26] Production.INFO: ==20750== Releasing lock... [2025-02-28 19:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:48:26] Production.INFO: 71.25 MB #Memory Used# [2025-02-28 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:49:05 [end_date_ymd] => 2025-02-28 19:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:49:05' and `end` < '2025-02-28 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-02-28 19:49:18] Production.INFO: count ==5792 [2025-02-28 19:49:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:49:05 - End Time 2025-02-28 19:49:05 [2025-02-28 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578692', 'tblTempUsageDetail_20' ) start [2025-02-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578692', 'tblTempUsageDetail_20' ) end [2025-02-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578692', 'tblTempVendorCDR_20' ) start [2025-02-28 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578692', 'tblTempVendorCDR_20' ) end [2025-02-28 19:49:20] Production.INFO: ProcessCDR(1,14578692,1,1,2) [2025-02-28 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578692', 'tblTempUsageDetail_20' ) start [2025-02-28 19:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578692', 'tblTempUsageDetail_20' ) end [2025-02-28 19:49:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:49:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:49:25] Production.INFO: ==20836== Releasing lock... [2025-02-28 19:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:49:25] Production.INFO: 71.25 MB #Memory Used# [2025-02-28 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:50:06 [end_date_ymd] => 2025-02-28 19:50:06 [RateCDR] => 1 ) [2025-02-28 19:50:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:50:06' and `end` < '2025-02-28 19:50:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:50:18] Production.INFO: count ==5773 [2025-02-28 19:50:21] Production.ERROR: pbx CDR StartTime 2025-02-28 16:50:06 - End Time 2025-02-28 19:50:06 [2025-02-28 19:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578698', 'tblTempUsageDetail_20' ) start [2025-02-28 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578698', 'tblTempUsageDetail_20' ) end [2025-02-28 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578698', 'tblTempVendorCDR_20' ) start [2025-02-28 19:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578698', 'tblTempVendorCDR_20' ) end [2025-02-28 19:50:21] Production.INFO: ProcessCDR(1,14578698,1,1,2) [2025-02-28 19:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578698', 'tblTempUsageDetail_20' ) start [2025-02-28 19:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578698', 'tblTempUsageDetail_20' ) end [2025-02-28 19:50:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:50:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:50:24] Production.INFO: ==20920== Releasing lock... [2025-02-28 19:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:50:24] Production.INFO: 71 MB #Memory Used# [2025-02-28 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:51:05 [end_date_ymd] => 2025-02-28 19:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:51:05' and `end` < '2025-02-28 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-02-28 19:51:18] Production.INFO: count ==5678 [2025-02-28 19:51:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:51:05 - End Time 2025-02-28 19:51:05 [2025-02-28 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578703', 'tblTempUsageDetail_20' ) start [2025-02-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578703', 'tblTempUsageDetail_20' ) end [2025-02-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578703', 'tblTempVendorCDR_20' ) start [2025-02-28 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578703', 'tblTempVendorCDR_20' ) end [2025-02-28 19:51:20] Production.INFO: ProcessCDR(1,14578703,1,1,2) [2025-02-28 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578703', 'tblTempUsageDetail_20' ) start [2025-02-28 19:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578703', 'tblTempUsageDetail_20' ) end [2025-02-28 19:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:51:25] Production.INFO: ==20991== Releasing lock... [2025-02-28 19:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:51:25] Production.INFO: 70.5 MB #Memory Used# [2025-02-28 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:52:05 [end_date_ymd] => 2025-02-28 19:52:05 [RateCDR] => 1 ) [2025-02-28 19: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-02-28 16:52:05' and `end` < '2025-02-28 19: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-02-28 19:52:18] Production.INFO: count ==5664 [2025-02-28 19:52:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:52:05 - End Time 2025-02-28 19:52:05 [2025-02-28 19:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578708', 'tblTempUsageDetail_20' ) start [2025-02-28 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578708', 'tblTempUsageDetail_20' ) end [2025-02-28 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578708', 'tblTempVendorCDR_20' ) start [2025-02-28 19:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578708', 'tblTempVendorCDR_20' ) end [2025-02-28 19:52:20] Production.INFO: ProcessCDR(1,14578708,1,1,2) [2025-02-28 19:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578708', 'tblTempUsageDetail_20' ) start [2025-02-28 19:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578708', 'tblTempUsageDetail_20' ) end [2025-02-28 19:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:52:24] Production.INFO: ==21072== Releasing lock... [2025-02-28 19:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:52:24] Production.INFO: 70.25 MB #Memory Used# [2025-02-28 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:53:05 [end_date_ymd] => 2025-02-28 19:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:53:05' and `end` < '2025-02-28 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-02-28 19:53:18] Production.INFO: count ==5636 [2025-02-28 19:53:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:53:05 - End Time 2025-02-28 19:53:05 [2025-02-28 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578713', 'tblTempUsageDetail_20' ) start [2025-02-28 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578713', 'tblTempUsageDetail_20' ) end [2025-02-28 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578713', 'tblTempVendorCDR_20' ) start [2025-02-28 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578713', 'tblTempVendorCDR_20' ) end [2025-02-28 19:53:20] Production.INFO: ProcessCDR(1,14578713,1,1,2) [2025-02-28 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578713', 'tblTempUsageDetail_20' ) start [2025-02-28 19:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578713', 'tblTempUsageDetail_20' ) end [2025-02-28 19:53:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:53:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:53:25] Production.INFO: ==21153== Releasing lock... [2025-02-28 19:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:53:25] Production.INFO: 70 MB #Memory Used# [2025-02-28 19:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:54:06 [end_date_ymd] => 2025-02-28 19:54:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:54:06' and `end` < '2025-02-28 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-02-28 19:54:18] Production.INFO: count ==5615 [2025-02-28 19:54:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:54:06 - End Time 2025-02-28 19:54:06 [2025-02-28 19:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578718', 'tblTempUsageDetail_20' ) start [2025-02-28 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578718', 'tblTempUsageDetail_20' ) end [2025-02-28 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578718', 'tblTempVendorCDR_20' ) start [2025-02-28 19:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578718', 'tblTempVendorCDR_20' ) end [2025-02-28 19:54:21] Production.INFO: ProcessCDR(1,14578718,1,1,2) [2025-02-28 19:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578718', 'tblTempUsageDetail_20' ) start [2025-02-28 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578718', 'tblTempUsageDetail_20' ) end [2025-02-28 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:54:25] Production.INFO: ==21238== Releasing lock... [2025-02-28 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:54:25] Production.INFO: 70 MB #Memory Used# [2025-02-28 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:55:05 [end_date_ymd] => 2025-02-28 19:55:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:55:05' and `end` < '2025-02-28 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-02-28 19:55:18] Production.INFO: count ==5586 [2025-02-28 19:55:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:55:05 - End Time 2025-02-28 19:55:05 [2025-02-28 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578723', 'tblTempUsageDetail_20' ) start [2025-02-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578723', 'tblTempUsageDetail_20' ) end [2025-02-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578723', 'tblTempVendorCDR_20' ) start [2025-02-28 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578723', 'tblTempVendorCDR_20' ) end [2025-02-28 19:55:20] Production.INFO: ProcessCDR(1,14578723,1,1,2) [2025-02-28 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578723', 'tblTempUsageDetail_20' ) start [2025-02-28 19:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578723', 'tblTempUsageDetail_20' ) end [2025-02-28 19:55:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:55:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:55:25] Production.INFO: ==21322== Releasing lock... [2025-02-28 19:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:55:25] Production.INFO: 69.75 MB #Memory Used# [2025-02-28 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:56:05 [end_date_ymd] => 2025-02-28 19:56:05 [RateCDR] => 1 ) [2025-02-28 19:56:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 16:56:05' and `end` < '2025-02-28 19:56:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 19:56:18] Production.INFO: count ==5560 [2025-02-28 19:56:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:56:05 - End Time 2025-02-28 19:56:05 [2025-02-28 19:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578728', 'tblTempUsageDetail_20' ) start [2025-02-28 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578728', 'tblTempUsageDetail_20' ) end [2025-02-28 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578728', 'tblTempVendorCDR_20' ) start [2025-02-28 19:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578728', 'tblTempVendorCDR_20' ) end [2025-02-28 19:56:21] Production.INFO: ProcessCDR(1,14578728,1,1,2) [2025-02-28 19:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578728', 'tblTempUsageDetail_20' ) start [2025-02-28 19:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578728', 'tblTempUsageDetail_20' ) end [2025-02-28 19:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:56:25] Production.INFO: ==21401== Releasing lock... [2025-02-28 19:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:56:25] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:57:05 [end_date_ymd] => 2025-02-28 19:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:57:05' and `end` < '2025-02-28 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-02-28 19:57:17] Production.INFO: count ==5550 [2025-02-28 19:57:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:57:05 - End Time 2025-02-28 19:57:05 [2025-02-28 19:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578733', 'tblTempUsageDetail_20' ) start [2025-02-28 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578733', 'tblTempUsageDetail_20' ) end [2025-02-28 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578733', 'tblTempVendorCDR_20' ) start [2025-02-28 19:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578733', 'tblTempVendorCDR_20' ) end [2025-02-28 19:57:20] Production.INFO: ProcessCDR(1,14578733,1,1,2) [2025-02-28 19:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578733', 'tblTempUsageDetail_20' ) start [2025-02-28 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578733', 'tblTempUsageDetail_20' ) end [2025-02-28 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:57:24] Production.INFO: ==21474== Releasing lock... [2025-02-28 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:57:24] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:58:05 [end_date_ymd] => 2025-02-28 19:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:58:05' and `end` < '2025-02-28 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-02-28 19:58:18] Production.INFO: count ==5563 [2025-02-28 19:58:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:58:05 - End Time 2025-02-28 19:58:05 [2025-02-28 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578738', 'tblTempUsageDetail_20' ) start [2025-02-28 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578738', 'tblTempUsageDetail_20' ) end [2025-02-28 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578738', 'tblTempVendorCDR_20' ) start [2025-02-28 19:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578738', 'tblTempVendorCDR_20' ) end [2025-02-28 19:58:21] Production.INFO: ProcessCDR(1,14578738,1,1,2) [2025-02-28 19:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578738', 'tblTempUsageDetail_20' ) start [2025-02-28 19:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578738', 'tblTempUsageDetail_20' ) end [2025-02-28 19:58:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:58:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:58:26] Production.INFO: ==21548== Releasing lock... [2025-02-28 19:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:58:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 16:59:05 [end_date_ymd] => 2025-02-28 19:59:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 16:59:05' and `end` < '2025-02-28 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-02-28 19:59:18] Production.INFO: count ==5556 [2025-02-28 19:59:20] Production.ERROR: pbx CDR StartTime 2025-02-28 16:59:05 - End Time 2025-02-28 19:59:05 [2025-02-28 19:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578743', 'tblTempUsageDetail_20' ) start [2025-02-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578743', 'tblTempUsageDetail_20' ) end [2025-02-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578743', 'tblTempVendorCDR_20' ) start [2025-02-28 19:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578743', 'tblTempVendorCDR_20' ) end [2025-02-28 19:59:20] Production.INFO: ProcessCDR(1,14578743,1,1,2) [2025-02-28 19:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 19:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578743', 'tblTempUsageDetail_20' ) start [2025-02-28 19:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578743', 'tblTempUsageDetail_20' ) end [2025-02-28 19:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 19:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 19:59:25] Production.INFO: ==21625== Releasing lock... [2025-02-28 19:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 19:59:25] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:00:06 [end_date_ymd] => 2025-02-28 20:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:00:06' and `end` < '2025-02-28 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-02-28 20:00:19] Production.INFO: count ==5552 [2025-02-28 20:00:21] Production.ERROR: pbx CDR StartTime 2025-02-28 17:00:06 - End Time 2025-02-28 20:00:06 [2025-02-28 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578749', 'tblTempUsageDetail_20' ) start [2025-02-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578749', 'tblTempUsageDetail_20' ) end [2025-02-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578749', 'tblTempVendorCDR_20' ) start [2025-02-28 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578749', 'tblTempVendorCDR_20' ) end [2025-02-28 20:00:21] Production.INFO: ProcessCDR(1,14578749,1,1,2) [2025-02-28 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578749', 'tblTempUsageDetail_20' ) start [2025-02-28 20:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578749', 'tblTempUsageDetail_20' ) end [2025-02-28 20:00:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:00:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:00:26] Production.INFO: ==21706== Releasing lock... [2025-02-28 20:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:00:26] Production.INFO: 69.5 MB #Memory Used# [2025-02-28 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:01:05 [end_date_ymd] => 2025-02-28 20:01:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:01:05' and `end` < '2025-02-28 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-02-28 20:01:18] Production.INFO: count ==5501 [2025-02-28 20:01:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:01:05 - End Time 2025-02-28 20:01:05 [2025-02-28 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578754', 'tblTempUsageDetail_20' ) start [2025-02-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578754', 'tblTempUsageDetail_20' ) end [2025-02-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578754', 'tblTempVendorCDR_20' ) start [2025-02-28 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578754', 'tblTempVendorCDR_20' ) end [2025-02-28 20:01:20] Production.INFO: ProcessCDR(1,14578754,1,1,2) [2025-02-28 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578754', 'tblTempUsageDetail_20' ) start [2025-02-28 20:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578754', 'tblTempUsageDetail_20' ) end [2025-02-28 20:01:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:01:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:01:25] Production.INFO: ==21849== Releasing lock... [2025-02-28 20:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:01:25] Production.INFO: 69 MB #Memory Used# [2025-02-28 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:02:05 [end_date_ymd] => 2025-02-28 20:02:05 [RateCDR] => 1 ) [2025-02-28 20:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:02:05' and `end` < '2025-02-28 20:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:02:18] Production.INFO: count ==5486 [2025-02-28 20:02:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:02:05 - End Time 2025-02-28 20:02:05 [2025-02-28 20:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578759', 'tblTempUsageDetail_20' ) start [2025-02-28 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578759', 'tblTempUsageDetail_20' ) end [2025-02-28 20:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578759', 'tblTempVendorCDR_20' ) start [2025-02-28 20:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578759', 'tblTempVendorCDR_20' ) end [2025-02-28 20:02:21] Production.INFO: ProcessCDR(1,14578759,1,1,2) [2025-02-28 20:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578759', 'tblTempUsageDetail_20' ) start [2025-02-28 20:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578759', 'tblTempUsageDetail_20' ) end [2025-02-28 20:02:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:02:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:02:25] Production.INFO: ==21973== Releasing lock... [2025-02-28 20:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:02:25] Production.INFO: 69 MB #Memory Used# [2025-02-28 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:03:05 [end_date_ymd] => 2025-02-28 20:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:03:05' and `end` < '2025-02-28 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-02-28 20:03:17] Production.INFO: count ==5466 [2025-02-28 20:03:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:03:05 - End Time 2025-02-28 20:03:05 [2025-02-28 20:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578764', 'tblTempUsageDetail_20' ) start [2025-02-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578764', 'tblTempUsageDetail_20' ) end [2025-02-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578764', 'tblTempVendorCDR_20' ) start [2025-02-28 20:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578764', 'tblTempVendorCDR_20' ) end [2025-02-28 20:03:20] Production.INFO: ProcessCDR(1,14578764,1,1,2) [2025-02-28 20:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578764', 'tblTempUsageDetail_20' ) start [2025-02-28 20:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578764', 'tblTempUsageDetail_20' ) end [2025-02-28 20:03:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:03:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:03:24] Production.INFO: ==22042== Releasing lock... [2025-02-28 20:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:03:24] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:04:05 [end_date_ymd] => 2025-02-28 20:04:05 [RateCDR] => 1 ) [2025-02-28 20:04:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:04:05' and `end` < '2025-02-28 20:04:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:04:18] Production.INFO: count ==5456 [2025-02-28 20:04:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:04:05 - End Time 2025-02-28 20:04:05 [2025-02-28 20:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578769', 'tblTempUsageDetail_20' ) start [2025-02-28 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578769', 'tblTempUsageDetail_20' ) end [2025-02-28 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578769', 'tblTempVendorCDR_20' ) start [2025-02-28 20:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578769', 'tblTempVendorCDR_20' ) end [2025-02-28 20:04:21] Production.INFO: ProcessCDR(1,14578769,1,1,2) [2025-02-28 20:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578769', 'tblTempUsageDetail_20' ) start [2025-02-28 20:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578769', 'tblTempUsageDetail_20' ) end [2025-02-28 20:04:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:04:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:04:25] Production.INFO: ==22121== Releasing lock... [2025-02-28 20:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:04:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:05:05 [end_date_ymd] => 2025-02-28 20:05:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:05:05' and `end` < '2025-02-28 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-02-28 20:05:18] Production.INFO: count ==5445 [2025-02-28 20:05:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:05:05 - End Time 2025-02-28 20:05:05 [2025-02-28 20:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578774', 'tblTempUsageDetail_20' ) start [2025-02-28 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578774', 'tblTempUsageDetail_20' ) end [2025-02-28 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578774', 'tblTempVendorCDR_20' ) start [2025-02-28 20:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578774', 'tblTempVendorCDR_20' ) end [2025-02-28 20:05:20] Production.INFO: ProcessCDR(1,14578774,1,1,2) [2025-02-28 20:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578774', 'tblTempUsageDetail_20' ) start [2025-02-28 20:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578774', 'tblTempUsageDetail_20' ) end [2025-02-28 20:05:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:05:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:05:24] Production.INFO: ==22198== Releasing lock... [2025-02-28 20:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:05:24] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:06:06 [end_date_ymd] => 2025-02-28 20:06:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:06:06' and `end` < '2025-02-28 20: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-02-28 20:06:18] Production.INFO: count ==5435 [2025-02-28 20:06:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:06:06 - End Time 2025-02-28 20:06:06 [2025-02-28 20:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578779', 'tblTempUsageDetail_20' ) start [2025-02-28 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578779', 'tblTempUsageDetail_20' ) end [2025-02-28 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578779', 'tblTempVendorCDR_20' ) start [2025-02-28 20:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578779', 'tblTempVendorCDR_20' ) end [2025-02-28 20:06:21] Production.INFO: ProcessCDR(1,14578779,1,1,2) [2025-02-28 20:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578779', 'tblTempUsageDetail_20' ) start [2025-02-28 20:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578779', 'tblTempUsageDetail_20' ) end [2025-02-28 20:06:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:06:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:06:26] Production.INFO: ==22273== Releasing lock... [2025-02-28 20:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:06:26] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:07:06 [end_date_ymd] => 2025-02-28 20:07:06 [RateCDR] => 1 ) [2025-02-28 20:07:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:07:06' and `end` < '2025-02-28 20: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-02-28 20:07:19] Production.INFO: count ==5472 [2025-02-28 20:07:21] Production.ERROR: pbx CDR StartTime 2025-02-28 17:07:06 - End Time 2025-02-28 20:07:06 [2025-02-28 20:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578784', 'tblTempUsageDetail_20' ) start [2025-02-28 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578784', 'tblTempUsageDetail_20' ) end [2025-02-28 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578784', 'tblTempVendorCDR_20' ) start [2025-02-28 20:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578784', 'tblTempVendorCDR_20' ) end [2025-02-28 20:07:21] Production.INFO: ProcessCDR(1,14578784,1,1,2) [2025-02-28 20:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578784', 'tblTempUsageDetail_20' ) start [2025-02-28 20:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578784', 'tblTempUsageDetail_20' ) end [2025-02-28 20:07:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:07:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:07:24] Production.INFO: ==22350== Releasing lock... [2025-02-28 20:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:07:24] Production.INFO: 69 MB #Memory Used# [2025-02-28 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:08:05 [end_date_ymd] => 2025-02-28 20:08:05 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:08:05' and `end` < '2025-02-28 20: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-02-28 20:08:17] Production.INFO: count ==5485 [2025-02-28 20:08:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:08:05 - End Time 2025-02-28 20:08:05 [2025-02-28 20:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578789', 'tblTempUsageDetail_20' ) start [2025-02-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578789', 'tblTempUsageDetail_20' ) end [2025-02-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578789', 'tblTempVendorCDR_20' ) start [2025-02-28 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578789', 'tblTempVendorCDR_20' ) end [2025-02-28 20:08:20] Production.INFO: ProcessCDR(1,14578789,1,1,2) [2025-02-28 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578789', 'tblTempUsageDetail_20' ) start [2025-02-28 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578789', 'tblTempUsageDetail_20' ) end [2025-02-28 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:08:23] Production.INFO: ==22422== Releasing lock... [2025-02-28 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:08:23] Production.INFO: 69 MB #Memory Used# [2025-02-28 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:09:05 [end_date_ymd] => 2025-02-28 20:09:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:09:05' and `end` < '2025-02-28 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-02-28 20:09:18] Production.INFO: count ==5475 [2025-02-28 20:09:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:09:05 - End Time 2025-02-28 20:09:05 [2025-02-28 20:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578794', 'tblTempUsageDetail_20' ) start [2025-02-28 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578794', 'tblTempUsageDetail_20' ) end [2025-02-28 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578794', 'tblTempVendorCDR_20' ) start [2025-02-28 20:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578794', 'tblTempVendorCDR_20' ) end [2025-02-28 20:09:21] Production.INFO: ProcessCDR(1,14578794,1,1,2) [2025-02-28 20:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578794', 'tblTempUsageDetail_20' ) start [2025-02-28 20:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578794', 'tblTempUsageDetail_20' ) end [2025-02-28 20:09:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:09:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:09:25] Production.INFO: ==22502== Releasing lock... [2025-02-28 20:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:09:25] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:10:06 [end_date_ymd] => 2025-02-28 20:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:10:06' and `end` < '2025-02-28 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-02-28 20:10:19] Production.INFO: count ==5473 [2025-02-28 20:10:21] Production.ERROR: pbx CDR StartTime 2025-02-28 17:10:06 - End Time 2025-02-28 20:10:06 [2025-02-28 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578800', 'tblTempUsageDetail_20' ) start [2025-02-28 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578800', 'tblTempUsageDetail_20' ) end [2025-02-28 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578800', 'tblTempVendorCDR_20' ) start [2025-02-28 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578800', 'tblTempVendorCDR_20' ) end [2025-02-28 20:10:21] Production.INFO: ProcessCDR(1,14578800,1,1,2) [2025-02-28 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578800', 'tblTempUsageDetail_20' ) start [2025-02-28 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578800', 'tblTempUsageDetail_20' ) end [2025-02-28 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:10:26] Production.INFO: ==22592== Releasing lock... [2025-02-28 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:10:26] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:11:05 [end_date_ymd] => 2025-02-28 20:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:11:05' and `end` < '2025-02-28 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-02-28 20:11:18] Production.INFO: count ==5438 [2025-02-28 20:11:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:11:05 - End Time 2025-02-28 20:11:05 [2025-02-28 20:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578805', 'tblTempUsageDetail_20' ) start [2025-02-28 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578805', 'tblTempUsageDetail_20' ) end [2025-02-28 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578805', 'tblTempVendorCDR_20' ) start [2025-02-28 20:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578805', 'tblTempVendorCDR_20' ) end [2025-02-28 20:11:20] Production.INFO: ProcessCDR(1,14578805,1,1,2) [2025-02-28 20:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578805', 'tblTempUsageDetail_20' ) start [2025-02-28 20:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578805', 'tblTempUsageDetail_20' ) end [2025-02-28 20:11:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:11:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:11:25] Production.INFO: ==22677== Releasing lock... [2025-02-28 20:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:11:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:12:05 [end_date_ymd] => 2025-02-28 20:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:12:05' and `end` < '2025-02-28 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-02-28 20:12:18] Production.INFO: count ==5417 [2025-02-28 20:12:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:12:05 - End Time 2025-02-28 20:12:05 [2025-02-28 20:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578810', 'tblTempUsageDetail_20' ) start [2025-02-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578810', 'tblTempUsageDetail_20' ) end [2025-02-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578810', 'tblTempVendorCDR_20' ) start [2025-02-28 20:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578810', 'tblTempVendorCDR_20' ) end [2025-02-28 20:12:20] Production.INFO: ProcessCDR(1,14578810,1,1,2) [2025-02-28 20:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578810', 'tblTempUsageDetail_20' ) start [2025-02-28 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578810', 'tblTempUsageDetail_20' ) end [2025-02-28 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:12:23] Production.INFO: ==22747== Releasing lock... [2025-02-28 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:12:23] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:13:05 [end_date_ymd] => 2025-02-28 20:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:13:05' and `end` < '2025-02-28 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-02-28 20:13:18] Production.INFO: count ==5402 [2025-02-28 20:13:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:13:05 - End Time 2025-02-28 20:13:05 [2025-02-28 20:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578815', 'tblTempUsageDetail_20' ) start [2025-02-28 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578815', 'tblTempUsageDetail_20' ) end [2025-02-28 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578815', 'tblTempVendorCDR_20' ) start [2025-02-28 20:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578815', 'tblTempVendorCDR_20' ) end [2025-02-28 20:13:20] Production.INFO: ProcessCDR(1,14578815,1,1,2) [2025-02-28 20:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578815', 'tblTempUsageDetail_20' ) start [2025-02-28 20:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578815', 'tblTempUsageDetail_20' ) end [2025-02-28 20:13:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:13:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:13:25] Production.INFO: ==22840== Releasing lock... [2025-02-28 20:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:13:25] Production.INFO: 68.25 MB #Memory Used# [2025-02-28 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:14:05 [end_date_ymd] => 2025-02-28 20:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:14:05' and `end` < '2025-02-28 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-02-28 20:14:18] Production.INFO: count ==5393 [2025-02-28 20:14:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:14:05 - End Time 2025-02-28 20:14:05 [2025-02-28 20:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578820', 'tblTempUsageDetail_20' ) start [2025-02-28 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578820', 'tblTempUsageDetail_20' ) end [2025-02-28 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578820', 'tblTempVendorCDR_20' ) start [2025-02-28 20:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578820', 'tblTempVendorCDR_20' ) end [2025-02-28 20:14:20] Production.INFO: ProcessCDR(1,14578820,1,1,2) [2025-02-28 20:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578820', 'tblTempUsageDetail_20' ) start [2025-02-28 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578820', 'tblTempUsageDetail_20' ) end [2025-02-28 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:14:24] Production.INFO: ==22919== Releasing lock... [2025-02-28 20:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:14:24] Production.INFO: 68.25 MB #Memory Used# [2025-02-28 20:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:15:06 [end_date_ymd] => 2025-02-28 20:15:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:15:06' and `end` < '2025-02-28 20: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-02-28 20:15:18] Production.INFO: count ==5443 [2025-02-28 20:15:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:15:06 - End Time 2025-02-28 20:15:06 [2025-02-28 20:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578825', 'tblTempUsageDetail_20' ) start [2025-02-28 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578825', 'tblTempUsageDetail_20' ) end [2025-02-28 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578825', 'tblTempVendorCDR_20' ) start [2025-02-28 20:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578825', 'tblTempVendorCDR_20' ) end [2025-02-28 20:15:21] Production.INFO: ProcessCDR(1,14578825,1,1,2) [2025-02-28 20:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578825', 'tblTempUsageDetail_20' ) start [2025-02-28 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578825', 'tblTempUsageDetail_20' ) end [2025-02-28 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:15:24] Production.INFO: ==22998== Releasing lock... [2025-02-28 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:15:24] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:16:05 [end_date_ymd] => 2025-02-28 20:16:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:16:05' and `end` < '2025-02-28 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-02-28 20:16:17] Production.INFO: count ==5444 [2025-02-28 20:16:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:16:05 - End Time 2025-02-28 20:16:05 [2025-02-28 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578830', 'tblTempUsageDetail_20' ) start [2025-02-28 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578830', 'tblTempUsageDetail_20' ) end [2025-02-28 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578830', 'tblTempVendorCDR_20' ) start [2025-02-28 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578830', 'tblTempVendorCDR_20' ) end [2025-02-28 20:16:19] Production.INFO: ProcessCDR(1,14578830,1,1,2) [2025-02-28 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578830', 'tblTempUsageDetail_20' ) start [2025-02-28 20:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578830', 'tblTempUsageDetail_20' ) end [2025-02-28 20:16:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:16:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:16:24] Production.INFO: ==23073== Releasing lock... [2025-02-28 20:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:16:24] Production.INFO: 68.75 MB #Memory Used# [2025-02-28 20:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:17:06 [end_date_ymd] => 2025-02-28 20:17:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:17:06' and `end` < '2025-02-28 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-02-28 20:17:18] Production.INFO: count ==5425 [2025-02-28 20:17:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:17:06 - End Time 2025-02-28 20:17:06 [2025-02-28 20:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578835', 'tblTempUsageDetail_20' ) start [2025-02-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578835', 'tblTempUsageDetail_20' ) end [2025-02-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578835', 'tblTempVendorCDR_20' ) start [2025-02-28 20:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578835', 'tblTempVendorCDR_20' ) end [2025-02-28 20:17:20] Production.INFO: ProcessCDR(1,14578835,1,1,2) [2025-02-28 20:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578835', 'tblTempUsageDetail_20' ) start [2025-02-28 20:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578835', 'tblTempUsageDetail_20' ) end [2025-02-28 20:17:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:17:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:17:25] Production.INFO: ==23156== Releasing lock... [2025-02-28 20:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:17:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:18:05 [end_date_ymd] => 2025-02-28 20:18:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:18:05' and `end` < '2025-02-28 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-02-28 20:18:18] Production.INFO: count ==5413 [2025-02-28 20:18:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:18:05 - End Time 2025-02-28 20:18:05 [2025-02-28 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578840', 'tblTempUsageDetail_20' ) start [2025-02-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578840', 'tblTempUsageDetail_20' ) end [2025-02-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578840', 'tblTempVendorCDR_20' ) start [2025-02-28 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578840', 'tblTempVendorCDR_20' ) end [2025-02-28 20:18:20] Production.INFO: ProcessCDR(1,14578840,1,1,2) [2025-02-28 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578840', 'tblTempUsageDetail_20' ) start [2025-02-28 20:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578840', 'tblTempUsageDetail_20' ) end [2025-02-28 20:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:18:25] Production.INFO: ==23293== Releasing lock... [2025-02-28 20:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:18:25] Production.INFO: 68.5 MB #Memory Used# [2025-02-28 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:19:05 [end_date_ymd] => 2025-02-28 20:19:05 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:19:05' and `end` < '2025-02-28 20: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-02-28 20:19:17] Production.INFO: count ==5405 [2025-02-28 20:19:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:19:05 - End Time 2025-02-28 20:19:05 [2025-02-28 20:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578845', 'tblTempUsageDetail_20' ) start [2025-02-28 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578845', 'tblTempUsageDetail_20' ) end [2025-02-28 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578845', 'tblTempVendorCDR_20' ) start [2025-02-28 20:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578845', 'tblTempVendorCDR_20' ) end [2025-02-28 20:19:20] Production.INFO: ProcessCDR(1,14578845,1,1,2) [2025-02-28 20:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578845', 'tblTempUsageDetail_20' ) start [2025-02-28 20:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578845', 'tblTempUsageDetail_20' ) end [2025-02-28 20:19:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:19:24] Production.INFO: ==23371== Releasing lock... [2025-02-28 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:19:24] Production.INFO: 68.25 MB #Memory Used# [2025-02-28 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:20:06 [end_date_ymd] => 2025-02-28 20:20:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:20:06' and `end` < '2025-02-28 20: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-02-28 20:20:18] Production.INFO: count ==5378 [2025-02-28 20:20:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:20:06 - End Time 2025-02-28 20:20:06 [2025-02-28 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578850', 'tblTempUsageDetail_20' ) start [2025-02-28 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578850', 'tblTempUsageDetail_20' ) end [2025-02-28 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578850', 'tblTempVendorCDR_20' ) start [2025-02-28 20:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578850', 'tblTempVendorCDR_20' ) end [2025-02-28 20:20:21] Production.INFO: ProcessCDR(1,14578850,1,1,2) [2025-02-28 20:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578850', 'tblTempUsageDetail_20' ) start [2025-02-28 20:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578850', 'tblTempUsageDetail_20' ) end [2025-02-28 20:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:20:24] Production.INFO: ==23464== Releasing lock... [2025-02-28 20:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:20:24] Production.INFO: 68.25 MB #Memory Used# [2025-02-28 20:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:21:04 [end_date_ymd] => 2025-02-28 20:21:04 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:21:04' and `end` < '2025-02-28 20: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-02-28 20:21:17] Production.INFO: count ==5322 [2025-02-28 20:21:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:21:04 - End Time 2025-02-28 20:21:04 [2025-02-28 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578856', 'tblTempUsageDetail_20' ) start [2025-02-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578856', 'tblTempUsageDetail_20' ) end [2025-02-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578856', 'tblTempVendorCDR_20' ) start [2025-02-28 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578856', 'tblTempVendorCDR_20' ) end [2025-02-28 20:21:19] Production.INFO: ProcessCDR(1,14578856,1,1,2) [2025-02-28 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578856', 'tblTempUsageDetail_20' ) start [2025-02-28 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578856', 'tblTempUsageDetail_20' ) end [2025-02-28 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:21:24] Production.INFO: ==23559== Releasing lock... [2025-02-28 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:21:24] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:22:05 [end_date_ymd] => 2025-02-28 20:22:05 [RateCDR] => 1 ) [2025-02-28 20:22:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:22:05' and `end` < '2025-02-28 20:22:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:22:18] Production.INFO: count ==5310 [2025-02-28 20:22:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:22:05 - End Time 2025-02-28 20:22:05 [2025-02-28 20:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578861', 'tblTempUsageDetail_20' ) start [2025-02-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578861', 'tblTempUsageDetail_20' ) end [2025-02-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578861', 'tblTempVendorCDR_20' ) start [2025-02-28 20:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578861', 'tblTempVendorCDR_20' ) end [2025-02-28 20:22:20] Production.INFO: ProcessCDR(1,14578861,1,1,2) [2025-02-28 20:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578861', 'tblTempUsageDetail_20' ) start [2025-02-28 20:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578861', 'tblTempUsageDetail_20' ) end [2025-02-28 20:22:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:22:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:22:25] Production.INFO: ==23663== Releasing lock... [2025-02-28 20:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:22:25] Production.INFO: 67.75 MB #Memory Used# [2025-02-28 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:23:05 [end_date_ymd] => 2025-02-28 20:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:23:05' and `end` < '2025-02-28 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-02-28 20:23:17] Production.INFO: count ==5295 [2025-02-28 20:23:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:23:05 - End Time 2025-02-28 20:23:05 [2025-02-28 20:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578866', 'tblTempUsageDetail_20' ) start [2025-02-28 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578866', 'tblTempUsageDetail_20' ) end [2025-02-28 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578866', 'tblTempVendorCDR_20' ) start [2025-02-28 20:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578866', 'tblTempVendorCDR_20' ) end [2025-02-28 20:23:20] Production.INFO: ProcessCDR(1,14578866,1,1,2) [2025-02-28 20:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578866', 'tblTempUsageDetail_20' ) start [2025-02-28 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578866', 'tblTempUsageDetail_20' ) end [2025-02-28 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:23:23] Production.INFO: ==23774== Releasing lock... [2025-02-28 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:23:23] Production.INFO: 67.5 MB #Memory Used# [2025-02-28 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:24:06 [end_date_ymd] => 2025-02-28 20:24:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:24:06' and `end` < '2025-02-28 20: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-02-28 20:24:18] Production.INFO: count ==5274 [2025-02-28 20:24:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:24:06 - End Time 2025-02-28 20:24:06 [2025-02-28 20:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578871', 'tblTempUsageDetail_20' ) start [2025-02-28 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578871', 'tblTempUsageDetail_20' ) end [2025-02-28 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578871', 'tblTempVendorCDR_20' ) start [2025-02-28 20:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578871', 'tblTempVendorCDR_20' ) end [2025-02-28 20:24:20] Production.INFO: ProcessCDR(1,14578871,1,1,2) [2025-02-28 20:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578871', 'tblTempUsageDetail_20' ) start [2025-02-28 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578871', 'tblTempUsageDetail_20' ) end [2025-02-28 20:24:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:24:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:24:25] Production.INFO: ==23872== Releasing lock... [2025-02-28 20:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:24:25] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:25:05 [end_date_ymd] => 2025-02-28 20:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:25:05' and `end` < '2025-02-28 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-02-28 20:25:17] Production.INFO: count ==5259 [2025-02-28 20:25:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:25:05 - End Time 2025-02-28 20:25:05 [2025-02-28 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578876', 'tblTempUsageDetail_20' ) start [2025-02-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578876', 'tblTempUsageDetail_20' ) end [2025-02-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578876', 'tblTempVendorCDR_20' ) start [2025-02-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578876', 'tblTempVendorCDR_20' ) end [2025-02-28 20:25:19] Production.INFO: ProcessCDR(1,14578876,1,1,2) [2025-02-28 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578876', 'tblTempUsageDetail_20' ) start [2025-02-28 20:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578876', 'tblTempUsageDetail_20' ) end [2025-02-28 20:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:25:23] Production.INFO: ==23962== Releasing lock... [2025-02-28 20:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:25:23] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 20:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:26:06 [end_date_ymd] => 2025-02-28 20:26:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:26:06' and `end` < '2025-02-28 20: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-02-28 20:26:19] Production.INFO: count ==5248 [2025-02-28 20:26:21] Production.ERROR: pbx CDR StartTime 2025-02-28 17:26:06 - End Time 2025-02-28 20:26:06 [2025-02-28 20:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578881', 'tblTempUsageDetail_20' ) start [2025-02-28 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578881', 'tblTempUsageDetail_20' ) end [2025-02-28 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578881', 'tblTempVendorCDR_20' ) start [2025-02-28 20:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578881', 'tblTempVendorCDR_20' ) end [2025-02-28 20:26:21] Production.INFO: ProcessCDR(1,14578881,1,1,2) [2025-02-28 20:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578881', 'tblTempUsageDetail_20' ) start [2025-02-28 20:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578881', 'tblTempUsageDetail_20' ) end [2025-02-28 20:26:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:26:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:26:24] Production.INFO: ==24058== Releasing lock... [2025-02-28 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:26:24] Production.INFO: 67.25 MB #Memory Used# [2025-02-28 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:27:05 [end_date_ymd] => 2025-02-28 20:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:27:05' and `end` < '2025-02-28 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-02-28 20:27:17] Production.INFO: count ==5237 [2025-02-28 20:27:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:27:05 - End Time 2025-02-28 20:27:05 [2025-02-28 20:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578886', 'tblTempUsageDetail_20' ) start [2025-02-28 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578886', 'tblTempUsageDetail_20' ) end [2025-02-28 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578886', 'tblTempVendorCDR_20' ) start [2025-02-28 20:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578886', 'tblTempVendorCDR_20' ) end [2025-02-28 20:27:20] Production.INFO: ProcessCDR(1,14578886,1,1,2) [2025-02-28 20:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578886', 'tblTempUsageDetail_20' ) start [2025-02-28 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578886', 'tblTempUsageDetail_20' ) end [2025-02-28 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:27:24] Production.INFO: ==24161== Releasing lock... [2025-02-28 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:27:24] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:28:06 [end_date_ymd] => 2025-02-28 20:28:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:28:06' and `end` < '2025-02-28 20: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-02-28 20:28:18] Production.INFO: count ==5230 [2025-02-28 20:28:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:28:06 - End Time 2025-02-28 20:28:06 [2025-02-28 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578891', 'tblTempUsageDetail_20' ) start [2025-02-28 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578891', 'tblTempUsageDetail_20' ) end [2025-02-28 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578891', 'tblTempVendorCDR_20' ) start [2025-02-28 20:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578891', 'tblTempVendorCDR_20' ) end [2025-02-28 20:28:21] Production.INFO: ProcessCDR(1,14578891,1,1,2) [2025-02-28 20:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578891', 'tblTempUsageDetail_20' ) start [2025-02-28 20:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578891', 'tblTempUsageDetail_20' ) end [2025-02-28 20:28:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:28:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:28:24] Production.INFO: ==24257== Releasing lock... [2025-02-28 20:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:28:24] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:29:05 [end_date_ymd] => 2025-02-28 20:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:29:05' and `end` < '2025-02-28 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-02-28 20:29:17] Production.INFO: count ==5221 [2025-02-28 20:29:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:29:05 - End Time 2025-02-28 20:29:05 [2025-02-28 20:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578896', 'tblTempUsageDetail_20' ) start [2025-02-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578896', 'tblTempUsageDetail_20' ) end [2025-02-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578896', 'tblTempVendorCDR_20' ) start [2025-02-28 20:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578896', 'tblTempVendorCDR_20' ) end [2025-02-28 20:29:20] Production.INFO: ProcessCDR(1,14578896,1,1,2) [2025-02-28 20:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578896', 'tblTempUsageDetail_20' ) start [2025-02-28 20:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578896', 'tblTempUsageDetail_20' ) end [2025-02-28 20:29:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:29:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:29:25] Production.INFO: ==24351== Releasing lock... [2025-02-28 20:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:29:25] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:30:06 [end_date_ymd] => 2025-02-28 20:30:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:30:06' and `end` < '2025-02-28 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-02-28 20:30:19] Production.INFO: count ==5213 [2025-02-28 20:30:21] Production.ERROR: pbx CDR StartTime 2025-02-28 17:30:06 - End Time 2025-02-28 20:30:06 [2025-02-28 20:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578902', 'tblTempUsageDetail_20' ) start [2025-02-28 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578902', 'tblTempUsageDetail_20' ) end [2025-02-28 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578902', 'tblTempVendorCDR_20' ) start [2025-02-28 20:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578902', 'tblTempVendorCDR_20' ) end [2025-02-28 20:30:22] Production.INFO: ProcessCDR(1,14578902,1,1,2) [2025-02-28 20:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578902', 'tblTempUsageDetail_20' ) start [2025-02-28 20:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578902', 'tblTempUsageDetail_20' ) end [2025-02-28 20:30:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:30:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:30:26] Production.INFO: ==24447== Releasing lock... [2025-02-28 20:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:30:26] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:31:05 [end_date_ymd] => 2025-02-28 20:31:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:31:05' and `end` < '2025-02-28 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-02-28 20:31:17] Production.INFO: count ==5199 [2025-02-28 20:31:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:31:05 - End Time 2025-02-28 20:31:05 [2025-02-28 20:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578907', 'tblTempUsageDetail_20' ) start [2025-02-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578907', 'tblTempUsageDetail_20' ) end [2025-02-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578907', 'tblTempVendorCDR_20' ) start [2025-02-28 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578907', 'tblTempVendorCDR_20' ) end [2025-02-28 20:31:19] Production.INFO: ProcessCDR(1,14578907,1,1,2) [2025-02-28 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578907', 'tblTempUsageDetail_20' ) start [2025-02-28 20:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578907', 'tblTempUsageDetail_20' ) end [2025-02-28 20:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:31:23] Production.INFO: ==24543== Releasing lock... [2025-02-28 20:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:31:23] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:32:05 [end_date_ymd] => 2025-02-28 20:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:32:05' and `end` < '2025-02-28 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-02-28 20:32:18] Production.INFO: count ==5187 [2025-02-28 20:32:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:32:05 - End Time 2025-02-28 20:32:05 [2025-02-28 20:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578912', 'tblTempUsageDetail_20' ) start [2025-02-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578912', 'tblTempUsageDetail_20' ) end [2025-02-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578912', 'tblTempVendorCDR_20' ) start [2025-02-28 20:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578912', 'tblTempVendorCDR_20' ) end [2025-02-28 20:32:20] Production.INFO: ProcessCDR(1,14578912,1,1,2) [2025-02-28 20:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578912', 'tblTempUsageDetail_20' ) start [2025-02-28 20:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578912', 'tblTempUsageDetail_20' ) end [2025-02-28 20:32:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:32:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:32:25] Production.INFO: ==24650== Releasing lock... [2025-02-28 20:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:32:25] Production.INFO: 66.75 MB #Memory Used# [2025-02-28 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:33:05 [end_date_ymd] => 2025-02-28 20:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:33:05' and `end` < '2025-02-28 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-02-28 20:33:18] Production.INFO: count ==5169 [2025-02-28 20:33:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:33:05 - End Time 2025-02-28 20:33:05 [2025-02-28 20:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578917', 'tblTempUsageDetail_20' ) start [2025-02-28 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578917', 'tblTempUsageDetail_20' ) end [2025-02-28 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578917', 'tblTempVendorCDR_20' ) start [2025-02-28 20:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578917', 'tblTempVendorCDR_20' ) end [2025-02-28 20:33:20] Production.INFO: ProcessCDR(1,14578917,1,1,2) [2025-02-28 20:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578917', 'tblTempUsageDetail_20' ) start [2025-02-28 20:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578917', 'tblTempUsageDetail_20' ) end [2025-02-28 20:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:33:23] Production.INFO: ==24790== Releasing lock... [2025-02-28 20:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:33:23] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:34:05 [end_date_ymd] => 2025-02-28 20:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:34:05' and `end` < '2025-02-28 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-02-28 20:34:18] Production.INFO: count ==5165 [2025-02-28 20:34:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:34:05 - End Time 2025-02-28 20:34:05 [2025-02-28 20:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578922', 'tblTempUsageDetail_20' ) start [2025-02-28 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578922', 'tblTempUsageDetail_20' ) end [2025-02-28 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578922', 'tblTempVendorCDR_20' ) start [2025-02-28 20:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578922', 'tblTempVendorCDR_20' ) end [2025-02-28 20:34:20] Production.INFO: ProcessCDR(1,14578922,1,1,2) [2025-02-28 20:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578922', 'tblTempUsageDetail_20' ) start [2025-02-28 20:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578922', 'tblTempUsageDetail_20' ) end [2025-02-28 20:34:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:34:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:34:25] Production.INFO: ==24883== Releasing lock... [2025-02-28 20:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:34:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:35:05 [end_date_ymd] => 2025-02-28 20:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:35:05' and `end` < '2025-02-28 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-02-28 20:35:17] Production.INFO: count ==5143 [2025-02-28 20:35:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:35:05 - End Time 2025-02-28 20:35:05 [2025-02-28 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578927', 'tblTempUsageDetail_20' ) start [2025-02-28 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578927', 'tblTempUsageDetail_20' ) end [2025-02-28 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578927', 'tblTempVendorCDR_20' ) start [2025-02-28 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578927', 'tblTempVendorCDR_20' ) end [2025-02-28 20:35:20] Production.INFO: ProcessCDR(1,14578927,1,1,2) [2025-02-28 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578927', 'tblTempUsageDetail_20' ) start [2025-02-28 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578927', 'tblTempUsageDetail_20' ) end [2025-02-28 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:35:24] Production.INFO: ==24978== Releasing lock... [2025-02-28 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:35:24] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:36:05 [end_date_ymd] => 2025-02-28 20:36:05 [RateCDR] => 1 ) [2025-02-28 20:36:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:36:05' and `end` < '2025-02-28 20:36:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:36:17] Production.INFO: count ==5128 [2025-02-28 20:36:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:36:05 - End Time 2025-02-28 20:36:05 [2025-02-28 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578932', 'tblTempUsageDetail_20' ) start [2025-02-28 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578932', 'tblTempUsageDetail_20' ) end [2025-02-28 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578932', 'tblTempVendorCDR_20' ) start [2025-02-28 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578932', 'tblTempVendorCDR_20' ) end [2025-02-28 20:36:20] Production.INFO: ProcessCDR(1,14578932,1,1,2) [2025-02-28 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578932', 'tblTempUsageDetail_20' ) start [2025-02-28 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578932', 'tblTempUsageDetail_20' ) end [2025-02-28 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:36:23] Production.INFO: ==25069== Releasing lock... [2025-02-28 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:36:23] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:37:05 [end_date_ymd] => 2025-02-28 20:37:05 [RateCDR] => 1 ) [2025-02-28 20:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:37:05' and `end` < '2025-02-28 20:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:37:18] Production.INFO: count ==5234 [2025-02-28 20:37:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:37:05 - End Time 2025-02-28 20:37:05 [2025-02-28 20:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578937', 'tblTempUsageDetail_20' ) start [2025-02-28 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578937', 'tblTempUsageDetail_20' ) end [2025-02-28 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578937', 'tblTempVendorCDR_20' ) start [2025-02-28 20:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578937', 'tblTempVendorCDR_20' ) end [2025-02-28 20:37:20] Production.INFO: ProcessCDR(1,14578937,1,1,2) [2025-02-28 20:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578937', 'tblTempUsageDetail_20' ) start [2025-02-28 20:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578937', 'tblTempUsageDetail_20' ) end [2025-02-28 20:37:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:37:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:37:25] Production.INFO: ==25164== Releasing lock... [2025-02-28 20:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:37:25] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:38:05 [end_date_ymd] => 2025-02-28 20:38:05 [RateCDR] => 1 ) [2025-02-28 20:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:38:05' and `end` < '2025-02-28 20:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:38:18] Production.INFO: count ==5224 [2025-02-28 20:38:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:38:05 - End Time 2025-02-28 20:38:05 [2025-02-28 20:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578942', 'tblTempUsageDetail_20' ) start [2025-02-28 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578942', 'tblTempUsageDetail_20' ) end [2025-02-28 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578942', 'tblTempVendorCDR_20' ) start [2025-02-28 20:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578942', 'tblTempVendorCDR_20' ) end [2025-02-28 20:38:20] Production.INFO: ProcessCDR(1,14578942,1,1,2) [2025-02-28 20:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578942', 'tblTempUsageDetail_20' ) start [2025-02-28 20:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578942', 'tblTempUsageDetail_20' ) end [2025-02-28 20:38:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:38:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:38:24] Production.INFO: ==25254== Releasing lock... [2025-02-28 20:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:38:24] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:39:06 [end_date_ymd] => 2025-02-28 20:39:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:39:06' and `end` < '2025-02-28 20: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-02-28 20:39:18] Production.INFO: count ==5234 [2025-02-28 20:39:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:39:06 - End Time 2025-02-28 20:39:06 [2025-02-28 20:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578947', 'tblTempUsageDetail_20' ) start [2025-02-28 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578947', 'tblTempUsageDetail_20' ) end [2025-02-28 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578947', 'tblTempVendorCDR_20' ) start [2025-02-28 20:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578947', 'tblTempVendorCDR_20' ) end [2025-02-28 20:39:21] Production.INFO: ProcessCDR(1,14578947,1,1,2) [2025-02-28 20:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578947', 'tblTempUsageDetail_20' ) start [2025-02-28 20:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578947', 'tblTempUsageDetail_20' ) end [2025-02-28 20:39:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:39:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:39:25] Production.INFO: ==25344== Releasing lock... [2025-02-28 20:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:39:25] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:40:05 [end_date_ymd] => 2025-02-28 20:40:05 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:40:05' and `end` < '2025-02-28 20: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-02-28 20:40:18] Production.INFO: count ==5216 [2025-02-28 20:40:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:40:05 - End Time 2025-02-28 20:40:05 [2025-02-28 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578953', 'tblTempUsageDetail_20' ) start [2025-02-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578953', 'tblTempUsageDetail_20' ) end [2025-02-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578953', 'tblTempVendorCDR_20' ) start [2025-02-28 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578953', 'tblTempVendorCDR_20' ) end [2025-02-28 20:40:20] Production.INFO: ProcessCDR(1,14578953,1,1,2) [2025-02-28 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578953', 'tblTempUsageDetail_20' ) start [2025-02-28 20:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578953', 'tblTempUsageDetail_20' ) end [2025-02-28 20:40:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:40:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:40:25] Production.INFO: ==25442== Releasing lock... [2025-02-28 20:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:40:25] Production.INFO: 67 MB #Memory Used# [2025-02-28 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:41:05 [end_date_ymd] => 2025-02-28 20:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:41:05' and `end` < '2025-02-28 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-02-28 20:41:18] Production.INFO: count ==5148 [2025-02-28 20:41:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:41:05 - End Time 2025-02-28 20:41:05 [2025-02-28 20:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578958', 'tblTempUsageDetail_20' ) start [2025-02-28 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578958', 'tblTempUsageDetail_20' ) end [2025-02-28 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578958', 'tblTempVendorCDR_20' ) start [2025-02-28 20:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578958', 'tblTempVendorCDR_20' ) end [2025-02-28 20:41:20] Production.INFO: ProcessCDR(1,14578958,1,1,2) [2025-02-28 20:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:41:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:41:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578958', 'tblTempUsageDetail_20' ) start [2025-02-28 20:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578958', 'tblTempUsageDetail_20' ) end [2025-02-28 20:41:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:41:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:41:25] Production.INFO: ==25540== Releasing lock... [2025-02-28 20:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:41:25] Production.INFO: 66.5 MB #Memory Used# [2025-02-28 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:42:05 [end_date_ymd] => 2025-02-28 20:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:42:05' and `end` < '2025-02-28 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-02-28 20:42:17] Production.INFO: count ==5121 [2025-02-28 20:42:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:42:05 - End Time 2025-02-28 20:42:05 [2025-02-28 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578963', 'tblTempUsageDetail_20' ) start [2025-02-28 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578963', 'tblTempUsageDetail_20' ) end [2025-02-28 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578963', 'tblTempVendorCDR_20' ) start [2025-02-28 20:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578963', 'tblTempVendorCDR_20' ) end [2025-02-28 20:42:20] Production.INFO: ProcessCDR(1,14578963,1,1,2) [2025-02-28 20:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578963', 'tblTempUsageDetail_20' ) start [2025-02-28 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578963', 'tblTempUsageDetail_20' ) end [2025-02-28 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:42:24] Production.INFO: ==25629== Releasing lock... [2025-02-28 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:42:24] Production.INFO: 66.25 MB #Memory Used# [2025-02-28 20:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:43:06 [end_date_ymd] => 2025-02-28 20:43:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:43:06' and `end` < '2025-02-28 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-02-28 20:43:18] Production.INFO: count ==5087 [2025-02-28 20:43:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:43:06 - End Time 2025-02-28 20:43:06 [2025-02-28 20:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578968', 'tblTempUsageDetail_20' ) start [2025-02-28 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578968', 'tblTempUsageDetail_20' ) end [2025-02-28 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578968', 'tblTempVendorCDR_20' ) start [2025-02-28 20:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578968', 'tblTempVendorCDR_20' ) end [2025-02-28 20:43:21] Production.INFO: ProcessCDR(1,14578968,1,1,2) [2025-02-28 20:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578968', 'tblTempUsageDetail_20' ) start [2025-02-28 20:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578968', 'tblTempUsageDetail_20' ) end [2025-02-28 20:43:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:43:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:43:25] Production.INFO: ==25717== Releasing lock... [2025-02-28 20:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:43:25] Production.INFO: 66 MB #Memory Used# [2025-02-28 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:44:05 [end_date_ymd] => 2025-02-28 20:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:44:05' and `end` < '2025-02-28 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-02-28 20:44:18] Production.INFO: count ==5046 [2025-02-28 20:44:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:44:05 - End Time 2025-02-28 20:44:05 [2025-02-28 20:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578973', 'tblTempUsageDetail_20' ) start [2025-02-28 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578973', 'tblTempUsageDetail_20' ) end [2025-02-28 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578973', 'tblTempVendorCDR_20' ) start [2025-02-28 20:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578973', 'tblTempVendorCDR_20' ) end [2025-02-28 20:44:20] Production.INFO: ProcessCDR(1,14578973,1,1,2) [2025-02-28 20:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578973', 'tblTempUsageDetail_20' ) start [2025-02-28 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578973', 'tblTempUsageDetail_20' ) end [2025-02-28 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:44:23] Production.INFO: ==25812== Releasing lock... [2025-02-28 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:44:23] Production.INFO: 65.75 MB #Memory Used# [2025-02-28 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:45:06 [end_date_ymd] => 2025-02-28 20:45:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:45:06' and `end` < '2025-02-28 20: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-02-28 20:45:18] Production.INFO: count ==5001 [2025-02-28 20:45:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:45:06 - End Time 2025-02-28 20:45:06 [2025-02-28 20:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578978', 'tblTempUsageDetail_20' ) start [2025-02-28 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578978', 'tblTempUsageDetail_20' ) end [2025-02-28 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578978', 'tblTempVendorCDR_20' ) start [2025-02-28 20:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578978', 'tblTempVendorCDR_20' ) end [2025-02-28 20:45:20] Production.INFO: ProcessCDR(1,14578978,1,1,2) [2025-02-28 20:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578978', 'tblTempUsageDetail_20' ) start [2025-02-28 20:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578978', 'tblTempUsageDetail_20' ) end [2025-02-28 20:45:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:45:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:45:25] Production.INFO: ==25924== Releasing lock... [2025-02-28 20:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:45:25] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:46:05 [end_date_ymd] => 2025-02-28 20:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:46:05' and `end` < '2025-02-28 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-02-28 20:46:17] Production.INFO: count ==4977 [2025-02-28 20:46:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:46:05 - End Time 2025-02-28 20:46:05 [2025-02-28 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578983', 'tblTempUsageDetail_20' ) start [2025-02-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578983', 'tblTempUsageDetail_20' ) end [2025-02-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578983', 'tblTempVendorCDR_20' ) start [2025-02-28 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578983', 'tblTempVendorCDR_20' ) end [2025-02-28 20:46:19] Production.INFO: ProcessCDR(1,14578983,1,1,2) [2025-02-28 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578983', 'tblTempUsageDetail_20' ) start [2025-02-28 20:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578983', 'tblTempUsageDetail_20' ) end [2025-02-28 20:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:46:24] Production.INFO: ==26027== Releasing lock... [2025-02-28 20:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:46:24] Production.INFO: 65.25 MB #Memory Used# [2025-02-28 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:47:05 [end_date_ymd] => 2025-02-28 20:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:47:05' and `end` < '2025-02-28 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-02-28 20:47:17] Production.INFO: count ==4950 [2025-02-28 20:47:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:47:05 - End Time 2025-02-28 20:47:05 [2025-02-28 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578988', 'tblTempUsageDetail_20' ) start [2025-02-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578988', 'tblTempUsageDetail_20' ) end [2025-02-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578988', 'tblTempVendorCDR_20' ) start [2025-02-28 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578988', 'tblTempVendorCDR_20' ) end [2025-02-28 20:47:19] Production.INFO: ProcessCDR(1,14578988,1,1,2) [2025-02-28 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578988', 'tblTempUsageDetail_20' ) start [2025-02-28 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578988', 'tblTempUsageDetail_20' ) end [2025-02-28 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:47:24] Production.INFO: ==26133== Releasing lock... [2025-02-28 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:47:24] Production.INFO: 65 MB #Memory Used# [2025-02-28 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:48:04 [end_date_ymd] => 2025-02-28 20:48:04 [RateCDR] => 1 ) [2025-02-28 20:48:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:48:04' and `end` < '2025-02-28 20:48:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:48:17] Production.INFO: count ==4919 [2025-02-28 20:48:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:48:04 - End Time 2025-02-28 20:48:04 [2025-02-28 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578991', 'tblTempUsageDetail_20' ) start [2025-02-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578991', 'tblTempUsageDetail_20' ) end [2025-02-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578991', 'tblTempVendorCDR_20' ) start [2025-02-28 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578991', 'tblTempVendorCDR_20' ) end [2025-02-28 20:48:19] Production.INFO: ProcessCDR(1,14578991,1,1,2) [2025-02-28 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578991', 'tblTempUsageDetail_20' ) start [2025-02-28 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578991', 'tblTempUsageDetail_20' ) end [2025-02-28 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:48:24] Production.INFO: ==26225== Releasing lock... [2025-02-28 20:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:48:24] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:49:05 [end_date_ymd] => 2025-02-28 20:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:49:05' and `end` < '2025-02-28 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-02-28 20:49:18] Production.INFO: count ==4920 [2025-02-28 20:49:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:49:05 - End Time 2025-02-28 20:49:05 [2025-02-28 20:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578998', 'tblTempUsageDetail_20' ) start [2025-02-28 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14578998', 'tblTempUsageDetail_20' ) end [2025-02-28 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578998', 'tblTempVendorCDR_20' ) start [2025-02-28 20:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14578998', 'tblTempVendorCDR_20' ) end [2025-02-28 20:49:20] Production.INFO: ProcessCDR(1,14578998,1,1,2) [2025-02-28 20:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14578998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14578998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14578998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14578998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578998', 'tblTempUsageDetail_20' ) start [2025-02-28 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14578998', 'tblTempUsageDetail_20' ) end [2025-02-28 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:49:24] Production.INFO: ==26367== Releasing lock... [2025-02-28 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:49:24] Production.INFO: 64.75 MB #Memory Used# [2025-02-28 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:50:07 [end_date_ymd] => 2025-02-28 20:50:07 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:50:07' and `end` < '2025-02-28 20: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-02-28 20:50:19] Production.INFO: count ==4880 [2025-02-28 20:50:21] Production.ERROR: pbx CDR StartTime 2025-02-28 17:50:07 - End Time 2025-02-28 20:50:07 [2025-02-28 20:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579004', 'tblTempUsageDetail_20' ) start [2025-02-28 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579004', 'tblTempUsageDetail_20' ) end [2025-02-28 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579004', 'tblTempVendorCDR_20' ) start [2025-02-28 20:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579004', 'tblTempVendorCDR_20' ) end [2025-02-28 20:50:21] Production.INFO: ProcessCDR(1,14579004,1,1,2) [2025-02-28 20:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579004', 'tblTempUsageDetail_20' ) start [2025-02-28 20:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579004', 'tblTempUsageDetail_20' ) end [2025-02-28 20:50:26] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:50:26] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:50:26] Production.INFO: ==26473== Releasing lock... [2025-02-28 20:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:50:26] Production.INFO: 64.5 MB #Memory Used# [2025-02-28 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:51:05 [end_date_ymd] => 2025-02-28 20:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:51:05' and `end` < '2025-02-28 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-02-28 20:51:18] Production.INFO: count ==4808 [2025-02-28 20:51:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:51:05 - End Time 2025-02-28 20:51:05 [2025-02-28 20:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579009', 'tblTempUsageDetail_20' ) start [2025-02-28 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579009', 'tblTempUsageDetail_20' ) end [2025-02-28 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579009', 'tblTempVendorCDR_20' ) start [2025-02-28 20:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579009', 'tblTempVendorCDR_20' ) end [2025-02-28 20:51:20] Production.INFO: ProcessCDR(1,14579009,1,1,2) [2025-02-28 20:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579009', 'tblTempUsageDetail_20' ) start [2025-02-28 20:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579009', 'tblTempUsageDetail_20' ) end [2025-02-28 20:51:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:51:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:51:25] Production.INFO: ==26570== Releasing lock... [2025-02-28 20:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:51:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:52:06 [end_date_ymd] => 2025-02-28 20:52:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:52:06' and `end` < '2025-02-28 20: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-02-28 20:52:19] Production.INFO: count ==4817 [2025-02-28 20:52:21] Production.ERROR: pbx CDR StartTime 2025-02-28 17:52:06 - End Time 2025-02-28 20:52:06 [2025-02-28 20:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579014', 'tblTempUsageDetail_20' ) start [2025-02-28 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579014', 'tblTempUsageDetail_20' ) end [2025-02-28 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579014', 'tblTempVendorCDR_20' ) start [2025-02-28 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579014', 'tblTempVendorCDR_20' ) end [2025-02-28 20:52:21] Production.INFO: ProcessCDR(1,14579014,1,1,2) [2025-02-28 20:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579014', 'tblTempUsageDetail_20' ) start [2025-02-28 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579014', 'tblTempUsageDetail_20' ) end [2025-02-28 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:52:24] Production.INFO: ==26673== Releasing lock... [2025-02-28 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:52:24] Production.INFO: 64 MB #Memory Used# [2025-02-28 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:53:05 [end_date_ymd] => 2025-02-28 20:53:05 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:53:05' and `end` < '2025-02-28 20: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-02-28 20:53:18] Production.INFO: count ==4803 [2025-02-28 20:53:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:53:05 - End Time 2025-02-28 20:53:05 [2025-02-28 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579019', 'tblTempUsageDetail_20' ) start [2025-02-28 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579019', 'tblTempUsageDetail_20' ) end [2025-02-28 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579019', 'tblTempVendorCDR_20' ) start [2025-02-28 20:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579019', 'tblTempVendorCDR_20' ) end [2025-02-28 20:53:20] Production.INFO: ProcessCDR(1,14579019,1,1,2) [2025-02-28 20:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579019', 'tblTempUsageDetail_20' ) start [2025-02-28 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579019', 'tblTempUsageDetail_20' ) end [2025-02-28 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:53:24] Production.INFO: ==26779== Releasing lock... [2025-02-28 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:53:24] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:54:06 [end_date_ymd] => 2025-02-28 20:54:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:54:06' and `end` < '2025-02-28 20: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-02-28 20:54:18] Production.INFO: count ==4792 [2025-02-28 20:54:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:54:06 - End Time 2025-02-28 20:54:06 [2025-02-28 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579024', 'tblTempUsageDetail_20' ) start [2025-02-28 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579024', 'tblTempUsageDetail_20' ) end [2025-02-28 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579024', 'tblTempVendorCDR_20' ) start [2025-02-28 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579024', 'tblTempVendorCDR_20' ) end [2025-02-28 20:54:20] Production.INFO: ProcessCDR(1,14579024,1,1,2) [2025-02-28 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579024', 'tblTempUsageDetail_20' ) start [2025-02-28 20:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579024', 'tblTempUsageDetail_20' ) end [2025-02-28 20:54:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:54:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:54:25] Production.INFO: ==26871== Releasing lock... [2025-02-28 20:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:54:25] Production.INFO: 63.75 MB #Memory Used# [2025-02-28 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:55:05 [end_date_ymd] => 2025-02-28 20:55:05 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:55:05' and `end` < '2025-02-28 20: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-02-28 20:55:17] Production.INFO: count ==4757 [2025-02-28 20:55:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:55:05 - End Time 2025-02-28 20:55:05 [2025-02-28 20:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579029', 'tblTempUsageDetail_20' ) start [2025-02-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579029', 'tblTempUsageDetail_20' ) end [2025-02-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579029', 'tblTempVendorCDR_20' ) start [2025-02-28 20:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579029', 'tblTempVendorCDR_20' ) end [2025-02-28 20:55:19] Production.INFO: ProcessCDR(1,14579029,1,1,2) [2025-02-28 20:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579029', 'tblTempUsageDetail_20' ) start [2025-02-28 20:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579029', 'tblTempUsageDetail_20' ) end [2025-02-28 20:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:55:23] Production.INFO: ==26962== Releasing lock... [2025-02-28 20:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:55:23] Production.INFO: 63.5 MB #Memory Used# [2025-02-28 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:56:06 [end_date_ymd] => 2025-02-28 20:56:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:56:06' and `end` < '2025-02-28 20: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-02-28 20:56:18] Production.INFO: count ==4751 [2025-02-28 20:56:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:56:06 - End Time 2025-02-28 20:56:06 [2025-02-28 20:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579034', 'tblTempUsageDetail_20' ) start [2025-02-28 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579034', 'tblTempUsageDetail_20' ) end [2025-02-28 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579034', 'tblTempVendorCDR_20' ) start [2025-02-28 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579034', 'tblTempVendorCDR_20' ) end [2025-02-28 20:56:20] Production.INFO: ProcessCDR(1,14579034,1,1,2) [2025-02-28 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579034', 'tblTempUsageDetail_20' ) start [2025-02-28 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579034', 'tblTempUsageDetail_20' ) end [2025-02-28 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:56:25] Production.INFO: ==27062== Releasing lock... [2025-02-28 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:56:25] Production.INFO: 63.5 MB #Memory Used# [2025-02-28 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:57:05 [end_date_ymd] => 2025-02-28 20:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 17:57:05' and `end` < '2025-02-28 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-02-28 20:57:17] Production.INFO: count ==4716 [2025-02-28 20:57:19] Production.ERROR: pbx CDR StartTime 2025-02-28 17:57:05 - End Time 2025-02-28 20:57:05 [2025-02-28 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579039', 'tblTempUsageDetail_20' ) start [2025-02-28 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579039', 'tblTempUsageDetail_20' ) end [2025-02-28 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579039', 'tblTempVendorCDR_20' ) start [2025-02-28 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579039', 'tblTempVendorCDR_20' ) end [2025-02-28 20:57:19] Production.INFO: ProcessCDR(1,14579039,1,1,2) [2025-02-28 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579039', 'tblTempUsageDetail_20' ) start [2025-02-28 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579039', 'tblTempUsageDetail_20' ) end [2025-02-28 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:57:24] Production.INFO: ==27145== Releasing lock... [2025-02-28 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:57:24] Production.INFO: 63.25 MB #Memory Used# [2025-02-28 20:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:58:06 [end_date_ymd] => 2025-02-28 20:58:06 [RateCDR] => 1 ) [2025-02-28 20: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-02-28 17:58:06' and `end` < '2025-02-28 20: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-02-28 20:58:18] Production.INFO: count ==4680 [2025-02-28 20:58:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:58:06 - End Time 2025-02-28 20:58:06 [2025-02-28 20:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579044', 'tblTempUsageDetail_20' ) start [2025-02-28 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579044', 'tblTempUsageDetail_20' ) end [2025-02-28 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579044', 'tblTempVendorCDR_20' ) start [2025-02-28 20:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579044', 'tblTempVendorCDR_20' ) end [2025-02-28 20:58:20] Production.INFO: ProcessCDR(1,14579044,1,1,2) [2025-02-28 20:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579044', 'tblTempUsageDetail_20' ) start [2025-02-28 20:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579044', 'tblTempUsageDetail_20' ) end [2025-02-28 20:58:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:58:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:58:24] Production.INFO: ==27256== Releasing lock... [2025-02-28 20:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:58:24] Production.INFO: 63 MB #Memory Used# [2025-02-28 20:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 17:59:05 [end_date_ymd] => 2025-02-28 20:59:05 [RateCDR] => 1 ) [2025-02-28 20:59:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 17:59:05' and `end` < '2025-02-28 20:59:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 20:59:18] Production.INFO: count ==4645 [2025-02-28 20:59:20] Production.ERROR: pbx CDR StartTime 2025-02-28 17:59:05 - End Time 2025-02-28 20:59:05 [2025-02-28 20:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579049', 'tblTempUsageDetail_20' ) start [2025-02-28 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579049', 'tblTempUsageDetail_20' ) end [2025-02-28 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579049', 'tblTempVendorCDR_20' ) start [2025-02-28 20:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579049', 'tblTempVendorCDR_20' ) end [2025-02-28 20:59:20] Production.INFO: ProcessCDR(1,14579049,1,1,2) [2025-02-28 20:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579049', 'tblTempUsageDetail_20' ) start [2025-02-28 20:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579049', 'tblTempUsageDetail_20' ) end [2025-02-28 20:59:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 20:59:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 20:59:25] Production.INFO: ==27363== Releasing lock... [2025-02-28 20:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 20:59:25] Production.INFO: 62.75 MB #Memory Used# [2025-02-28 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:00:06 [end_date_ymd] => 2025-02-28 21:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:00:06' and `end` < '2025-02-28 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-02-28 21:00:18] Production.INFO: count ==4617 [2025-02-28 21:00:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:00:06 - End Time 2025-02-28 21:00:06 [2025-02-28 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579054', 'tblTempUsageDetail_20' ) start [2025-02-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579054', 'tblTempUsageDetail_20' ) end [2025-02-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579054', 'tblTempVendorCDR_20' ) start [2025-02-28 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579054', 'tblTempVendorCDR_20' ) end [2025-02-28 21:00:20] Production.INFO: ProcessCDR(1,14579054,1,1,2) [2025-02-28 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579054', 'tblTempUsageDetail_20' ) start [2025-02-28 21:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579054', 'tblTempUsageDetail_20' ) end [2025-02-28 21:00:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:00:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:00:25] Production.INFO: ==27451== Releasing lock... [2025-02-28 21:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:00:25] Production.INFO: 62.5 MB #Memory Used# [2025-02-28 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:01:05 [end_date_ymd] => 2025-02-28 21:01:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:01:05' and `end` < '2025-02-28 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-02-28 21:01:17] Production.INFO: count ==4559 [2025-02-28 21:01:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:01:05 - End Time 2025-02-28 21:01:05 [2025-02-28 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579060', 'tblTempUsageDetail_20' ) start [2025-02-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579060', 'tblTempUsageDetail_20' ) end [2025-02-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579060', 'tblTempVendorCDR_20' ) start [2025-02-28 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579060', 'tblTempVendorCDR_20' ) end [2025-02-28 21:01:19] Production.INFO: ProcessCDR(1,14579060,1,1,2) [2025-02-28 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579060', 'tblTempUsageDetail_20' ) start [2025-02-28 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579060', 'tblTempUsageDetail_20' ) end [2025-02-28 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:01:22] Production.INFO: ==27568== Releasing lock... [2025-02-28 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:01:22] Production.INFO: 62 MB #Memory Used# [2025-02-28 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:02:05 [end_date_ymd] => 2025-02-28 21:02:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:02:05' and `end` < '2025-02-28 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:02:17] Production.INFO: count ==4545 [2025-02-28 21:02:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:02:05 - End Time 2025-02-28 21:02:05 [2025-02-28 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579065', 'tblTempUsageDetail_20' ) start [2025-02-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579065', 'tblTempUsageDetail_20' ) end [2025-02-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579065', 'tblTempVendorCDR_20' ) start [2025-02-28 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579065', 'tblTempVendorCDR_20' ) end [2025-02-28 21:02:19] Production.INFO: ProcessCDR(1,14579065,1,1,2) [2025-02-28 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579065', 'tblTempUsageDetail_20' ) start [2025-02-28 21:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579065', 'tblTempUsageDetail_20' ) end [2025-02-28 21:02:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:02:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:02:23] Production.INFO: ==27659== Releasing lock... [2025-02-28 21:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:02:23] Production.INFO: 62 MB #Memory Used# [2025-02-28 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:03:05 [end_date_ymd] => 2025-02-28 21:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:03:05' and `end` < '2025-02-28 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-02-28 21:03:18] Production.INFO: count ==4509 [2025-02-28 21:03:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:03:05 - End Time 2025-02-28 21:03:05 [2025-02-28 21:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579070', 'tblTempUsageDetail_20' ) start [2025-02-28 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579070', 'tblTempUsageDetail_20' ) end [2025-02-28 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579070', 'tblTempVendorCDR_20' ) start [2025-02-28 21:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579070', 'tblTempVendorCDR_20' ) end [2025-02-28 21:03:20] Production.INFO: ProcessCDR(1,14579070,1,1,2) [2025-02-28 21:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579070', 'tblTempUsageDetail_20' ) start [2025-02-28 21:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579070', 'tblTempUsageDetail_20' ) end [2025-02-28 21:03:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:03:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:03:25] Production.INFO: ==27741== Releasing lock... [2025-02-28 21:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:03:25] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:04:05 [end_date_ymd] => 2025-02-28 21:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:04:05' and `end` < '2025-02-28 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-02-28 21:04:18] Production.INFO: count ==4482 [2025-02-28 21:04:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:04:05 - End Time 2025-02-28 21:04:05 [2025-02-28 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579075', 'tblTempUsageDetail_20' ) start [2025-02-28 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579075', 'tblTempUsageDetail_20' ) end [2025-02-28 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579075', 'tblTempVendorCDR_20' ) start [2025-02-28 21:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579075', 'tblTempVendorCDR_20' ) end [2025-02-28 21:04:20] Production.INFO: ProcessCDR(1,14579075,1,1,2) [2025-02-28 21:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579075', 'tblTempUsageDetail_20' ) start [2025-02-28 21:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579075', 'tblTempUsageDetail_20' ) end [2025-02-28 21:04:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:04:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:04:24] Production.INFO: ==27881== Releasing lock... [2025-02-28 21:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:04:24] Production.INFO: 61.5 MB #Memory Used# [2025-02-28 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:05:05 [end_date_ymd] => 2025-02-28 21:05:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:05:05' and `end` < '2025-02-28 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-02-28 21:05:18] Production.INFO: count ==4452 [2025-02-28 21:05:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:05:05 - End Time 2025-02-28 21:05:05 [2025-02-28 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579080', 'tblTempUsageDetail_20' ) start [2025-02-28 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579080', 'tblTempUsageDetail_20' ) end [2025-02-28 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579080', 'tblTempVendorCDR_20' ) start [2025-02-28 21:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579080', 'tblTempVendorCDR_20' ) end [2025-02-28 21:05:20] Production.INFO: ProcessCDR(1,14579080,1,1,2) [2025-02-28 21:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579080', 'tblTempUsageDetail_20' ) start [2025-02-28 21:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579080', 'tblTempUsageDetail_20' ) end [2025-02-28 21:05:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:05:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:05:23] Production.INFO: ==27970== Releasing lock... [2025-02-28 21:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:05:23] Production.INFO: 61.25 MB #Memory Used# [2025-02-28 21:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:06:06 [end_date_ymd] => 2025-02-28 21:06:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:06:06' and `end` < '2025-02-28 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-02-28 21:06:18] Production.INFO: count ==4436 [2025-02-28 21:06:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:06:06 - End Time 2025-02-28 21:06:06 [2025-02-28 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579085', 'tblTempUsageDetail_20' ) start [2025-02-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579085', 'tblTempUsageDetail_20' ) end [2025-02-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579085', 'tblTempVendorCDR_20' ) start [2025-02-28 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579085', 'tblTempVendorCDR_20' ) end [2025-02-28 21:06:20] Production.INFO: ProcessCDR(1,14579085,1,1,2) [2025-02-28 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579085', 'tblTempUsageDetail_20' ) start [2025-02-28 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579085', 'tblTempUsageDetail_20' ) end [2025-02-28 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:06:23] Production.INFO: ==28063== Releasing lock... [2025-02-28 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:06:23] Production.INFO: 61 MB #Memory Used# [2025-02-28 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:07:05 [end_date_ymd] => 2025-02-28 21:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:07:05' and `end` < '2025-02-28 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-02-28 21:07:17] Production.INFO: count ==4400 [2025-02-28 21:07:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:07:05 - End Time 2025-02-28 21:07:05 [2025-02-28 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579090', 'tblTempUsageDetail_20' ) start [2025-02-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579090', 'tblTempUsageDetail_20' ) end [2025-02-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579090', 'tblTempVendorCDR_20' ) start [2025-02-28 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579090', 'tblTempVendorCDR_20' ) end [2025-02-28 21:07:19] Production.INFO: ProcessCDR(1,14579090,1,1,2) [2025-02-28 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579090', 'tblTempUsageDetail_20' ) start [2025-02-28 21:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579090', 'tblTempUsageDetail_20' ) end [2025-02-28 21:07:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:07:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:07:22] Production.INFO: ==28149== Releasing lock... [2025-02-28 21:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:07:22] Production.INFO: 60.75 MB #Memory Used# [2025-02-28 21:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:08:06 [end_date_ymd] => 2025-02-28 21:08:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:08:06' and `end` < '2025-02-28 21: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-02-28 21:08:18] Production.INFO: count ==4371 [2025-02-28 21:08:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:08:06 - End Time 2025-02-28 21:08:06 [2025-02-28 21:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579095', 'tblTempUsageDetail_20' ) start [2025-02-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579095', 'tblTempUsageDetail_20' ) end [2025-02-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579095', 'tblTempVendorCDR_20' ) start [2025-02-28 21:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579095', 'tblTempVendorCDR_20' ) end [2025-02-28 21:08:20] Production.INFO: ProcessCDR(1,14579095,1,1,2) [2025-02-28 21:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579095', 'tblTempUsageDetail_20' ) start [2025-02-28 21:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579095', 'tblTempUsageDetail_20' ) end [2025-02-28 21:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:08:25] Production.INFO: ==28233== Releasing lock... [2025-02-28 21:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:08:25] Production.INFO: 60.5 MB #Memory Used# [2025-02-28 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:09:05 [end_date_ymd] => 2025-02-28 21:09:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:09:05' and `end` < '2025-02-28 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-02-28 21:09:17] Production.INFO: count ==4348 [2025-02-28 21:09:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:09:05 - End Time 2025-02-28 21:09:05 [2025-02-28 21:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579100', 'tblTempUsageDetail_20' ) start [2025-02-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579100', 'tblTempUsageDetail_20' ) end [2025-02-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579100', 'tblTempVendorCDR_20' ) start [2025-02-28 21:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579100', 'tblTempVendorCDR_20' ) end [2025-02-28 21:09:19] Production.INFO: ProcessCDR(1,14579100,1,1,2) [2025-02-28 21:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579100', 'tblTempUsageDetail_20' ) start [2025-02-28 21:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579100', 'tblTempUsageDetail_20' ) end [2025-02-28 21:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:09:24] Production.INFO: ==28313== Releasing lock... [2025-02-28 21:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:09:24] Production.INFO: 60.5 MB #Memory Used# [2025-02-28 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:10:06 [end_date_ymd] => 2025-02-28 21:10:06 [RateCDR] => 1 ) [2025-02-28 21:10:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:10:06' and `end` < '2025-02-28 21:10:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:10:18] Production.INFO: count ==4327 [2025-02-28 21:10:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:10:06 - End Time 2025-02-28 21:10:06 [2025-02-28 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579106', 'tblTempUsageDetail_20' ) start [2025-02-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579106', 'tblTempUsageDetail_20' ) end [2025-02-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579106', 'tblTempVendorCDR_20' ) start [2025-02-28 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579106', 'tblTempVendorCDR_20' ) end [2025-02-28 21:10:20] Production.INFO: ProcessCDR(1,14579106,1,1,2) [2025-02-28 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579106', 'tblTempUsageDetail_20' ) start [2025-02-28 21:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579106', 'tblTempUsageDetail_20' ) end [2025-02-28 21:10:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:10:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:10:25] Production.INFO: ==28393== Releasing lock... [2025-02-28 21:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:10:25] Production.INFO: 60.25 MB #Memory Used# [2025-02-28 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:11:05 [end_date_ymd] => 2025-02-28 21:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:11:05' and `end` < '2025-02-28 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-02-28 21:11:18] Production.INFO: count ==4245 [2025-02-28 21:11:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:11:05 - End Time 2025-02-28 21:11:05 [2025-02-28 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579111', 'tblTempUsageDetail_20' ) start [2025-02-28 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579111', 'tblTempUsageDetail_20' ) end [2025-02-28 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579111', 'tblTempVendorCDR_20' ) start [2025-02-28 21:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579111', 'tblTempVendorCDR_20' ) end [2025-02-28 21:11:20] Production.INFO: ProcessCDR(1,14579111,1,1,2) [2025-02-28 21:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579111', 'tblTempUsageDetail_20' ) start [2025-02-28 21:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579111', 'tblTempUsageDetail_20' ) end [2025-02-28 21:11:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:11:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:11:24] Production.INFO: ==28465== Releasing lock... [2025-02-28 21:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:11:24] Production.INFO: 59.75 MB #Memory Used# [2025-02-28 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:12:05 [end_date_ymd] => 2025-02-28 21:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:12:05' and `end` < '2025-02-28 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-02-28 21:12:18] Production.INFO: count ==4210 [2025-02-28 21:12:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:12:05 - End Time 2025-02-28 21:12:05 [2025-02-28 21:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579116', 'tblTempUsageDetail_20' ) start [2025-02-28 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579116', 'tblTempUsageDetail_20' ) end [2025-02-28 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579116', 'tblTempVendorCDR_20' ) start [2025-02-28 21:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579116', 'tblTempVendorCDR_20' ) end [2025-02-28 21:12:20] Production.INFO: ProcessCDR(1,14579116,1,1,2) [2025-02-28 21:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579116', 'tblTempUsageDetail_20' ) start [2025-02-28 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579116', 'tblTempUsageDetail_20' ) end [2025-02-28 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:12:23] Production.INFO: ==28539== Releasing lock... [2025-02-28 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:12:23] Production.INFO: 59.5 MB #Memory Used# [2025-02-28 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:13:05 [end_date_ymd] => 2025-02-28 21:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:13:05' and `end` < '2025-02-28 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-02-28 21:13:18] Production.INFO: count ==4224 [2025-02-28 21:13:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:13:05 - End Time 2025-02-28 21:13:05 [2025-02-28 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579121', 'tblTempUsageDetail_20' ) start [2025-02-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579121', 'tblTempUsageDetail_20' ) end [2025-02-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579121', 'tblTempVendorCDR_20' ) start [2025-02-28 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579121', 'tblTempVendorCDR_20' ) end [2025-02-28 21:13:19] Production.INFO: ProcessCDR(1,14579121,1,1,2) [2025-02-28 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579121', 'tblTempUsageDetail_20' ) start [2025-02-28 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579121', 'tblTempUsageDetail_20' ) end [2025-02-28 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:13:23] Production.INFO: ==28616== Releasing lock... [2025-02-28 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:13:23] Production.INFO: 59.5 MB #Memory Used# [2025-02-28 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:14:05 [end_date_ymd] => 2025-02-28 21:14:05 [RateCDR] => 1 ) [2025-02-28 21:14:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:14:05' and `end` < '2025-02-28 21:14:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:14:18] Production.INFO: count ==4192 [2025-02-28 21:14:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:14:05 - End Time 2025-02-28 21:14:05 [2025-02-28 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579126', 'tblTempUsageDetail_20' ) start [2025-02-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579126', 'tblTempUsageDetail_20' ) end [2025-02-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579126', 'tblTempVendorCDR_20' ) start [2025-02-28 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579126', 'tblTempVendorCDR_20' ) end [2025-02-28 21:14:19] Production.INFO: ProcessCDR(1,14579126,1,1,2) [2025-02-28 21:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579126', 'tblTempUsageDetail_20' ) start [2025-02-28 21:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579126', 'tblTempUsageDetail_20' ) end [2025-02-28 21:14:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:14:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:14:24] Production.INFO: ==28690== Releasing lock... [2025-02-28 21:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:14:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-28 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:15:05 [end_date_ymd] => 2025-02-28 21:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:15:05' and `end` < '2025-02-28 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-02-28 21:15:18] Production.INFO: count ==4182 [2025-02-28 21:15:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:15:05 - End Time 2025-02-28 21:15:05 [2025-02-28 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579131', 'tblTempUsageDetail_20' ) start [2025-02-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579131', 'tblTempUsageDetail_20' ) end [2025-02-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579131', 'tblTempVendorCDR_20' ) start [2025-02-28 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579131', 'tblTempVendorCDR_20' ) end [2025-02-28 21:15:19] Production.INFO: ProcessCDR(1,14579131,1,1,2) [2025-02-28 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579131', 'tblTempUsageDetail_20' ) start [2025-02-28 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579131', 'tblTempUsageDetail_20' ) end [2025-02-28 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:15:24] Production.INFO: ==28773== Releasing lock... [2025-02-28 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:15:24] Production.INFO: 59.25 MB #Memory Used# [2025-02-28 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:16:06 [end_date_ymd] => 2025-02-28 21:16:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:16:06' and `end` < '2025-02-28 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-02-28 21:16:18] Production.INFO: count ==4149 [2025-02-28 21:16:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:16:06 - End Time 2025-02-28 21:16:06 [2025-02-28 21:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579136', 'tblTempUsageDetail_20' ) start [2025-02-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579136', 'tblTempUsageDetail_20' ) end [2025-02-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579136', 'tblTempVendorCDR_20' ) start [2025-02-28 21:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579136', 'tblTempVendorCDR_20' ) end [2025-02-28 21:16:20] Production.INFO: ProcessCDR(1,14579136,1,1,2) [2025-02-28 21:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579136', 'tblTempUsageDetail_20' ) start [2025-02-28 21:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579136', 'tblTempUsageDetail_20' ) end [2025-02-28 21:16:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:16:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:16:25] Production.INFO: ==28846== Releasing lock... [2025-02-28 21:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:16:25] Production.INFO: 59 MB #Memory Used# [2025-02-28 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:17:05 [end_date_ymd] => 2025-02-28 21:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:17:05' and `end` < '2025-02-28 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-02-28 21:17:18] Production.INFO: count ==4121 [2025-02-28 21:17:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:17:05 - End Time 2025-02-28 21:17:05 [2025-02-28 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579141', 'tblTempUsageDetail_20' ) start [2025-02-28 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579141', 'tblTempUsageDetail_20' ) end [2025-02-28 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579141', 'tblTempVendorCDR_20' ) start [2025-02-28 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579141', 'tblTempVendorCDR_20' ) end [2025-02-28 21:17:19] Production.INFO: ProcessCDR(1,14579141,1,1,2) [2025-02-28 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579141', 'tblTempUsageDetail_20' ) start [2025-02-28 21:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579141', 'tblTempUsageDetail_20' ) end [2025-02-28 21:17:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:17:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:17:23] Production.INFO: ==28926== Releasing lock... [2025-02-28 21:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:17:23] Production.INFO: 58.75 MB #Memory Used# [2025-02-28 21:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:18:06 [end_date_ymd] => 2025-02-28 21:18:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:18:06' and `end` < '2025-02-28 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-02-28 21:18:19] Production.INFO: count ==4091 [2025-02-28 21:18:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:18:06 - End Time 2025-02-28 21:18:06 [2025-02-28 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579146', 'tblTempUsageDetail_20' ) start [2025-02-28 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579146', 'tblTempUsageDetail_20' ) end [2025-02-28 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579146', 'tblTempVendorCDR_20' ) start [2025-02-28 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579146', 'tblTempVendorCDR_20' ) end [2025-02-28 21:18:20] Production.INFO: ProcessCDR(1,14579146,1,1,2) [2025-02-28 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579146', 'tblTempUsageDetail_20' ) start [2025-02-28 21:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579146', 'tblTempUsageDetail_20' ) end [2025-02-28 21:18:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:18:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:18:25] Production.INFO: ==29001== Releasing lock... [2025-02-28 21:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:18:25] Production.INFO: 58.5 MB #Memory Used# [2025-02-28 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:19:05 [end_date_ymd] => 2025-02-28 21:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:19:05' and `end` < '2025-02-28 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-02-28 21:19:17] Production.INFO: count ==4062 [2025-02-28 21:19:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:19:05 - End Time 2025-02-28 21:19:05 [2025-02-28 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579151', 'tblTempUsageDetail_20' ) start [2025-02-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579151', 'tblTempUsageDetail_20' ) end [2025-02-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579151', 'tblTempVendorCDR_20' ) start [2025-02-28 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579151', 'tblTempVendorCDR_20' ) end [2025-02-28 21:19:19] Production.INFO: ProcessCDR(1,14579151,1,1,2) [2025-02-28 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579151', 'tblTempUsageDetail_20' ) start [2025-02-28 21:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579151', 'tblTempUsageDetail_20' ) end [2025-02-28 21:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:19:22] Production.INFO: ==29085== Releasing lock... [2025-02-28 21:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:19:22] Production.INFO: 58.25 MB #Memory Used# [2025-02-28 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:20:06 [end_date_ymd] => 2025-02-28 21:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:20:06' and `end` < '2025-02-28 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-02-28 21:20:19] Production.INFO: count ==4036 [2025-02-28 21:20:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:20:06 - End Time 2025-02-28 21:20:06 [2025-02-28 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579157', 'tblTempUsageDetail_20' ) start [2025-02-28 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579157', 'tblTempUsageDetail_20' ) end [2025-02-28 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579157', 'tblTempVendorCDR_20' ) start [2025-02-28 21:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579157', 'tblTempVendorCDR_20' ) end [2025-02-28 21:20:21] Production.INFO: ProcessCDR(1,14579157,1,1,2) [2025-02-28 21:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579157', 'tblTempUsageDetail_20' ) start [2025-02-28 21:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579157', 'tblTempUsageDetail_20' ) end [2025-02-28 21:20:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:20:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:20:24] Production.INFO: ==29201== Releasing lock... [2025-02-28 21:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:20:24] Production.INFO: 58 MB #Memory Used# [2025-02-28 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:21:05 [end_date_ymd] => 2025-02-28 21:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:21:05' and `end` < '2025-02-28 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-02-28 21:21:17] Production.INFO: count ==3990 [2025-02-28 21:21:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:21:05 - End Time 2025-02-28 21:21:05 [2025-02-28 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579162', 'tblTempUsageDetail_20' ) start [2025-02-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579162', 'tblTempUsageDetail_20' ) end [2025-02-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579162', 'tblTempVendorCDR_20' ) start [2025-02-28 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579162', 'tblTempVendorCDR_20' ) end [2025-02-28 21:21:19] Production.INFO: ProcessCDR(1,14579162,1,1,2) [2025-02-28 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579162', 'tblTempUsageDetail_20' ) start [2025-02-28 21:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579162', 'tblTempUsageDetail_20' ) end [2025-02-28 21:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:21:22] Production.INFO: ==29275== Releasing lock... [2025-02-28 21:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:21:22] Production.INFO: 57.75 MB #Memory Used# [2025-02-28 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:22:05 [end_date_ymd] => 2025-02-28 21:22:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:22:05' and `end` < '2025-02-28 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-02-28 21:22:18] Production.INFO: count ==3947 [2025-02-28 21:22:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:22:05 - End Time 2025-02-28 21:22:05 [2025-02-28 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579167', 'tblTempUsageDetail_20' ) start [2025-02-28 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579167', 'tblTempUsageDetail_20' ) end [2025-02-28 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579167', 'tblTempVendorCDR_20' ) start [2025-02-28 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579167', 'tblTempVendorCDR_20' ) end [2025-02-28 21:22:19] Production.INFO: ProcessCDR(1,14579167,1,1,2) [2025-02-28 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579167', 'tblTempUsageDetail_20' ) start [2025-02-28 21:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579167', 'tblTempUsageDetail_20' ) end [2025-02-28 21:22:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:22:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:22:24] Production.INFO: ==29350== Releasing lock... [2025-02-28 21:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:22:24] Production.INFO: 57.5 MB #Memory Used# [2025-02-28 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:23:05 [end_date_ymd] => 2025-02-28 21:23:05 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:23:05' and `end` < '2025-02-28 21: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-02-28 21:23:17] Production.INFO: count ==3907 [2025-02-28 21:23:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:23:05 - End Time 2025-02-28 21:23:05 [2025-02-28 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579172', 'tblTempUsageDetail_20' ) start [2025-02-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579172', 'tblTempUsageDetail_20' ) end [2025-02-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579172', 'tblTempVendorCDR_20' ) start [2025-02-28 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579172', 'tblTempVendorCDR_20' ) end [2025-02-28 21:23:19] Production.INFO: ProcessCDR(1,14579172,1,1,2) [2025-02-28 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579172', 'tblTempUsageDetail_20' ) start [2025-02-28 21:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579172', 'tblTempUsageDetail_20' ) end [2025-02-28 21:23:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:23:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:23:22] Production.INFO: ==29441== Releasing lock... [2025-02-28 21:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:23:22] Production.INFO: 57 MB #Memory Used# [2025-02-28 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:24:05 [end_date_ymd] => 2025-02-28 21:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:24:05' and `end` < '2025-02-28 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-02-28 21:24:17] Production.INFO: count ==3871 [2025-02-28 21:24:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:24:05 - End Time 2025-02-28 21:24:05 [2025-02-28 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579177', 'tblTempUsageDetail_20' ) start [2025-02-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579177', 'tblTempUsageDetail_20' ) end [2025-02-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579177', 'tblTempVendorCDR_20' ) start [2025-02-28 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579177', 'tblTempVendorCDR_20' ) end [2025-02-28 21:24:19] Production.INFO: ProcessCDR(1,14579177,1,1,2) [2025-02-28 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579177', 'tblTempUsageDetail_20' ) start [2025-02-28 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579177', 'tblTempUsageDetail_20' ) end [2025-02-28 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:24:22] Production.INFO: ==29515== Releasing lock... [2025-02-28 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:24:22] Production.INFO: 56.75 MB #Memory Used# [2025-02-28 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:25:06 [end_date_ymd] => 2025-02-28 21:25:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:25:06' and `end` < '2025-02-28 21: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-02-28 21:25:19] Production.INFO: count ==3836 [2025-02-28 21:25:20] Production.ERROR: pbx CDR StartTime 2025-02-28 18:25:06 - End Time 2025-02-28 21:25:06 [2025-02-28 21:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579182', 'tblTempUsageDetail_20' ) start [2025-02-28 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579182', 'tblTempUsageDetail_20' ) end [2025-02-28 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579182', 'tblTempVendorCDR_20' ) start [2025-02-28 21:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579182', 'tblTempVendorCDR_20' ) end [2025-02-28 21:25:21] Production.INFO: ProcessCDR(1,14579182,1,1,2) [2025-02-28 21:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579182', 'tblTempUsageDetail_20' ) start [2025-02-28 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579182', 'tblTempUsageDetail_20' ) end [2025-02-28 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:25:24] Production.INFO: ==29591== Releasing lock... [2025-02-28 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:25:24] Production.INFO: 56.5 MB #Memory Used# [2025-02-28 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:26:05 [end_date_ymd] => 2025-02-28 21:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:26:05' and `end` < '2025-02-28 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-02-28 21:26:17] Production.INFO: count ==3776 [2025-02-28 21:26:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:26:05 - End Time 2025-02-28 21:26:05 [2025-02-28 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579187', 'tblTempUsageDetail_20' ) start [2025-02-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579187', 'tblTempUsageDetail_20' ) end [2025-02-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579187', 'tblTempVendorCDR_20' ) start [2025-02-28 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579187', 'tblTempVendorCDR_20' ) end [2025-02-28 21:26:19] Production.INFO: ProcessCDR(1,14579187,1,1,2) [2025-02-28 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579187', 'tblTempUsageDetail_20' ) start [2025-02-28 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579187', 'tblTempUsageDetail_20' ) end [2025-02-28 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:26:22] Production.INFO: ==29676== Releasing lock... [2025-02-28 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:26:22] Production.INFO: 56.25 MB #Memory Used# [2025-02-28 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:27:06 [end_date_ymd] => 2025-02-28 21:27:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:27:06' and `end` < '2025-02-28 21: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-02-28 21:27:18] Production.INFO: count ==3729 [2025-02-28 21:27:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:27:06 - End Time 2025-02-28 21:27:06 [2025-02-28 21:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579192', 'tblTempUsageDetail_20' ) start [2025-02-28 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579192', 'tblTempUsageDetail_20' ) end [2025-02-28 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579192', 'tblTempVendorCDR_20' ) start [2025-02-28 21:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579192', 'tblTempVendorCDR_20' ) end [2025-02-28 21:27:20] Production.INFO: ProcessCDR(1,14579192,1,1,2) [2025-02-28 21:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579192', 'tblTempUsageDetail_20' ) start [2025-02-28 21:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579192', 'tblTempUsageDetail_20' ) end [2025-02-28 21:27:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:27:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:27:23] Production.INFO: ==29768== Releasing lock... [2025-02-28 21:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:27:23] Production.INFO: 56 MB #Memory Used# [2025-02-28 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:28:06 [end_date_ymd] => 2025-02-28 21:28:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:28:06' and `end` < '2025-02-28 21: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-02-28 21:28:18] Production.INFO: count ==3691 [2025-02-28 21:28:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:28:06 - End Time 2025-02-28 21:28:06 [2025-02-28 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579197', 'tblTempUsageDetail_20' ) start [2025-02-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579197', 'tblTempUsageDetail_20' ) end [2025-02-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579197', 'tblTempVendorCDR_20' ) start [2025-02-28 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579197', 'tblTempVendorCDR_20' ) end [2025-02-28 21:28:19] Production.INFO: ProcessCDR(1,14579197,1,1,2) [2025-02-28 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579197', 'tblTempUsageDetail_20' ) start [2025-02-28 21:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579197', 'tblTempUsageDetail_20' ) end [2025-02-28 21:28:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:28:23] Production.INFO: ==29837== Releasing lock... [2025-02-28 21:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:28:23] Production.INFO: 55.75 MB #Memory Used# [2025-02-28 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:29:06 [end_date_ymd] => 2025-02-28 21:29:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:29:06' and `end` < '2025-02-28 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-02-28 21:29:18] Production.INFO: count ==3651 [2025-02-28 21:29:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:29:06 - End Time 2025-02-28 21:29:06 [2025-02-28 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579202', 'tblTempUsageDetail_20' ) start [2025-02-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579202', 'tblTempUsageDetail_20' ) end [2025-02-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579202', 'tblTempVendorCDR_20' ) start [2025-02-28 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579202', 'tblTempVendorCDR_20' ) end [2025-02-28 21:29:19] Production.INFO: ProcessCDR(1,14579202,1,1,2) [2025-02-28 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579202', 'tblTempUsageDetail_20' ) start [2025-02-28 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579202', 'tblTempUsageDetail_20' ) end [2025-02-28 21:29:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:29:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:29:24] Production.INFO: ==29910== Releasing lock... [2025-02-28 21:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:29:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-28 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:30:05 [end_date_ymd] => 2025-02-28 21:30:05 [RateCDR] => 1 ) [2025-02-28 21:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:30:05' and `end` < '2025-02-28 21:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:30:18] Production.INFO: count ==3615 [2025-02-28 21:30:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:30:05 - End Time 2025-02-28 21:30:05 [2025-02-28 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579208', 'tblTempUsageDetail_20' ) start [2025-02-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579208', 'tblTempUsageDetail_20' ) end [2025-02-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579208', 'tblTempVendorCDR_20' ) start [2025-02-28 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579208', 'tblTempVendorCDR_20' ) end [2025-02-28 21:30:19] Production.INFO: ProcessCDR(1,14579208,1,1,2) [2025-02-28 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579208', 'tblTempUsageDetail_20' ) start [2025-02-28 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579208', 'tblTempUsageDetail_20' ) end [2025-02-28 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:30:24] Production.INFO: ==29989== Releasing lock... [2025-02-28 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:30:24] Production.INFO: 55.25 MB #Memory Used# [2025-02-28 21:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:31:06 [end_date_ymd] => 2025-02-28 21:31:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:31:06' and `end` < '2025-02-28 21: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-02-28 21:31:18] Production.INFO: count ==3601 [2025-02-28 21:31:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:31:06 - End Time 2025-02-28 21:31:06 [2025-02-28 21:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579213', 'tblTempUsageDetail_20' ) start [2025-02-28 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579213', 'tblTempUsageDetail_20' ) end [2025-02-28 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579213', 'tblTempVendorCDR_20' ) start [2025-02-28 21:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579213', 'tblTempVendorCDR_20' ) end [2025-02-28 21:31:20] Production.INFO: ProcessCDR(1,14579213,1,1,2) [2025-02-28 21:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579213', 'tblTempUsageDetail_20' ) start [2025-02-28 21:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579213', 'tblTempUsageDetail_20' ) end [2025-02-28 21:31:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:31:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:31:23] Production.INFO: ==30085== Releasing lock... [2025-02-28 21:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:31:23] Production.INFO: 54.75 MB #Memory Used# [2025-02-28 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:32:05 [end_date_ymd] => 2025-02-28 21:32:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:32:05' and `end` < '2025-02-28 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-02-28 21:32:18] Production.INFO: count ==3569 [2025-02-28 21:32:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:32:05 - End Time 2025-02-28 21:32:05 [2025-02-28 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579218', 'tblTempUsageDetail_20' ) start [2025-02-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579218', 'tblTempUsageDetail_20' ) end [2025-02-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579218', 'tblTempVendorCDR_20' ) start [2025-02-28 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579218', 'tblTempVendorCDR_20' ) end [2025-02-28 21:32:19] Production.INFO: ProcessCDR(1,14579218,1,1,2) [2025-02-28 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579218', 'tblTempUsageDetail_20' ) start [2025-02-28 21:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579218', 'tblTempUsageDetail_20' ) end [2025-02-28 21:32:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:32:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:32:23] Production.INFO: ==30178== Releasing lock... [2025-02-28 21:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:32:23] Production.INFO: 54.5 MB #Memory Used# [2025-02-28 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:33:05 [end_date_ymd] => 2025-02-28 21:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:33:05' and `end` < '2025-02-28 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-02-28 21:33:18] Production.INFO: count ==3557 [2025-02-28 21:33:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:33:05 - End Time 2025-02-28 21:33:05 [2025-02-28 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579223', 'tblTempUsageDetail_20' ) start [2025-02-28 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579223', 'tblTempUsageDetail_20' ) end [2025-02-28 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579223', 'tblTempVendorCDR_20' ) start [2025-02-28 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579223', 'tblTempVendorCDR_20' ) end [2025-02-28 21:33:19] Production.INFO: ProcessCDR(1,14579223,1,1,2) [2025-02-28 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579223', 'tblTempUsageDetail_20' ) start [2025-02-28 21:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579223', 'tblTempUsageDetail_20' ) end [2025-02-28 21:33:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:33:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:33:24] Production.INFO: ==30251== Releasing lock... [2025-02-28 21:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:33:24] Production.INFO: 54.75 MB #Memory Used# [2025-02-28 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:34:05 [end_date_ymd] => 2025-02-28 21:34:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:34:05' and `end` < '2025-02-28 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-02-28 21:34:17] Production.INFO: count ==3547 [2025-02-28 21:34:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:34:05 - End Time 2025-02-28 21:34:05 [2025-02-28 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579228', 'tblTempUsageDetail_20' ) start [2025-02-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579228', 'tblTempUsageDetail_20' ) end [2025-02-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579228', 'tblTempVendorCDR_20' ) start [2025-02-28 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579228', 'tblTempVendorCDR_20' ) end [2025-02-28 21:34:19] Production.INFO: ProcessCDR(1,14579228,1,1,2) [2025-02-28 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579228', 'tblTempUsageDetail_20' ) start [2025-02-28 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579228', 'tblTempUsageDetail_20' ) end [2025-02-28 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:34:22] Production.INFO: ==30322== Releasing lock... [2025-02-28 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:34:22] Production.INFO: 54.5 MB #Memory Used# [2025-02-28 21:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:35:06 [end_date_ymd] => 2025-02-28 21:35:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:35:06' and `end` < '2025-02-28 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-02-28 21:35:18] Production.INFO: count ==3519 [2025-02-28 21:35:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:35:06 - End Time 2025-02-28 21:35:06 [2025-02-28 21:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579233', 'tblTempUsageDetail_20' ) start [2025-02-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579233', 'tblTempUsageDetail_20' ) end [2025-02-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579233', 'tblTempVendorCDR_20' ) start [2025-02-28 21:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579233', 'tblTempVendorCDR_20' ) end [2025-02-28 21:35:19] Production.INFO: ProcessCDR(1,14579233,1,1,2) [2025-02-28 21:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579233', 'tblTempUsageDetail_20' ) start [2025-02-28 21:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579233', 'tblTempUsageDetail_20' ) end [2025-02-28 21:35:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:35:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:35:23] Production.INFO: ==30432== Releasing lock... [2025-02-28 21:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:35:23] Production.INFO: 54.5 MB #Memory Used# [2025-02-28 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:36:05 [end_date_ymd] => 2025-02-28 21:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:36:05' and `end` < '2025-02-28 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-02-28 21:36:17] Production.INFO: count ==3484 [2025-02-28 21:36:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:36:05 - End Time 2025-02-28 21:36:05 [2025-02-28 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579238', 'tblTempUsageDetail_20' ) start [2025-02-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579238', 'tblTempUsageDetail_20' ) end [2025-02-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579238', 'tblTempVendorCDR_20' ) start [2025-02-28 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579238', 'tblTempVendorCDR_20' ) end [2025-02-28 21:36:19] Production.INFO: ProcessCDR(1,14579238,1,1,2) [2025-02-28 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579238', 'tblTempUsageDetail_20' ) start [2025-02-28 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579238', 'tblTempUsageDetail_20' ) end [2025-02-28 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:36:22] Production.INFO: ==30516== Releasing lock... [2025-02-28 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:36:22] Production.INFO: 54 MB #Memory Used# [2025-02-28 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:37:06 [end_date_ymd] => 2025-02-28 21:37:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:37:06' and `end` < '2025-02-28 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-02-28 21:37:18] Production.INFO: count ==3449 [2025-02-28 21:37:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:37:06 - End Time 2025-02-28 21:37:06 [2025-02-28 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579243', 'tblTempUsageDetail_20' ) start [2025-02-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579243', 'tblTempUsageDetail_20' ) end [2025-02-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579243', 'tblTempVendorCDR_20' ) start [2025-02-28 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579243', 'tblTempVendorCDR_20' ) end [2025-02-28 21:37:19] Production.INFO: ProcessCDR(1,14579243,1,1,2) [2025-02-28 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579243', 'tblTempUsageDetail_20' ) start [2025-02-28 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579243', 'tblTempUsageDetail_20' ) end [2025-02-28 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:37:22] Production.INFO: ==30601== Releasing lock... [2025-02-28 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:37:22] Production.INFO: 54.25 MB #Memory Used# [2025-02-28 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:38:05 [end_date_ymd] => 2025-02-28 21:38:05 [RateCDR] => 1 ) [2025-02-28 21:38:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:38:05' and `end` < '2025-02-28 21:38:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:38:17] Production.INFO: count ==3418 [2025-02-28 21:38:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:38:05 - End Time 2025-02-28 21:38:05 [2025-02-28 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579248', 'tblTempUsageDetail_20' ) start [2025-02-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579248', 'tblTempUsageDetail_20' ) end [2025-02-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579248', 'tblTempVendorCDR_20' ) start [2025-02-28 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579248', 'tblTempVendorCDR_20' ) end [2025-02-28 21:38:18] Production.INFO: ProcessCDR(1,14579248,1,1,2) [2025-02-28 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579248', 'tblTempUsageDetail_20' ) start [2025-02-28 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579248', 'tblTempUsageDetail_20' ) end [2025-02-28 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:38:22] Production.INFO: ==30690== Releasing lock... [2025-02-28 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:38:22] Production.INFO: 53.75 MB #Memory Used# [2025-02-28 21:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:39:06 [end_date_ymd] => 2025-02-28 21:39:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:39:06' and `end` < '2025-02-28 21: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-02-28 21:39:18] Production.INFO: count ==3378 [2025-02-28 21:39:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:39:06 - End Time 2025-02-28 21:39:06 [2025-02-28 21:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579253', 'tblTempUsageDetail_20' ) start [2025-02-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579253', 'tblTempUsageDetail_20' ) end [2025-02-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579253', 'tblTempVendorCDR_20' ) start [2025-02-28 21:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579253', 'tblTempVendorCDR_20' ) end [2025-02-28 21:39:19] Production.INFO: ProcessCDR(1,14579253,1,1,2) [2025-02-28 21:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579253', 'tblTempUsageDetail_20' ) start [2025-02-28 21:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579253', 'tblTempUsageDetail_20' ) end [2025-02-28 21:39:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:39:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:39:23] Production.INFO: ==30777== Releasing lock... [2025-02-28 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:39:23] Production.INFO: 53.25 MB #Memory Used# [2025-02-28 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:40:06 [end_date_ymd] => 2025-02-28 21:40:06 [RateCDR] => 1 ) [2025-02-28 21:40:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:40:06' and `end` < '2025-02-28 21:40:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:40:18] Production.INFO: count ==3335 [2025-02-28 21:40:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:40:06 - End Time 2025-02-28 21:40:06 [2025-02-28 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579259', 'tblTempUsageDetail_20' ) start [2025-02-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579259', 'tblTempUsageDetail_20' ) end [2025-02-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579259', 'tblTempVendorCDR_20' ) start [2025-02-28 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579259', 'tblTempVendorCDR_20' ) end [2025-02-28 21:40:19] Production.INFO: ProcessCDR(1,14579259,1,1,2) [2025-02-28 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579259', 'tblTempUsageDetail_20' ) start [2025-02-28 21:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579259', 'tblTempUsageDetail_20' ) end [2025-02-28 21:40:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:40:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:40:24] Production.INFO: ==30862== Releasing lock... [2025-02-28 21:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:40:24] Production.INFO: 53 MB #Memory Used# [2025-02-28 21:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:41:06 [end_date_ymd] => 2025-02-28 21:41:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:41:06' and `end` < '2025-02-28 21: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-02-28 21:41:18] Production.INFO: count ==3256 [2025-02-28 21:41:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:41:06 - End Time 2025-02-28 21:41:06 [2025-02-28 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579264', 'tblTempUsageDetail_20' ) start [2025-02-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579264', 'tblTempUsageDetail_20' ) end [2025-02-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579264', 'tblTempVendorCDR_20' ) start [2025-02-28 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579264', 'tblTempVendorCDR_20' ) end [2025-02-28 21:41:19] Production.INFO: ProcessCDR(1,14579264,1,1,2) [2025-02-28 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579264', 'tblTempUsageDetail_20' ) start [2025-02-28 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579264', 'tblTempUsageDetail_20' ) end [2025-02-28 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:41:22] Production.INFO: ==30941== Releasing lock... [2025-02-28 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:41:22] Production.INFO: 52.5 MB #Memory Used# [2025-02-28 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:42:05 [end_date_ymd] => 2025-02-28 21:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:42:05' and `end` < '2025-02-28 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-02-28 21:42:17] Production.INFO: count ==3223 [2025-02-28 21:42:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:42:05 - End Time 2025-02-28 21:42:05 [2025-02-28 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579269', 'tblTempUsageDetail_20' ) start [2025-02-28 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579269', 'tblTempUsageDetail_20' ) end [2025-02-28 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579269', 'tblTempVendorCDR_20' ) start [2025-02-28 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579269', 'tblTempVendorCDR_20' ) end [2025-02-28 21:42:19] Production.INFO: ProcessCDR(1,14579269,1,1,2) [2025-02-28 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579269', 'tblTempUsageDetail_20' ) start [2025-02-28 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579269', 'tblTempUsageDetail_20' ) end [2025-02-28 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:42:22] Production.INFO: ==31026== Releasing lock... [2025-02-28 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:42:22] Production.INFO: 52.75 MB #Memory Used# [2025-02-28 21:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:43:06 [end_date_ymd] => 2025-02-28 21:43:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:43:06' and `end` < '2025-02-28 21: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-02-28 21:43:18] Production.INFO: count ==3192 [2025-02-28 21:43:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:43:06 - End Time 2025-02-28 21:43:06 [2025-02-28 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579274', 'tblTempUsageDetail_20' ) start [2025-02-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579274', 'tblTempUsageDetail_20' ) end [2025-02-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579274', 'tblTempVendorCDR_20' ) start [2025-02-28 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579274', 'tblTempVendorCDR_20' ) end [2025-02-28 21:43:19] Production.INFO: ProcessCDR(1,14579274,1,1,2) [2025-02-28 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579274', 'tblTempUsageDetail_20' ) start [2025-02-28 21:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579274', 'tblTempUsageDetail_20' ) end [2025-02-28 21:43:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:43:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:43:24] Production.INFO: ==31114== Releasing lock... [2025-02-28 21:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:43:24] Production.INFO: 52 MB #Memory Used# [2025-02-28 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:44:05 [end_date_ymd] => 2025-02-28 21:44:05 [RateCDR] => 1 ) [2025-02-28 21:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:44:05' and `end` < '2025-02-28 21:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:44:18] Production.INFO: count ==3160 [2025-02-28 21:44:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:44:05 - End Time 2025-02-28 21:44:05 [2025-02-28 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579279', 'tblTempUsageDetail_20' ) start [2025-02-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579279', 'tblTempUsageDetail_20' ) end [2025-02-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579279', 'tblTempVendorCDR_20' ) start [2025-02-28 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579279', 'tblTempVendorCDR_20' ) end [2025-02-28 21:44:19] Production.INFO: ProcessCDR(1,14579279,1,1,2) [2025-02-28 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579279', 'tblTempUsageDetail_20' ) start [2025-02-28 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579279', 'tblTempUsageDetail_20' ) end [2025-02-28 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:44:22] Production.INFO: ==31186== Releasing lock... [2025-02-28 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:44:22] Production.INFO: 52 MB #Memory Used# [2025-02-28 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:45:05 [end_date_ymd] => 2025-02-28 21:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:45:05' and `end` < '2025-02-28 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-02-28 21:45:17] Production.INFO: count ==3135 [2025-02-28 21:45:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:45:05 - End Time 2025-02-28 21:45:05 [2025-02-28 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579284', 'tblTempUsageDetail_20' ) start [2025-02-28 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579284', 'tblTempUsageDetail_20' ) end [2025-02-28 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579284', 'tblTempVendorCDR_20' ) start [2025-02-28 21:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579284', 'tblTempVendorCDR_20' ) end [2025-02-28 21:45:19] Production.INFO: ProcessCDR(1,14579284,1,1,2) [2025-02-28 21:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579284', 'tblTempUsageDetail_20' ) start [2025-02-28 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579284', 'tblTempUsageDetail_20' ) end [2025-02-28 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:45:22] Production.INFO: ==31257== Releasing lock... [2025-02-28 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:45:22] Production.INFO: 51.75 MB #Memory Used# [2025-02-28 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:46:05 [end_date_ymd] => 2025-02-28 21:46:05 [RateCDR] => 1 ) [2025-02-28 21:46:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:46:05' and `end` < '2025-02-28 21:46:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:46:17] Production.INFO: count ==3110 [2025-02-28 21:46:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:46:05 - End Time 2025-02-28 21:46:05 [2025-02-28 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579289', 'tblTempUsageDetail_20' ) start [2025-02-28 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579289', 'tblTempUsageDetail_20' ) end [2025-02-28 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579289', 'tblTempVendorCDR_20' ) start [2025-02-28 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579289', 'tblTempVendorCDR_20' ) end [2025-02-28 21:46:19] Production.INFO: ProcessCDR(1,14579289,1,1,2) [2025-02-28 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579289', 'tblTempUsageDetail_20' ) start [2025-02-28 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579289', 'tblTempUsageDetail_20' ) end [2025-02-28 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:46:22] Production.INFO: ==31329== Releasing lock... [2025-02-28 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:46:22] Production.INFO: 51.25 MB #Memory Used# [2025-02-28 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:47:05 [end_date_ymd] => 2025-02-28 21:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:47:05' and `end` < '2025-02-28 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-02-28 21:47:17] Production.INFO: count ==3099 [2025-02-28 21:47:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:47:05 - End Time 2025-02-28 21:47:05 [2025-02-28 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579294', 'tblTempUsageDetail_20' ) start [2025-02-28 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579294', 'tblTempUsageDetail_20' ) end [2025-02-28 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579294', 'tblTempVendorCDR_20' ) start [2025-02-28 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579294', 'tblTempVendorCDR_20' ) end [2025-02-28 21:47:18] Production.INFO: ProcessCDR(1,14579294,1,1,2) [2025-02-28 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579294', 'tblTempUsageDetail_20' ) start [2025-02-28 21:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579294', 'tblTempUsageDetail_20' ) end [2025-02-28 21:47:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:47:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:47:22] Production.INFO: ==31400== Releasing lock... [2025-02-28 21:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:47:22] Production.INFO: 51.25 MB #Memory Used# [2025-02-28 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:48:05 [end_date_ymd] => 2025-02-28 21:48:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:48:05' and `end` < '2025-02-28 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-02-28 21:48:17] Production.INFO: count ==3075 [2025-02-28 21:48:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:48:05 - End Time 2025-02-28 21:48:05 [2025-02-28 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579299', 'tblTempUsageDetail_20' ) start [2025-02-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579299', 'tblTempUsageDetail_20' ) end [2025-02-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579299', 'tblTempVendorCDR_20' ) start [2025-02-28 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579299', 'tblTempVendorCDR_20' ) end [2025-02-28 21:48:18] Production.INFO: ProcessCDR(1,14579299,1,1,2) [2025-02-28 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579299', 'tblTempUsageDetail_20' ) start [2025-02-28 21:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579299', 'tblTempUsageDetail_20' ) end [2025-02-28 21:48:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:48:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:48:23] Production.INFO: ==31471== Releasing lock... [2025-02-28 21:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:48:23] Production.INFO: 51.25 MB #Memory Used# [2025-02-28 21:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:49:06 [end_date_ymd] => 2025-02-28 21:49:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:49:06' and `end` < '2025-02-28 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-02-28 21:49:18] Production.INFO: count ==3058 [2025-02-28 21:49:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:49:06 - End Time 2025-02-28 21:49:06 [2025-02-28 21:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579304', 'tblTempUsageDetail_20' ) start [2025-02-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579304', 'tblTempUsageDetail_20' ) end [2025-02-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579304', 'tblTempVendorCDR_20' ) start [2025-02-28 21:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579304', 'tblTempVendorCDR_20' ) end [2025-02-28 21:49:19] Production.INFO: ProcessCDR(1,14579304,1,1,2) [2025-02-28 21:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579304', 'tblTempUsageDetail_20' ) start [2025-02-28 21:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579304', 'tblTempUsageDetail_20' ) end [2025-02-28 21:49:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:49:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:49:23] Production.INFO: ==31551== Releasing lock... [2025-02-28 21:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:49:23] Production.INFO: 51 MB #Memory Used# [2025-02-28 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:50:06 [end_date_ymd] => 2025-02-28 21:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:50:06' and `end` < '2025-02-28 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-02-28 21:50:18] Production.INFO: count ==3048 [2025-02-28 21:50:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:50:06 - End Time 2025-02-28 21:50:06 [2025-02-28 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579310', 'tblTempUsageDetail_20' ) start [2025-02-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579310', 'tblTempUsageDetail_20' ) end [2025-02-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579310', 'tblTempVendorCDR_20' ) start [2025-02-28 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579310', 'tblTempVendorCDR_20' ) end [2025-02-28 21:50:19] Production.INFO: ProcessCDR(1,14579310,1,1,2) [2025-02-28 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579310', 'tblTempUsageDetail_20' ) start [2025-02-28 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579310', 'tblTempUsageDetail_20' ) end [2025-02-28 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:50:22] Production.INFO: ==31657== Releasing lock... [2025-02-28 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:50:22] Production.INFO: 51 MB #Memory Used# [2025-02-28 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:51:05 [end_date_ymd] => 2025-02-28 21:51:05 [RateCDR] => 1 ) [2025-02-28 21:51:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:51:05' and `end` < '2025-02-28 21:51:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:51:18] Production.INFO: count ==3012 [2025-02-28 21:51:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:51:05 - End Time 2025-02-28 21:51:05 [2025-02-28 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579315', 'tblTempUsageDetail_20' ) start [2025-02-28 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579315', 'tblTempUsageDetail_20' ) end [2025-02-28 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579315', 'tblTempVendorCDR_20' ) start [2025-02-28 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579315', 'tblTempVendorCDR_20' ) end [2025-02-28 21:51:19] Production.INFO: ProcessCDR(1,14579315,1,1,2) [2025-02-28 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579315', 'tblTempUsageDetail_20' ) start [2025-02-28 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579315', 'tblTempUsageDetail_20' ) end [2025-02-28 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:51:22] Production.INFO: ==31755== Releasing lock... [2025-02-28 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:51:22] Production.INFO: 50.5 MB #Memory Used# [2025-02-28 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:52:05 [end_date_ymd] => 2025-02-28 21:52:05 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:52:05' and `end` < '2025-02-28 21: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-02-28 21:52:17] Production.INFO: count ==2981 [2025-02-28 21:52:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:52:05 - End Time 2025-02-28 21:52:05 [2025-02-28 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579320', 'tblTempUsageDetail_20' ) start [2025-02-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579320', 'tblTempUsageDetail_20' ) end [2025-02-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579320', 'tblTempVendorCDR_20' ) start [2025-02-28 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579320', 'tblTempVendorCDR_20' ) end [2025-02-28 21:52:18] Production.INFO: ProcessCDR(1,14579320,1,1,2) [2025-02-28 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579320', 'tblTempUsageDetail_20' ) start [2025-02-28 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579320', 'tblTempUsageDetail_20' ) end [2025-02-28 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:52:22] Production.INFO: ==31837== Releasing lock... [2025-02-28 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:52:22] Production.INFO: 50.25 MB #Memory Used# [2025-02-28 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:53:05 [end_date_ymd] => 2025-02-28 21:53:05 [RateCDR] => 1 ) [2025-02-28 21:53:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:53:05' and `end` < '2025-02-28 21:53:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:53:17] Production.INFO: count ==2962 [2025-02-28 21:53:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:53:05 - End Time 2025-02-28 21:53:05 [2025-02-28 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579325', 'tblTempUsageDetail_20' ) start [2025-02-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579325', 'tblTempUsageDetail_20' ) end [2025-02-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579325', 'tblTempVendorCDR_20' ) start [2025-02-28 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579325', 'tblTempVendorCDR_20' ) end [2025-02-28 21:53:18] Production.INFO: ProcessCDR(1,14579325,1,1,2) [2025-02-28 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579325', 'tblTempUsageDetail_20' ) start [2025-02-28 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579325', 'tblTempUsageDetail_20' ) end [2025-02-28 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:53:21] Production.INFO: ==31908== Releasing lock... [2025-02-28 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:53:21] Production.INFO: 49.75 MB #Memory Used# [2025-02-28 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:54:05 [end_date_ymd] => 2025-02-28 21:54:05 [RateCDR] => 1 ) [2025-02-28 21:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 18:54:05' and `end` < '2025-02-28 21:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 21:54:17] Production.INFO: count ==2938 [2025-02-28 21:54:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:54:05 - End Time 2025-02-28 21:54:05 [2025-02-28 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579330', 'tblTempUsageDetail_20' ) start [2025-02-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579330', 'tblTempUsageDetail_20' ) end [2025-02-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579330', 'tblTempVendorCDR_20' ) start [2025-02-28 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579330', 'tblTempVendorCDR_20' ) end [2025-02-28 21:54:18] Production.INFO: ProcessCDR(1,14579330,1,1,2) [2025-02-28 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579330', 'tblTempUsageDetail_20' ) start [2025-02-28 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579330', 'tblTempUsageDetail_20' ) end [2025-02-28 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:54:21] Production.INFO: ==31987== Releasing lock... [2025-02-28 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:54:21] Production.INFO: 49.75 MB #Memory Used# [2025-02-28 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:55:05 [end_date_ymd] => 2025-02-28 21:55:05 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:55:05' and `end` < '2025-02-28 21: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-02-28 21:55:17] Production.INFO: count ==2928 [2025-02-28 21:55:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:55:05 - End Time 2025-02-28 21:55:05 [2025-02-28 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579335', 'tblTempUsageDetail_20' ) start [2025-02-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579335', 'tblTempUsageDetail_20' ) end [2025-02-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579335', 'tblTempVendorCDR_20' ) start [2025-02-28 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579335', 'tblTempVendorCDR_20' ) end [2025-02-28 21:55:18] Production.INFO: ProcessCDR(1,14579335,1,1,2) [2025-02-28 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579335', 'tblTempUsageDetail_20' ) start [2025-02-28 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579335', 'tblTempUsageDetail_20' ) end [2025-02-28 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:55:22] Production.INFO: ==32070== Releasing lock... [2025-02-28 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:55:22] Production.INFO: 49.5 MB #Memory Used# [2025-02-28 21:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:56:06 [end_date_ymd] => 2025-02-28 21:56:06 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:56:06' and `end` < '2025-02-28 21: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-02-28 21:56:18] Production.INFO: count ==2904 [2025-02-28 21:56:19] Production.ERROR: pbx CDR StartTime 2025-02-28 18:56:06 - End Time 2025-02-28 21:56:06 [2025-02-28 21:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579340', 'tblTempUsageDetail_20' ) start [2025-02-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579340', 'tblTempUsageDetail_20' ) end [2025-02-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579340', 'tblTempVendorCDR_20' ) start [2025-02-28 21:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579340', 'tblTempVendorCDR_20' ) end [2025-02-28 21:56:19] Production.INFO: ProcessCDR(1,14579340,1,1,2) [2025-02-28 21:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579340', 'tblTempUsageDetail_20' ) start [2025-02-28 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579340', 'tblTempUsageDetail_20' ) end [2025-02-28 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:56:22] Production.INFO: ==32143== Releasing lock... [2025-02-28 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:56:22] Production.INFO: 50.25 MB #Memory Used# [2025-02-28 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:57:05 [end_date_ymd] => 2025-02-28 21:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 18:57:05' and `end` < '2025-02-28 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-02-28 21:57:17] Production.INFO: count ==2875 [2025-02-28 21:57:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:57:05 - End Time 2025-02-28 21:57:05 [2025-02-28 21:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579345', 'tblTempUsageDetail_20' ) start [2025-02-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579345', 'tblTempUsageDetail_20' ) end [2025-02-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579345', 'tblTempVendorCDR_20' ) start [2025-02-28 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579345', 'tblTempVendorCDR_20' ) end [2025-02-28 21:57:18] Production.INFO: ProcessCDR(1,14579345,1,1,2) [2025-02-28 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579345', 'tblTempUsageDetail_20' ) start [2025-02-28 21:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579345', 'tblTempUsageDetail_20' ) end [2025-02-28 21:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:57:21] Production.INFO: ==32218== Releasing lock... [2025-02-28 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:57:21] Production.INFO: 49.25 MB #Memory Used# [2025-02-28 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:58:05 [end_date_ymd] => 2025-02-28 21:58:05 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:58:05' and `end` < '2025-02-28 21: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-02-28 21:58:18] Production.INFO: count ==2857 [2025-02-28 21:58:18] Production.ERROR: pbx CDR StartTime 2025-02-28 18:58:05 - End Time 2025-02-28 21:58:05 [2025-02-28 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579350', 'tblTempUsageDetail_20' ) start [2025-02-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579350', 'tblTempUsageDetail_20' ) end [2025-02-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579350', 'tblTempVendorCDR_20' ) start [2025-02-28 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579350', 'tblTempVendorCDR_20' ) end [2025-02-28 21:58:18] Production.INFO: ProcessCDR(1,14579350,1,1,2) [2025-02-28 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579350', 'tblTempUsageDetail_20' ) start [2025-02-28 21:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579350', 'tblTempUsageDetail_20' ) end [2025-02-28 21:58:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:58:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:58:22] Production.INFO: ==32305== Releasing lock... [2025-02-28 21:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:58:22] Production.INFO: 49 MB #Memory Used# [2025-02-28 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 18:59:04 [end_date_ymd] => 2025-02-28 21:59:04 [RateCDR] => 1 ) [2025-02-28 21: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-02-28 18:59:04' and `end` < '2025-02-28 21: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-02-28 21:59:16] Production.INFO: count ==2841 [2025-02-28 21:59:17] Production.ERROR: pbx CDR StartTime 2025-02-28 18:59:04 - End Time 2025-02-28 21:59:04 [2025-02-28 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579355', 'tblTempUsageDetail_20' ) start [2025-02-28 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579355', 'tblTempUsageDetail_20' ) end [2025-02-28 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579355', 'tblTempVendorCDR_20' ) start [2025-02-28 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579355', 'tblTempVendorCDR_20' ) end [2025-02-28 21:59:17] Production.INFO: ProcessCDR(1,14579355,1,1,2) [2025-02-28 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579355', 'tblTempUsageDetail_20' ) start [2025-02-28 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579355', 'tblTempUsageDetail_20' ) end [2025-02-28 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 21:59:21] Production.INFO: ==32375== Releasing lock... [2025-02-28 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 21:59:21] Production.INFO: 49 MB #Memory Used# [2025-02-28 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:00:06 [end_date_ymd] => 2025-02-28 22:00:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:00:06' and `end` < '2025-02-28 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-02-28 22:00:19] Production.INFO: count ==2821 [2025-02-28 22:00:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:00:06 - End Time 2025-02-28 22:00:06 [2025-02-28 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579361', 'tblTempUsageDetail_20' ) start [2025-02-28 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579361', 'tblTempUsageDetail_20' ) end [2025-02-28 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579361', 'tblTempVendorCDR_20' ) start [2025-02-28 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579361', 'tblTempVendorCDR_20' ) end [2025-02-28 22:00:20] Production.INFO: ProcessCDR(1,14579361,1,1,2) [2025-02-28 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579361', 'tblTempUsageDetail_20' ) start [2025-02-28 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579361', 'tblTempUsageDetail_20' ) end [2025-02-28 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:00:23] Production.INFO: ==32453== Releasing lock... [2025-02-28 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:00:23] Production.INFO: 49 MB #Memory Used# [2025-02-28 22:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:01:04 [end_date_ymd] => 2025-02-28 22:01:04 [RateCDR] => 1 ) [2025-02-28 22:01:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:01:04' and `end` < '2025-02-28 22:01:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:01:17] Production.INFO: count ==2785 [2025-02-28 22:01:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:01:04 - End Time 2025-02-28 22:01:04 [2025-02-28 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579366', 'tblTempUsageDetail_20' ) start [2025-02-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579366', 'tblTempUsageDetail_20' ) end [2025-02-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579366', 'tblTempVendorCDR_20' ) start [2025-02-28 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579366', 'tblTempVendorCDR_20' ) end [2025-02-28 22:01:18] Production.INFO: ProcessCDR(1,14579366,1,1,2) [2025-02-28 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579366', 'tblTempUsageDetail_20' ) start [2025-02-28 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579366', 'tblTempUsageDetail_20' ) end [2025-02-28 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:01:21] Production.INFO: ==32545== Releasing lock... [2025-02-28 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:01:21] Production.INFO: 48.75 MB #Memory Used# [2025-02-28 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:02:05 [end_date_ymd] => 2025-02-28 22:02:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:02:05' and `end` < '2025-02-28 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-02-28 22:02:18] Production.INFO: count ==2788 [2025-02-28 22:02:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:02:05 - End Time 2025-02-28 22:02:05 [2025-02-28 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579371', 'tblTempUsageDetail_20' ) start [2025-02-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579371', 'tblTempUsageDetail_20' ) end [2025-02-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579371', 'tblTempVendorCDR_20' ) start [2025-02-28 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579371', 'tblTempVendorCDR_20' ) end [2025-02-28 22:02:19] Production.INFO: ProcessCDR(1,14579371,1,1,2) [2025-02-28 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579371', 'tblTempUsageDetail_20' ) start [2025-02-28 22:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579371', 'tblTempUsageDetail_20' ) end [2025-02-28 22:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:02:22] Production.INFO: ==32629== Releasing lock... [2025-02-28 22:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:02:22] Production.INFO: 48.75 MB #Memory Used# [2025-02-28 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:03:05 [end_date_ymd] => 2025-02-28 22:03:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:03:05' and `end` < '2025-02-28 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-02-28 22:03:17] Production.INFO: count ==2763 [2025-02-28 22:03:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:03:05 - End Time 2025-02-28 22:03:05 [2025-02-28 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579376', 'tblTempUsageDetail_20' ) start [2025-02-28 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579376', 'tblTempUsageDetail_20' ) end [2025-02-28 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579376', 'tblTempVendorCDR_20' ) start [2025-02-28 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579376', 'tblTempVendorCDR_20' ) end [2025-02-28 22:03:18] Production.INFO: ProcessCDR(1,14579376,1,1,2) [2025-02-28 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579376', 'tblTempUsageDetail_20' ) start [2025-02-28 22:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579376', 'tblTempUsageDetail_20' ) end [2025-02-28 22:03:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:03:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:03:21] Production.INFO: ==32713== Releasing lock... [2025-02-28 22:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:03:21] Production.INFO: 48.75 MB #Memory Used# [2025-02-28 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:04:05 [end_date_ymd] => 2025-02-28 22:04:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:04:05' and `end` < '2025-02-28 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-02-28 22:04:17] Production.INFO: count ==2747 [2025-02-28 22:04:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:04:05 - End Time 2025-02-28 22:04:05 [2025-02-28 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579381', 'tblTempUsageDetail_20' ) start [2025-02-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579381', 'tblTempUsageDetail_20' ) end [2025-02-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579381', 'tblTempVendorCDR_20' ) start [2025-02-28 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579381', 'tblTempVendorCDR_20' ) end [2025-02-28 22:04:18] Production.INFO: ProcessCDR(1,14579381,1,1,2) [2025-02-28 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579381', 'tblTempUsageDetail_20' ) start [2025-02-28 22:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579381', 'tblTempUsageDetail_20' ) end [2025-02-28 22:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:04:23] Production.INFO: ==326== Releasing lock... [2025-02-28 22:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:04:23] Production.INFO: 49 MB #Memory Used# [2025-02-28 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:05:05 [end_date_ymd] => 2025-02-28 22:05:05 [RateCDR] => 1 ) [2025-02-28 22:05:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:05:05' and `end` < '2025-02-28 22:05:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:05:17] Production.INFO: count ==2724 [2025-02-28 22:05:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:05:05 - End Time 2025-02-28 22:05:05 [2025-02-28 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579386', 'tblTempUsageDetail_20' ) start [2025-02-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579386', 'tblTempUsageDetail_20' ) end [2025-02-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579386', 'tblTempVendorCDR_20' ) start [2025-02-28 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579386', 'tblTempVendorCDR_20' ) end [2025-02-28 22:05:18] Production.INFO: ProcessCDR(1,14579386,1,1,2) [2025-02-28 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579386', 'tblTempUsageDetail_20' ) start [2025-02-28 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579386', 'tblTempUsageDetail_20' ) end [2025-02-28 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:05:21] Production.INFO: ==410== Releasing lock... [2025-02-28 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:05:21] Production.INFO: 48.5 MB #Memory Used# [2025-02-28 22:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:06:06 [end_date_ymd] => 2025-02-28 22:06:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:06:06' and `end` < '2025-02-28 22: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-02-28 22:06:18] Production.INFO: count ==2708 [2025-02-28 22:06:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:06:06 - End Time 2025-02-28 22:06:06 [2025-02-28 22:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579391', 'tblTempUsageDetail_20' ) start [2025-02-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579391', 'tblTempUsageDetail_20' ) end [2025-02-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579391', 'tblTempVendorCDR_20' ) start [2025-02-28 22:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579391', 'tblTempVendorCDR_20' ) end [2025-02-28 22:06:19] Production.INFO: ProcessCDR(1,14579391,1,1,2) [2025-02-28 22:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579391', 'tblTempUsageDetail_20' ) start [2025-02-28 22:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579391', 'tblTempUsageDetail_20' ) end [2025-02-28 22:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:06:22] Production.INFO: ==533== Releasing lock... [2025-02-28 22:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:06:22] Production.INFO: 48.25 MB #Memory Used# [2025-02-28 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:07:05 [end_date_ymd] => 2025-02-28 22:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:07:05' and `end` < '2025-02-28 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-02-28 22:07:17] Production.INFO: count ==2687 [2025-02-28 22:07:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:07:05 - End Time 2025-02-28 22:07:05 [2025-02-28 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579396', 'tblTempUsageDetail_20' ) start [2025-02-28 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579396', 'tblTempUsageDetail_20' ) end [2025-02-28 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579396', 'tblTempVendorCDR_20' ) start [2025-02-28 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579396', 'tblTempVendorCDR_20' ) end [2025-02-28 22:07:18] Production.INFO: ProcessCDR(1,14579396,1,1,2) [2025-02-28 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579396', 'tblTempUsageDetail_20' ) start [2025-02-28 22:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579396', 'tblTempUsageDetail_20' ) end [2025-02-28 22:07:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:07:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:07:23] Production.INFO: ==630== Releasing lock... [2025-02-28 22:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:07:23] Production.INFO: 48.25 MB #Memory Used# [2025-02-28 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:08:05 [end_date_ymd] => 2025-02-28 22:08:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:08:05' and `end` < '2025-02-28 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-02-28 22:08:19] Production.INFO: count ==2676 [2025-02-28 22:08:20] Production.ERROR: pbx CDR StartTime 2025-02-28 19:08:05 - End Time 2025-02-28 22:08:05 [2025-02-28 22:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579401', 'tblTempUsageDetail_20' ) start [2025-02-28 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579401', 'tblTempUsageDetail_20' ) end [2025-02-28 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579401', 'tblTempVendorCDR_20' ) start [2025-02-28 22:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579401', 'tblTempVendorCDR_20' ) end [2025-02-28 22:08:20] Production.INFO: ProcessCDR(1,14579401,1,1,2) [2025-02-28 22:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579401', 'tblTempUsageDetail_20' ) start [2025-02-28 22:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579401', 'tblTempUsageDetail_20' ) end [2025-02-28 22:08:25] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:08:25] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:08:25] Production.INFO: ==738== Releasing lock... [2025-02-28 22:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:08:25] Production.INFO: 48.25 MB #Memory Used# [2025-02-28 22:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:09:06 [end_date_ymd] => 2025-02-28 22:09:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:09:06' and `end` < '2025-02-28 22: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-02-28 22:09:18] Production.INFO: count ==2662 [2025-02-28 22:09:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:09:06 - End Time 2025-02-28 22:09:06 [2025-02-28 22:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579406', 'tblTempUsageDetail_20' ) start [2025-02-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579406', 'tblTempUsageDetail_20' ) end [2025-02-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579406', 'tblTempVendorCDR_20' ) start [2025-02-28 22:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579406', 'tblTempVendorCDR_20' ) end [2025-02-28 22:09:19] Production.INFO: ProcessCDR(1,14579406,1,1,2) [2025-02-28 22:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579406', 'tblTempUsageDetail_20' ) start [2025-02-28 22:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579406', 'tblTempUsageDetail_20' ) end [2025-02-28 22:09:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:09:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:09:24] Production.INFO: ==822== Releasing lock... [2025-02-28 22:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:09:24] Production.INFO: 48.25 MB #Memory Used# [2025-02-28 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:10:06 [end_date_ymd] => 2025-02-28 22:10:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:10:06' and `end` < '2025-02-28 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-02-28 22:10:18] Production.INFO: count ==2732 [2025-02-28 22:10:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:10:06 - End Time 2025-02-28 22:10:06 [2025-02-28 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579412', 'tblTempUsageDetail_20' ) start [2025-02-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579412', 'tblTempUsageDetail_20' ) end [2025-02-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579412', 'tblTempVendorCDR_20' ) start [2025-02-28 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579412', 'tblTempVendorCDR_20' ) end [2025-02-28 22:10:19] Production.INFO: ProcessCDR(1,14579412,1,1,2) [2025-02-28 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579412', 'tblTempUsageDetail_20' ) start [2025-02-28 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579412', 'tblTempUsageDetail_20' ) end [2025-02-28 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:10:22] Production.INFO: ==897== Releasing lock... [2025-02-28 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:10:22] Production.INFO: 48.5 MB #Memory Used# [2025-02-28 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:11:05 [end_date_ymd] => 2025-02-28 22:11:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:11:05' and `end` < '2025-02-28 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-02-28 22:11:18] Production.INFO: count ==2672 [2025-02-28 22:11:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:11:05 - End Time 2025-02-28 22:11:05 [2025-02-28 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579417', 'tblTempUsageDetail_20' ) start [2025-02-28 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579417', 'tblTempUsageDetail_20' ) end [2025-02-28 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579417', 'tblTempVendorCDR_20' ) start [2025-02-28 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579417', 'tblTempVendorCDR_20' ) end [2025-02-28 22:11:19] Production.INFO: ProcessCDR(1,14579417,1,1,2) [2025-02-28 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579417', 'tblTempUsageDetail_20' ) start [2025-02-28 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579417', 'tblTempUsageDetail_20' ) end [2025-02-28 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:11:23] Production.INFO: ==971== Releasing lock... [2025-02-28 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:11:23] Production.INFO: 48 MB #Memory Used# [2025-02-28 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:12:05 [end_date_ymd] => 2025-02-28 22:12:05 [RateCDR] => 1 ) [2025-02-28 22:12:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:12:05' and `end` < '2025-02-28 22:12:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:12:17] Production.INFO: count ==2664 [2025-02-28 22:12:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:12:05 - End Time 2025-02-28 22:12:05 [2025-02-28 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579422', 'tblTempUsageDetail_20' ) start [2025-02-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579422', 'tblTempUsageDetail_20' ) end [2025-02-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579422', 'tblTempVendorCDR_20' ) start [2025-02-28 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579422', 'tblTempVendorCDR_20' ) end [2025-02-28 22:12:18] Production.INFO: ProcessCDR(1,14579422,1,1,2) [2025-02-28 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579422', 'tblTempUsageDetail_20' ) start [2025-02-28 22:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579422', 'tblTempUsageDetail_20' ) end [2025-02-28 22:12:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:12:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:12:23] Production.INFO: ==1042== Releasing lock... [2025-02-28 22:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:12:23] Production.INFO: 48 MB #Memory Used# [2025-02-28 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:13:05 [end_date_ymd] => 2025-02-28 22:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:13:05' and `end` < '2025-02-28 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-02-28 22:13:18] Production.INFO: count ==2656 [2025-02-28 22:13:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:13:05 - End Time 2025-02-28 22:13:05 [2025-02-28 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579427', 'tblTempUsageDetail_20' ) start [2025-02-28 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579427', 'tblTempUsageDetail_20' ) end [2025-02-28 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579427', 'tblTempVendorCDR_20' ) start [2025-02-28 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579427', 'tblTempVendorCDR_20' ) end [2025-02-28 22:13:19] Production.INFO: ProcessCDR(1,14579427,1,1,2) [2025-02-28 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579427', 'tblTempUsageDetail_20' ) start [2025-02-28 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579427', 'tblTempUsageDetail_20' ) end [2025-02-28 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:13:22] Production.INFO: ==1112== Releasing lock... [2025-02-28 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:13:22] Production.INFO: 48 MB #Memory Used# [2025-02-28 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:14:05 [end_date_ymd] => 2025-02-28 22:14:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:14:05' and `end` < '2025-02-28 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-02-28 22:14:17] Production.INFO: count ==2651 [2025-02-28 22:14:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:14:05 - End Time 2025-02-28 22:14:05 [2025-02-28 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579432', 'tblTempUsageDetail_20' ) start [2025-02-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579432', 'tblTempUsageDetail_20' ) end [2025-02-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579432', 'tblTempVendorCDR_20' ) start [2025-02-28 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579432', 'tblTempVendorCDR_20' ) end [2025-02-28 22:14:18] Production.INFO: ProcessCDR(1,14579432,1,1,2) [2025-02-28 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579432', 'tblTempUsageDetail_20' ) start [2025-02-28 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579432', 'tblTempUsageDetail_20' ) end [2025-02-28 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:14:21] Production.INFO: ==1194== Releasing lock... [2025-02-28 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:14:21] Production.INFO: 48 MB #Memory Used# [2025-02-28 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:15:05 [end_date_ymd] => 2025-02-28 22:15:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:15:05' and `end` < '2025-02-28 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-02-28 22:15:18] Production.INFO: count ==2643 [2025-02-28 22:15:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:15:05 - End Time 2025-02-28 22:15:05 [2025-02-28 22:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579437', 'tblTempUsageDetail_20' ) start [2025-02-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579437', 'tblTempUsageDetail_20' ) end [2025-02-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579437', 'tblTempVendorCDR_20' ) start [2025-02-28 22:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579437', 'tblTempVendorCDR_20' ) end [2025-02-28 22:15:19] Production.INFO: ProcessCDR(1,14579437,1,1,2) [2025-02-28 22:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579437', 'tblTempUsageDetail_20' ) start [2025-02-28 22:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579437', 'tblTempUsageDetail_20' ) end [2025-02-28 22:15:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:15:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:15:22] Production.INFO: ==1281== Releasing lock... [2025-02-28 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:15:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-28 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:16:05 [end_date_ymd] => 2025-02-28 22:16:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:16:05' and `end` < '2025-02-28 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-02-28 22:16:17] Production.INFO: count ==2631 [2025-02-28 22:16:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:16:05 - End Time 2025-02-28 22:16:05 [2025-02-28 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579442', 'tblTempUsageDetail_20' ) start [2025-02-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579442', 'tblTempUsageDetail_20' ) end [2025-02-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579442', 'tblTempVendorCDR_20' ) start [2025-02-28 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579442', 'tblTempVendorCDR_20' ) end [2025-02-28 22:16:18] Production.INFO: ProcessCDR(1,14579442,1,1,2) [2025-02-28 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579442', 'tblTempUsageDetail_20' ) start [2025-02-28 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579442', 'tblTempUsageDetail_20' ) end [2025-02-28 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:16:21] Production.INFO: ==1352== Releasing lock... [2025-02-28 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:16:21] Production.INFO: 47.75 MB #Memory Used# [2025-02-28 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:17:06 [end_date_ymd] => 2025-02-28 22:17:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:17:06' and `end` < '2025-02-28 22: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-02-28 22:17:18] Production.INFO: count ==2621 [2025-02-28 22:17:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:17:06 - End Time 2025-02-28 22:17:06 [2025-02-28 22:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579447', 'tblTempUsageDetail_20' ) start [2025-02-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579447', 'tblTempUsageDetail_20' ) end [2025-02-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579447', 'tblTempVendorCDR_20' ) start [2025-02-28 22:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579447', 'tblTempVendorCDR_20' ) end [2025-02-28 22:17:19] Production.INFO: ProcessCDR(1,14579447,1,1,2) [2025-02-28 22:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579447', 'tblTempUsageDetail_20' ) start [2025-02-28 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579447', 'tblTempUsageDetail_20' ) end [2025-02-28 22:17:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:17:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:17:24] Production.INFO: ==1443== Releasing lock... [2025-02-28 22:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:17:24] Production.INFO: 47.75 MB #Memory Used# [2025-02-28 22:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:18:06 [end_date_ymd] => 2025-02-28 22:18:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:18:06' and `end` < '2025-02-28 22: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-02-28 22:18:18] Production.INFO: count ==2632 [2025-02-28 22:18:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:18:06 - End Time 2025-02-28 22:18:06 [2025-02-28 22:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579452', 'tblTempUsageDetail_20' ) start [2025-02-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579452', 'tblTempUsageDetail_20' ) end [2025-02-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579452', 'tblTempVendorCDR_20' ) start [2025-02-28 22:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579452', 'tblTempVendorCDR_20' ) end [2025-02-28 22:18:19] Production.INFO: ProcessCDR(1,14579452,1,1,2) [2025-02-28 22:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579452', 'tblTempUsageDetail_20' ) start [2025-02-28 22:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579452', 'tblTempUsageDetail_20' ) end [2025-02-28 22:18:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:18:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:18:22] Production.INFO: ==1555== Releasing lock... [2025-02-28 22:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:18:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-28 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:19:05 [end_date_ymd] => 2025-02-28 22:19:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:19:05' and `end` < '2025-02-28 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-02-28 22:19:18] Production.INFO: count ==2619 [2025-02-28 22:19:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:19:05 - End Time 2025-02-28 22:19:05 [2025-02-28 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579457', 'tblTempUsageDetail_20' ) start [2025-02-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579457', 'tblTempUsageDetail_20' ) end [2025-02-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579457', 'tblTempVendorCDR_20' ) start [2025-02-28 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579457', 'tblTempVendorCDR_20' ) end [2025-02-28 22:19:18] Production.INFO: ProcessCDR(1,14579457,1,1,2) [2025-02-28 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579457', 'tblTempUsageDetail_20' ) start [2025-02-28 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579457', 'tblTempUsageDetail_20' ) end [2025-02-28 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:19:22] Production.INFO: ==1639== Releasing lock... [2025-02-28 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:19:22] Production.INFO: 47.75 MB #Memory Used# [2025-02-28 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:20:06 [end_date_ymd] => 2025-02-28 22:20:06 [RateCDR] => 1 ) [2025-02-28 22:20:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:20:06' and `end` < '2025-02-28 22:20:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:20:18] Production.INFO: count ==2608 [2025-02-28 22:20:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:20:06 - End Time 2025-02-28 22:20:06 [2025-02-28 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579463', 'tblTempUsageDetail_20' ) start [2025-02-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579463', 'tblTempUsageDetail_20' ) end [2025-02-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579463', 'tblTempVendorCDR_20' ) start [2025-02-28 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579463', 'tblTempVendorCDR_20' ) end [2025-02-28 22:20:19] Production.INFO: ProcessCDR(1,14579463,1,1,2) [2025-02-28 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579463', 'tblTempUsageDetail_20' ) start [2025-02-28 22:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579463', 'tblTempUsageDetail_20' ) end [2025-02-28 22:20:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:20:23] Production.INFO: ==1716== Releasing lock... [2025-02-28 22:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:20:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-28 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:21:05 [end_date_ymd] => 2025-02-28 22:21:05 [RateCDR] => 1 ) [2025-02-28 22:21:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:21:05' and `end` < '2025-02-28 22:21:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:21:18] Production.INFO: count ==2571 [2025-02-28 22:21:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:21:05 - End Time 2025-02-28 22:21:05 [2025-02-28 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579468', 'tblTempUsageDetail_20' ) start [2025-02-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579468', 'tblTempUsageDetail_20' ) end [2025-02-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579468', 'tblTempVendorCDR_20' ) start [2025-02-28 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579468', 'tblTempVendorCDR_20' ) end [2025-02-28 22:21:18] Production.INFO: ProcessCDR(1,14579468,1,1,2) [2025-02-28 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579468', 'tblTempUsageDetail_20' ) start [2025-02-28 22:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579468', 'tblTempUsageDetail_20' ) end [2025-02-28 22:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:21:22] Production.INFO: ==1849== Releasing lock... [2025-02-28 22:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:21:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-28 22:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:22:06 [end_date_ymd] => 2025-02-28 22:22:06 [RateCDR] => 1 ) [2025-02-28 22:22:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:22:06' and `end` < '2025-02-28 22:22:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:22:18] Production.INFO: count ==2585 [2025-02-28 22:22:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:22:06 - End Time 2025-02-28 22:22:06 [2025-02-28 22:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579473', 'tblTempUsageDetail_20' ) start [2025-02-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579473', 'tblTempUsageDetail_20' ) end [2025-02-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579473', 'tblTempVendorCDR_20' ) start [2025-02-28 22:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579473', 'tblTempVendorCDR_20' ) end [2025-02-28 22:22:19] Production.INFO: ProcessCDR(1,14579473,1,1,2) [2025-02-28 22:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579473', 'tblTempUsageDetail_20' ) start [2025-02-28 22:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579473', 'tblTempUsageDetail_20' ) end [2025-02-28 22:22:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:22:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:22:22] Production.INFO: ==1932== Releasing lock... [2025-02-28 22:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:22:22] Production.INFO: 47.5 MB #Memory Used# [2025-02-28 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:23:05 [end_date_ymd] => 2025-02-28 22:23:05 [RateCDR] => 1 ) [2025-02-28 22:23:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:23:05' and `end` < '2025-02-28 22:23:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:23:18] Production.INFO: count ==2580 [2025-02-28 22:23:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:23:05 - End Time 2025-02-28 22:23:05 [2025-02-28 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579478', 'tblTempUsageDetail_20' ) start [2025-02-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579478', 'tblTempUsageDetail_20' ) end [2025-02-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579478', 'tblTempVendorCDR_20' ) start [2025-02-28 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579478', 'tblTempVendorCDR_20' ) end [2025-02-28 22:23:18] Production.INFO: ProcessCDR(1,14579478,1,1,2) [2025-02-28 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579478', 'tblTempUsageDetail_20' ) start [2025-02-28 22:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579478', 'tblTempUsageDetail_20' ) end [2025-02-28 22:23:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:23:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:23:23] Production.INFO: ==2007== Releasing lock... [2025-02-28 22:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:23:23] Production.INFO: 47.5 MB #Memory Used# [2025-02-28 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:24:05 [end_date_ymd] => 2025-02-28 22:24:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:24:05' and `end` < '2025-02-28 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-02-28 22:24:17] Production.INFO: count ==2562 [2025-02-28 22:24:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:24:05 - End Time 2025-02-28 22:24:05 [2025-02-28 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579483', 'tblTempUsageDetail_20' ) start [2025-02-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579483', 'tblTempUsageDetail_20' ) end [2025-02-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579483', 'tblTempVendorCDR_20' ) start [2025-02-28 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579483', 'tblTempVendorCDR_20' ) end [2025-02-28 22:24:18] Production.INFO: ProcessCDR(1,14579483,1,1,2) [2025-02-28 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579483', 'tblTempUsageDetail_20' ) start [2025-02-28 22:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579483', 'tblTempUsageDetail_20' ) end [2025-02-28 22:24:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:24:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:24:22] Production.INFO: ==2090== Releasing lock... [2025-02-28 22:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:24:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:25:05 [end_date_ymd] => 2025-02-28 22:25:05 [RateCDR] => 1 ) [2025-02-28 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:25:05' and `end` < '2025-02-28 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:25:18] Production.INFO: count ==2560 [2025-02-28 22:25:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:25:05 - End Time 2025-02-28 22:25:05 [2025-02-28 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579488', 'tblTempUsageDetail_20' ) start [2025-02-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579488', 'tblTempUsageDetail_20' ) end [2025-02-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579488', 'tblTempVendorCDR_20' ) start [2025-02-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579488', 'tblTempVendorCDR_20' ) end [2025-02-28 22:25:18] Production.INFO: ProcessCDR(1,14579488,1,1,2) [2025-02-28 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579488', 'tblTempUsageDetail_20' ) start [2025-02-28 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579488', 'tblTempUsageDetail_20' ) end [2025-02-28 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:25:22] Production.INFO: ==2167== Releasing lock... [2025-02-28 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:25:22] Production.INFO: 47.25 MB #Memory Used# [2025-02-28 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:26:05 [end_date_ymd] => 2025-02-28 22:26:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:26:05' and `end` < '2025-02-28 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-02-28 22:26:17] Production.INFO: count ==2550 [2025-02-28 22:26:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:26:05 - End Time 2025-02-28 22:26:05 [2025-02-28 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579493', 'tblTempUsageDetail_20' ) start [2025-02-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579493', 'tblTempUsageDetail_20' ) end [2025-02-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579493', 'tblTempVendorCDR_20' ) start [2025-02-28 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579493', 'tblTempVendorCDR_20' ) end [2025-02-28 22:26:18] Production.INFO: ProcessCDR(1,14579493,1,1,2) [2025-02-28 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579493', 'tblTempUsageDetail_20' ) start [2025-02-28 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579493', 'tblTempUsageDetail_20' ) end [2025-02-28 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:26:21] Production.INFO: ==2254== Releasing lock... [2025-02-28 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:26:21] Production.INFO: 47.25 MB #Memory Used# [2025-02-28 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:27:05 [end_date_ymd] => 2025-02-28 22:27:05 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:27:05' and `end` < '2025-02-28 22: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-02-28 22:27:17] Production.INFO: count ==2532 [2025-02-28 22:27:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:27:05 - End Time 2025-02-28 22:27:05 [2025-02-28 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579498', 'tblTempUsageDetail_20' ) start [2025-02-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579498', 'tblTempUsageDetail_20' ) end [2025-02-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579498', 'tblTempVendorCDR_20' ) start [2025-02-28 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579498', 'tblTempVendorCDR_20' ) end [2025-02-28 22:27:18] Production.INFO: ProcessCDR(1,14579498,1,1,2) [2025-02-28 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579498', 'tblTempUsageDetail_20' ) start [2025-02-28 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579498', 'tblTempUsageDetail_20' ) end [2025-02-28 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:27:22] Production.INFO: ==2336== Releasing lock... [2025-02-28 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:27:22] Production.INFO: 47 MB #Memory Used# [2025-02-28 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:28:05 [end_date_ymd] => 2025-02-28 22:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:28:05' and `end` < '2025-02-28 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-02-28 22:28:17] Production.INFO: count ==2519 [2025-02-28 22:28:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:28:05 - End Time 2025-02-28 22:28:05 [2025-02-28 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579503', 'tblTempUsageDetail_20' ) start [2025-02-28 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579503', 'tblTempUsageDetail_20' ) end [2025-02-28 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579503', 'tblTempVendorCDR_20' ) start [2025-02-28 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579503', 'tblTempVendorCDR_20' ) end [2025-02-28 22:28:18] Production.INFO: ProcessCDR(1,14579503,1,1,2) [2025-02-28 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579503', 'tblTempUsageDetail_20' ) start [2025-02-28 22:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579503', 'tblTempUsageDetail_20' ) end [2025-02-28 22:28:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:28:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:28:23] Production.INFO: ==2428== Releasing lock... [2025-02-28 22:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:28:23] Production.INFO: 47 MB #Memory Used# [2025-02-28 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:29:05 [end_date_ymd] => 2025-02-28 22:29:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:29:05' and `end` < '2025-02-28 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-02-28 22:29:17] Production.INFO: count ==2509 [2025-02-28 22:29:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:29:05 - End Time 2025-02-28 22:29:05 [2025-02-28 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579508', 'tblTempUsageDetail_20' ) start [2025-02-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579508', 'tblTempUsageDetail_20' ) end [2025-02-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579508', 'tblTempVendorCDR_20' ) start [2025-02-28 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579508', 'tblTempVendorCDR_20' ) end [2025-02-28 22:29:18] Production.INFO: ProcessCDR(1,14579508,1,1,2) [2025-02-28 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579508', 'tblTempUsageDetail_20' ) start [2025-02-28 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579508', 'tblTempUsageDetail_20' ) end [2025-02-28 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:29:21] Production.INFO: ==2508== Releasing lock... [2025-02-28 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:29:21] Production.INFO: 46.75 MB #Memory Used# [2025-02-28 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:30:05 [end_date_ymd] => 2025-02-28 22:30:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:30:05' and `end` < '2025-02-28 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-02-28 22:30:18] Production.INFO: count ==2496 [2025-02-28 22:30:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:30:05 - End Time 2025-02-28 22:30:05 [2025-02-28 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579514', 'tblTempUsageDetail_20' ) start [2025-02-28 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579514', 'tblTempUsageDetail_20' ) end [2025-02-28 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579514', 'tblTempVendorCDR_20' ) start [2025-02-28 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579514', 'tblTempVendorCDR_20' ) end [2025-02-28 22:30:18] Production.INFO: ProcessCDR(1,14579514,1,1,2) [2025-02-28 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579514', 'tblTempUsageDetail_20' ) start [2025-02-28 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579514', 'tblTempUsageDetail_20' ) end [2025-02-28 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:30:23] Production.INFO: ==2581== Releasing lock... [2025-02-28 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:30:23] Production.INFO: 46.75 MB #Memory Used# [2025-02-28 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:31:05 [end_date_ymd] => 2025-02-28 22:31:05 [RateCDR] => 1 ) [2025-02-28 22:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:31:05' and `end` < '2025-02-28 22:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:31:17] Production.INFO: count ==2425 [2025-02-28 22:31:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:31:05 - End Time 2025-02-28 22:31:05 [2025-02-28 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579519', 'tblTempUsageDetail_20' ) start [2025-02-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579519', 'tblTempUsageDetail_20' ) end [2025-02-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579519', 'tblTempVendorCDR_20' ) start [2025-02-28 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579519', 'tblTempVendorCDR_20' ) end [2025-02-28 22:31:18] Production.INFO: ProcessCDR(1,14579519,1,1,2) [2025-02-28 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579519', 'tblTempUsageDetail_20' ) start [2025-02-28 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579519', 'tblTempUsageDetail_20' ) end [2025-02-28 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:31:21] Production.INFO: ==2664== Releasing lock... [2025-02-28 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:31:21] Production.INFO: 46.25 MB #Memory Used# [2025-02-28 22:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:32:06 [end_date_ymd] => 2025-02-28 22:32:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:32:06' and `end` < '2025-02-28 22: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-02-28 22:32:18] Production.INFO: count ==2415 [2025-02-28 22:32:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:32:06 - End Time 2025-02-28 22:32:06 [2025-02-28 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579524', 'tblTempUsageDetail_20' ) start [2025-02-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579524', 'tblTempUsageDetail_20' ) end [2025-02-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579524', 'tblTempVendorCDR_20' ) start [2025-02-28 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579524', 'tblTempVendorCDR_20' ) end [2025-02-28 22:32:19] Production.INFO: ProcessCDR(1,14579524,1,1,2) [2025-02-28 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579524', 'tblTempUsageDetail_20' ) start [2025-02-28 22:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579524', 'tblTempUsageDetail_20' ) end [2025-02-28 22:32:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:32:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:32:24] Production.INFO: ==2747== Releasing lock... [2025-02-28 22:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:32:24] Production.INFO: 46.25 MB #Memory Used# [2025-02-28 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:33:05 [end_date_ymd] => 2025-02-28 22:33:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:33:05' and `end` < '2025-02-28 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-02-28 22:33:17] Production.INFO: count ==2402 [2025-02-28 22:33:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:33:05 - End Time 2025-02-28 22:33:05 [2025-02-28 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579529', 'tblTempUsageDetail_20' ) start [2025-02-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579529', 'tblTempUsageDetail_20' ) end [2025-02-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579529', 'tblTempVendorCDR_20' ) start [2025-02-28 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579529', 'tblTempVendorCDR_20' ) end [2025-02-28 22:33:18] Production.INFO: ProcessCDR(1,14579529,1,1,2) [2025-02-28 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579529', 'tblTempUsageDetail_20' ) start [2025-02-28 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579529', 'tblTempUsageDetail_20' ) end [2025-02-28 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:33:23] Production.INFO: ==2828== Releasing lock... [2025-02-28 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:33:23] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:34:06 [end_date_ymd] => 2025-02-28 22:34:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:34:06' and `end` < '2025-02-28 22: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-02-28 22:34:18] Production.INFO: count ==2402 [2025-02-28 22:34:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:34:06 - End Time 2025-02-28 22:34:06 [2025-02-28 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579534', 'tblTempUsageDetail_20' ) start [2025-02-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579534', 'tblTempUsageDetail_20' ) end [2025-02-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579534', 'tblTempVendorCDR_20' ) start [2025-02-28 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579534', 'tblTempVendorCDR_20' ) end [2025-02-28 22:34:19] Production.INFO: ProcessCDR(1,14579534,1,1,2) [2025-02-28 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579534', 'tblTempUsageDetail_20' ) start [2025-02-28 22:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579534', 'tblTempUsageDetail_20' ) end [2025-02-28 22:34:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:34:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:34:23] Production.INFO: ==2912== Releasing lock... [2025-02-28 22:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:34:23] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:35:05 [end_date_ymd] => 2025-02-28 22:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:35:05' and `end` < '2025-02-28 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-02-28 22:35:17] Production.INFO: count ==2402 [2025-02-28 22:35:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:35:05 - End Time 2025-02-28 22:35:05 [2025-02-28 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579539', 'tblTempUsageDetail_20' ) start [2025-02-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579539', 'tblTempUsageDetail_20' ) end [2025-02-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579539', 'tblTempVendorCDR_20' ) start [2025-02-28 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579539', 'tblTempVendorCDR_20' ) end [2025-02-28 22:35:18] Production.INFO: ProcessCDR(1,14579539,1,1,2) [2025-02-28 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579539', 'tblTempUsageDetail_20' ) start [2025-02-28 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579539', 'tblTempUsageDetail_20' ) end [2025-02-28 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:35:21] Production.INFO: ==2985== Releasing lock... [2025-02-28 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:35:21] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:36:06 [end_date_ymd] => 2025-02-28 22:36:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:36:06' and `end` < '2025-02-28 22: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-02-28 22:36:18] Production.INFO: count ==2396 [2025-02-28 22:36:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:36:06 - End Time 2025-02-28 22:36:06 [2025-02-28 22:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579544', 'tblTempUsageDetail_20' ) start [2025-02-28 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579544', 'tblTempUsageDetail_20' ) end [2025-02-28 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579544', 'tblTempVendorCDR_20' ) start [2025-02-28 22:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579544', 'tblTempVendorCDR_20' ) end [2025-02-28 22:36:19] Production.INFO: ProcessCDR(1,14579544,1,1,2) [2025-02-28 22:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579544', 'tblTempUsageDetail_20' ) start [2025-02-28 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579544', 'tblTempUsageDetail_20' ) end [2025-02-28 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:36:23] Production.INFO: ==3061== Releasing lock... [2025-02-28 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:36:23] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:37:05 [end_date_ymd] => 2025-02-28 22:37:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:37:05' and `end` < '2025-02-28 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-02-28 22:37:17] Production.INFO: count ==2388 [2025-02-28 22:37:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:37:05 - End Time 2025-02-28 22:37:05 [2025-02-28 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579549', 'tblTempUsageDetail_20' ) start [2025-02-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579549', 'tblTempUsageDetail_20' ) end [2025-02-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579549', 'tblTempVendorCDR_20' ) start [2025-02-28 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579549', 'tblTempVendorCDR_20' ) end [2025-02-28 22:37:18] Production.INFO: ProcessCDR(1,14579549,1,1,2) [2025-02-28 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579549', 'tblTempUsageDetail_20' ) start [2025-02-28 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579549', 'tblTempUsageDetail_20' ) end [2025-02-28 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:37:22] Production.INFO: ==3176== Releasing lock... [2025-02-28 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:37:22] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:38:05 [end_date_ymd] => 2025-02-28 22:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:38:05' and `end` < '2025-02-28 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-02-28 22:38:17] Production.INFO: count ==2377 [2025-02-28 22:38:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:38:05 - End Time 2025-02-28 22:38:05 [2025-02-28 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579554', 'tblTempUsageDetail_20' ) start [2025-02-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579554', 'tblTempUsageDetail_20' ) end [2025-02-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579554', 'tblTempVendorCDR_20' ) start [2025-02-28 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579554', 'tblTempVendorCDR_20' ) end [2025-02-28 22:38:18] Production.INFO: ProcessCDR(1,14579554,1,1,2) [2025-02-28 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579554', 'tblTempUsageDetail_20' ) start [2025-02-28 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579554', 'tblTempUsageDetail_20' ) end [2025-02-28 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:38:21] Production.INFO: ==3258== Releasing lock... [2025-02-28 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:38:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:39:04 [end_date_ymd] => 2025-02-28 22:39:04 [RateCDR] => 1 ) [2025-02-28 22:39:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:39:04' and `end` < '2025-02-28 22:39:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:39:17] Production.INFO: count ==2372 [2025-02-28 22:39:17] Production.ERROR: pbx CDR StartTime 2025-02-28 19:39:04 - End Time 2025-02-28 22:39:04 [2025-02-28 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579559', 'tblTempUsageDetail_20' ) start [2025-02-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579559', 'tblTempUsageDetail_20' ) end [2025-02-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579559', 'tblTempVendorCDR_20' ) start [2025-02-28 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579559', 'tblTempVendorCDR_20' ) end [2025-02-28 22:39:17] Production.INFO: ProcessCDR(1,14579559,1,1,2) [2025-02-28 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579559', 'tblTempUsageDetail_20' ) start [2025-02-28 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579559', 'tblTempUsageDetail_20' ) end [2025-02-28 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:39:21] Production.INFO: ==3337== Releasing lock... [2025-02-28 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:39:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 22:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:40:06 [end_date_ymd] => 2025-02-28 22:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:40:06' and `end` < '2025-02-28 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-02-28 22:40:18] Production.INFO: count ==2361 [2025-02-28 22:40:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:40:06 - End Time 2025-02-28 22:40:06 [2025-02-28 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579565', 'tblTempUsageDetail_20' ) start [2025-02-28 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579565', 'tblTempUsageDetail_20' ) end [2025-02-28 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579565', 'tblTempVendorCDR_20' ) start [2025-02-28 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579565', 'tblTempVendorCDR_20' ) end [2025-02-28 22:40:19] Production.INFO: ProcessCDR(1,14579565,1,1,2) [2025-02-28 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579565', 'tblTempUsageDetail_20' ) start [2025-02-28 22:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579565', 'tblTempUsageDetail_20' ) end [2025-02-28 22:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:40:22] Production.INFO: ==3426== Releasing lock... [2025-02-28 22:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:40:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:41:05 [end_date_ymd] => 2025-02-28 22:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:41:05' and `end` < '2025-02-28 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-02-28 22:41:17] Production.INFO: count ==2302 [2025-02-28 22:41:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:41:05 - End Time 2025-02-28 22:41:05 [2025-02-28 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579570', 'tblTempUsageDetail_20' ) start [2025-02-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579570', 'tblTempUsageDetail_20' ) end [2025-02-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579570', 'tblTempVendorCDR_20' ) start [2025-02-28 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579570', 'tblTempVendorCDR_20' ) end [2025-02-28 22:41:18] Production.INFO: ProcessCDR(1,14579570,1,1,2) [2025-02-28 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579570', 'tblTempUsageDetail_20' ) start [2025-02-28 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579570', 'tblTempUsageDetail_20' ) end [2025-02-28 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:41:21] Production.INFO: ==3507== Releasing lock... [2025-02-28 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:41:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:42:05 [end_date_ymd] => 2025-02-28 22:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:42:05' and `end` < '2025-02-28 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-02-28 22:42:18] Production.INFO: count ==2293 [2025-02-28 22:42:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:42:05 - End Time 2025-02-28 22:42:05 [2025-02-28 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579575', 'tblTempUsageDetail_20' ) start [2025-02-28 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579575', 'tblTempUsageDetail_20' ) end [2025-02-28 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579575', 'tblTempVendorCDR_20' ) start [2025-02-28 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579575', 'tblTempVendorCDR_20' ) end [2025-02-28 22:42:18] Production.INFO: ProcessCDR(1,14579575,1,1,2) [2025-02-28 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579575', 'tblTempUsageDetail_20' ) start [2025-02-28 22:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579575', 'tblTempUsageDetail_20' ) end [2025-02-28 22:42:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:42:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:42:22] Production.INFO: ==3598== Releasing lock... [2025-02-28 22:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:42:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:43:05 [end_date_ymd] => 2025-02-28 22:43:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:43:05' and `end` < '2025-02-28 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-02-28 22:43:17] Production.INFO: count ==2289 [2025-02-28 22:43:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:43:05 - End Time 2025-02-28 22:43:05 [2025-02-28 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579580', 'tblTempUsageDetail_20' ) start [2025-02-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579580', 'tblTempUsageDetail_20' ) end [2025-02-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579580', 'tblTempVendorCDR_20' ) start [2025-02-28 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579580', 'tblTempVendorCDR_20' ) end [2025-02-28 22:43:18] Production.INFO: ProcessCDR(1,14579580,1,1,2) [2025-02-28 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579580', 'tblTempUsageDetail_20' ) start [2025-02-28 22:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579580', 'tblTempUsageDetail_20' ) end [2025-02-28 22:43:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:43:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:43:22] Production.INFO: ==3679== Releasing lock... [2025-02-28 22:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:43:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:44:05 [end_date_ymd] => 2025-02-28 22:44:05 [RateCDR] => 1 ) [2025-02-28 22:44:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:44:05' and `end` < '2025-02-28 22:44:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:44:17] Production.INFO: count ==2287 [2025-02-28 22:44:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:44:05 - End Time 2025-02-28 22:44:05 [2025-02-28 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579585', 'tblTempUsageDetail_20' ) start [2025-02-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579585', 'tblTempUsageDetail_20' ) end [2025-02-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579585', 'tblTempVendorCDR_20' ) start [2025-02-28 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579585', 'tblTempVendorCDR_20' ) end [2025-02-28 22:44:18] Production.INFO: ProcessCDR(1,14579585,1,1,2) [2025-02-28 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579585', 'tblTempUsageDetail_20' ) start [2025-02-28 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579585', 'tblTempUsageDetail_20' ) end [2025-02-28 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:44:22] Production.INFO: ==3760== Releasing lock... [2025-02-28 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:44:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:45:05 [end_date_ymd] => 2025-02-28 22:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:45:05' and `end` < '2025-02-28 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-02-28 22:45:18] Production.INFO: count ==2290 [2025-02-28 22:45:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:45:05 - End Time 2025-02-28 22:45:05 [2025-02-28 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579590', 'tblTempUsageDetail_20' ) start [2025-02-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579590', 'tblTempUsageDetail_20' ) end [2025-02-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579590', 'tblTempVendorCDR_20' ) start [2025-02-28 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579590', 'tblTempVendorCDR_20' ) end [2025-02-28 22:45:18] Production.INFO: ProcessCDR(1,14579590,1,1,2) [2025-02-28 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579590', 'tblTempUsageDetail_20' ) start [2025-02-28 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579590', 'tblTempUsageDetail_20' ) end [2025-02-28 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:45:23] Production.INFO: ==3860== Releasing lock... [2025-02-28 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:45:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:46:06 [end_date_ymd] => 2025-02-28 22:46:06 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:46:06' and `end` < '2025-02-28 22: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-02-28 22:46:18] Production.INFO: count ==2294 [2025-02-28 22:46:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:46:06 - End Time 2025-02-28 22:46:06 [2025-02-28 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579595', 'tblTempUsageDetail_20' ) start [2025-02-28 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579595', 'tblTempUsageDetail_20' ) end [2025-02-28 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579595', 'tblTempVendorCDR_20' ) start [2025-02-28 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579595', 'tblTempVendorCDR_20' ) end [2025-02-28 22:46:19] Production.INFO: ProcessCDR(1,14579595,1,1,2) [2025-02-28 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579595', 'tblTempUsageDetail_20' ) start [2025-02-28 22:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579595', 'tblTempUsageDetail_20' ) end [2025-02-28 22:46:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:46:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:46:24] Production.INFO: ==3949== Releasing lock... [2025-02-28 22:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:46:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:47:05 [end_date_ymd] => 2025-02-28 22:47:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:47:05' and `end` < '2025-02-28 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-02-28 22:47:17] Production.INFO: count ==2285 [2025-02-28 22:47:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:47:05 - End Time 2025-02-28 22:47:05 [2025-02-28 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579596', 'tblTempUsageDetail_20' ) start [2025-02-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579596', 'tblTempUsageDetail_20' ) end [2025-02-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579596', 'tblTempVendorCDR_20' ) start [2025-02-28 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579596', 'tblTempVendorCDR_20' ) end [2025-02-28 22:47:18] Production.INFO: ProcessCDR(1,14579596,1,1,2) [2025-02-28 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579596', 'tblTempUsageDetail_20' ) start [2025-02-28 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579596', 'tblTempUsageDetail_20' ) end [2025-02-28 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:47:23] Production.INFO: ==4042== Releasing lock... [2025-02-28 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:47:23] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:48:05 [end_date_ymd] => 2025-02-28 22:48:05 [RateCDR] => 1 ) [2025-02-28 22:48:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:48:05' and `end` < '2025-02-28 22:48:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:48:17] Production.INFO: count ==2283 [2025-02-28 22:48:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:48:05 - End Time 2025-02-28 22:48:05 [2025-02-28 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579605', 'tblTempUsageDetail_20' ) start [2025-02-28 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579605', 'tblTempUsageDetail_20' ) end [2025-02-28 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579605', 'tblTempVendorCDR_20' ) start [2025-02-28 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579605', 'tblTempVendorCDR_20' ) end [2025-02-28 22:48:18] Production.INFO: ProcessCDR(1,14579605,1,1,2) [2025-02-28 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579605', 'tblTempUsageDetail_20' ) start [2025-02-28 22:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579605', 'tblTempUsageDetail_20' ) end [2025-02-28 22:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:48:22] Production.INFO: ==4125== Releasing lock... [2025-02-28 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:48:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:49:05 [end_date_ymd] => 2025-02-28 22:49:05 [RateCDR] => 1 ) [2025-02-28 22:49:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:49:05' and `end` < '2025-02-28 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-02-28 22:49:18] Production.INFO: count ==2395 [2025-02-28 22:49:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:49:05 - End Time 2025-02-28 22:49:05 [2025-02-28 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579610', 'tblTempUsageDetail_20' ) start [2025-02-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579610', 'tblTempUsageDetail_20' ) end [2025-02-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579610', 'tblTempVendorCDR_20' ) start [2025-02-28 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579610', 'tblTempVendorCDR_20' ) end [2025-02-28 22:49:18] Production.INFO: ProcessCDR(1,14579610,1,1,2) [2025-02-28 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579610', 'tblTempUsageDetail_20' ) start [2025-02-28 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579610', 'tblTempUsageDetail_20' ) end [2025-02-28 22:49:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:49:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:49:22] Production.INFO: ==4219== Releasing lock... [2025-02-28 22:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:49:22] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:50:06 [end_date_ymd] => 2025-02-28 22:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:50:06' and `end` < '2025-02-28 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-02-28 22:50:18] Production.INFO: count ==2395 [2025-02-28 22:50:19] Production.ERROR: pbx CDR StartTime 2025-02-28 19:50:06 - End Time 2025-02-28 22:50:06 [2025-02-28 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579616', 'tblTempUsageDetail_20' ) start [2025-02-28 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579616', 'tblTempUsageDetail_20' ) end [2025-02-28 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579616', 'tblTempVendorCDR_20' ) start [2025-02-28 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579616', 'tblTempVendorCDR_20' ) end [2025-02-28 22:50:19] Production.INFO: ProcessCDR(1,14579616,1,1,2) [2025-02-28 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579616', 'tblTempUsageDetail_20' ) start [2025-02-28 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579616', 'tblTempUsageDetail_20' ) end [2025-02-28 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:50:22] Production.INFO: ==4299== Releasing lock... [2025-02-28 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:50:22] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:51:05 [end_date_ymd] => 2025-02-28 22:51:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:51:05' and `end` < '2025-02-28 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-02-28 22:51:17] Production.INFO: count ==2393 [2025-02-28 22:51:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:51:05 - End Time 2025-02-28 22:51:05 [2025-02-28 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579621', 'tblTempUsageDetail_20' ) start [2025-02-28 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579621', 'tblTempUsageDetail_20' ) end [2025-02-28 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579621', 'tblTempVendorCDR_20' ) start [2025-02-28 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579621', 'tblTempVendorCDR_20' ) end [2025-02-28 22:51:18] Production.INFO: ProcessCDR(1,14579621,1,1,2) [2025-02-28 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579621', 'tblTempUsageDetail_20' ) start [2025-02-28 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579621', 'tblTempUsageDetail_20' ) end [2025-02-28 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:51:21] Production.INFO: ==4402== Releasing lock... [2025-02-28 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:51:21] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:52:05 [end_date_ymd] => 2025-02-28 22:52:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:52:05' and `end` < '2025-02-28 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-02-28 22:52:18] Production.INFO: count ==2393 [2025-02-28 22:52:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:52:05 - End Time 2025-02-28 22:52:05 [2025-02-28 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579626', 'tblTempUsageDetail_20' ) start [2025-02-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579626', 'tblTempUsageDetail_20' ) end [2025-02-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579626', 'tblTempVendorCDR_20' ) start [2025-02-28 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579626', 'tblTempVendorCDR_20' ) end [2025-02-28 22:52:18] Production.INFO: ProcessCDR(1,14579626,1,1,2) [2025-02-28 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579626', 'tblTempUsageDetail_20' ) start [2025-02-28 22:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579626', 'tblTempUsageDetail_20' ) end [2025-02-28 22:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:52:23] Production.INFO: ==4537== Releasing lock... [2025-02-28 22:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:52:23] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:53:05 [end_date_ymd] => 2025-02-28 22:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:53:05' and `end` < '2025-02-28 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-02-28 22:53:17] Production.INFO: count ==2390 [2025-02-28 22:53:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:53:05 - End Time 2025-02-28 22:53:05 [2025-02-28 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579631', 'tblTempUsageDetail_20' ) start [2025-02-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579631', 'tblTempUsageDetail_20' ) end [2025-02-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579631', 'tblTempVendorCDR_20' ) start [2025-02-28 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579631', 'tblTempVendorCDR_20' ) end [2025-02-28 22:53:18] Production.INFO: ProcessCDR(1,14579631,1,1,2) [2025-02-28 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579631', 'tblTempUsageDetail_20' ) start [2025-02-28 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579631', 'tblTempUsageDetail_20' ) end [2025-02-28 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:53:21] Production.INFO: ==4643== Releasing lock... [2025-02-28 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:53:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:54:05 [end_date_ymd] => 2025-02-28 22:54:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:54:05' and `end` < '2025-02-28 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-02-28 22:54:17] Production.INFO: count ==2388 [2025-02-28 22:54:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:54:05 - End Time 2025-02-28 22:54:05 [2025-02-28 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579636', 'tblTempUsageDetail_20' ) start [2025-02-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579636', 'tblTempUsageDetail_20' ) end [2025-02-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579636', 'tblTempVendorCDR_20' ) start [2025-02-28 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579636', 'tblTempVendorCDR_20' ) end [2025-02-28 22:54:18] Production.INFO: ProcessCDR(1,14579636,1,1,2) [2025-02-28 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579636', 'tblTempUsageDetail_20' ) start [2025-02-28 22:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579636', 'tblTempUsageDetail_20' ) end [2025-02-28 22:54:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:54:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:54:22] Production.INFO: ==4730== Releasing lock... [2025-02-28 22:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:54:22] Production.INFO: 46 MB #Memory Used# [2025-02-28 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:55:05 [end_date_ymd] => 2025-02-28 22:55:05 [RateCDR] => 1 ) [2025-02-28 22:55:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 19:55:05' and `end` < '2025-02-28 22:55:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 22:55:17] Production.INFO: count ==2372 [2025-02-28 22:55:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:55:05 - End Time 2025-02-28 22:55:05 [2025-02-28 22:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579641', 'tblTempUsageDetail_20' ) start [2025-02-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579641', 'tblTempUsageDetail_20' ) end [2025-02-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579641', 'tblTempVendorCDR_20' ) start [2025-02-28 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579641', 'tblTempVendorCDR_20' ) end [2025-02-28 22:55:18] Production.INFO: ProcessCDR(1,14579641,1,1,2) [2025-02-28 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579641', 'tblTempUsageDetail_20' ) start [2025-02-28 22:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579641', 'tblTempUsageDetail_20' ) end [2025-02-28 22:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:55:23] Production.INFO: ==4816== Releasing lock... [2025-02-28 22:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:55:23] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:56:05 [end_date_ymd] => 2025-02-28 22:56:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:56:05' and `end` < '2025-02-28 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-02-28 22:56:17] Production.INFO: count ==2367 [2025-02-28 22:56:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:56:05 - End Time 2025-02-28 22:56:05 [2025-02-28 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579646', 'tblTempUsageDetail_20' ) start [2025-02-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579646', 'tblTempUsageDetail_20' ) end [2025-02-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579646', 'tblTempVendorCDR_20' ) start [2025-02-28 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579646', 'tblTempVendorCDR_20' ) end [2025-02-28 22:56:18] Production.INFO: ProcessCDR(1,14579646,1,1,2) [2025-02-28 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579646', 'tblTempUsageDetail_20' ) start [2025-02-28 22:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579646', 'tblTempUsageDetail_20' ) end [2025-02-28 22:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:56:22] Production.INFO: ==4909== Releasing lock... [2025-02-28 22:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:56:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:57:05 [end_date_ymd] => 2025-02-28 22:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:57:05' and `end` < '2025-02-28 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-02-28 22:57:18] Production.INFO: count ==2351 [2025-02-28 22:57:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:57:05 - End Time 2025-02-28 22:57:05 [2025-02-28 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579651', 'tblTempUsageDetail_20' ) start [2025-02-28 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579651', 'tblTempUsageDetail_20' ) end [2025-02-28 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579651', 'tblTempVendorCDR_20' ) start [2025-02-28 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579651', 'tblTempVendorCDR_20' ) end [2025-02-28 22:57:18] Production.INFO: ProcessCDR(1,14579651,1,1,2) [2025-02-28 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579651', 'tblTempUsageDetail_20' ) start [2025-02-28 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579651', 'tblTempUsageDetail_20' ) end [2025-02-28 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:57:22] Production.INFO: ==5001== Releasing lock... [2025-02-28 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:57:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:58:05 [end_date_ymd] => 2025-02-28 22:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 19:58:05' and `end` < '2025-02-28 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-02-28 22:58:18] Production.INFO: count ==2340 [2025-02-28 22:58:18] Production.ERROR: pbx CDR StartTime 2025-02-28 19:58:05 - End Time 2025-02-28 22:58:05 [2025-02-28 22:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579656', 'tblTempUsageDetail_20' ) start [2025-02-28 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579656', 'tblTempUsageDetail_20' ) end [2025-02-28 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579656', 'tblTempVendorCDR_20' ) start [2025-02-28 22:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579656', 'tblTempVendorCDR_20' ) end [2025-02-28 22:58:18] Production.INFO: ProcessCDR(1,14579656,1,1,2) [2025-02-28 22:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579656', 'tblTempUsageDetail_20' ) start [2025-02-28 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579656', 'tblTempUsageDetail_20' ) end [2025-02-28 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:58:21] Production.INFO: ==5109== Releasing lock... [2025-02-28 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:58:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-28 22:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 19:59:04 [end_date_ymd] => 2025-02-28 22:59:04 [RateCDR] => 1 ) [2025-02-28 22: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-02-28 19:59:04' and `end` < '2025-02-28 22: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-02-28 22:59:17] Production.INFO: count ==2331 [2025-02-28 22:59:17] Production.ERROR: pbx CDR StartTime 2025-02-28 19:59:04 - End Time 2025-02-28 22:59:04 [2025-02-28 22:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579661', 'tblTempUsageDetail_20' ) start [2025-02-28 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579661', 'tblTempUsageDetail_20' ) end [2025-02-28 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579661', 'tblTempVendorCDR_20' ) start [2025-02-28 22:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579661', 'tblTempVendorCDR_20' ) end [2025-02-28 22:59:17] Production.INFO: ProcessCDR(1,14579661,1,1,2) [2025-02-28 22:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 22:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579661', 'tblTempUsageDetail_20' ) start [2025-02-28 22:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579661', 'tblTempUsageDetail_20' ) end [2025-02-28 22:59:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 22:59:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 22:59:20] Production.INFO: ==5202== Releasing lock... [2025-02-28 22:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 22:59:20] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 23:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:00:06 [end_date_ymd] => 2025-02-28 23:00:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:00:06' and `end` < '2025-02-28 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-02-28 23:00:19] Production.INFO: count ==2321 [2025-02-28 23:00:19] Production.ERROR: pbx CDR StartTime 2025-02-28 20:00:06 - End Time 2025-02-28 23:00:06 [2025-02-28 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579667', 'tblTempUsageDetail_20' ) start [2025-02-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579667', 'tblTempUsageDetail_20' ) end [2025-02-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579667', 'tblTempVendorCDR_20' ) start [2025-02-28 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579667', 'tblTempVendorCDR_20' ) end [2025-02-28 23:00:19] Production.INFO: ProcessCDR(1,14579667,1,1,2) [2025-02-28 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579667', 'tblTempUsageDetail_20' ) start [2025-02-28 23:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579667', 'tblTempUsageDetail_20' ) end [2025-02-28 23:00:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:00:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:00:23] Production.INFO: ==5304== Releasing lock... [2025-02-28 23:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:00:23] Production.INFO: 45.5 MB #Memory Used# [2025-02-28 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:01:05 [end_date_ymd] => 2025-02-28 23:01:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:01:05' and `end` < '2025-02-28 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-02-28 23:01:17] Production.INFO: count ==2290 [2025-02-28 23:01:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:01:05 - End Time 2025-02-28 23:01:05 [2025-02-28 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579672', 'tblTempUsageDetail_20' ) start [2025-02-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579672', 'tblTempUsageDetail_20' ) end [2025-02-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579672', 'tblTempVendorCDR_20' ) start [2025-02-28 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579672', 'tblTempVendorCDR_20' ) end [2025-02-28 23:01:18] Production.INFO: ProcessCDR(1,14579672,1,1,2) [2025-02-28 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579672', 'tblTempUsageDetail_20' ) start [2025-02-28 23:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579672', 'tblTempUsageDetail_20' ) end [2025-02-28 23:01:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:01:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:01:21] Production.INFO: ==5414== Releasing lock... [2025-02-28 23:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:01:21] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:02:06 [end_date_ymd] => 2025-02-28 23:02:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:02:06' and `end` < '2025-02-28 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-02-28 23:02:18] Production.INFO: count ==2282 [2025-02-28 23:02:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:02:06 - End Time 2025-02-28 23:02:06 [2025-02-28 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579677', 'tblTempUsageDetail_20' ) start [2025-02-28 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579677', 'tblTempUsageDetail_20' ) end [2025-02-28 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579677', 'tblTempVendorCDR_20' ) start [2025-02-28 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579677', 'tblTempVendorCDR_20' ) end [2025-02-28 23:02:19] Production.INFO: ProcessCDR(1,14579677,1,1,2) [2025-02-28 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579677', 'tblTempUsageDetail_20' ) start [2025-02-28 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579677', 'tblTempUsageDetail_20' ) end [2025-02-28 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:02:22] Production.INFO: ==5590== Releasing lock... [2025-02-28 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:02:22] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:03:05 [end_date_ymd] => 2025-02-28 23:03:05 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:03:05' and `end` < '2025-02-28 23: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-02-28 23:03:18] Production.INFO: count ==2266 [2025-02-28 23:03:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:03:05 - End Time 2025-02-28 23:03:05 [2025-02-28 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579682', 'tblTempUsageDetail_20' ) start [2025-02-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579682', 'tblTempUsageDetail_20' ) end [2025-02-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579682', 'tblTempVendorCDR_20' ) start [2025-02-28 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579682', 'tblTempVendorCDR_20' ) end [2025-02-28 23:03:18] Production.INFO: ProcessCDR(1,14579682,1,1,2) [2025-02-28 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579682', 'tblTempUsageDetail_20' ) start [2025-02-28 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579682', 'tblTempUsageDetail_20' ) end [2025-02-28 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:03:22] Production.INFO: ==5689== Releasing lock... [2025-02-28 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:03:22] Production.INFO: 45 MB #Memory Used# [2025-02-28 23:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:04:06 [end_date_ymd] => 2025-02-28 23:04:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:04:06' and `end` < '2025-02-28 23: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-02-28 23:04:18] Production.INFO: count ==2240 [2025-02-28 23:04:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:04:06 - End Time 2025-02-28 23:04:06 [2025-02-28 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579687', 'tblTempUsageDetail_20' ) start [2025-02-28 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579687', 'tblTempUsageDetail_20' ) end [2025-02-28 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579687', 'tblTempVendorCDR_20' ) start [2025-02-28 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579687', 'tblTempVendorCDR_20' ) end [2025-02-28 23:04:18] Production.INFO: ProcessCDR(1,14579687,1,1,2) [2025-02-28 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579687', 'tblTempUsageDetail_20' ) start [2025-02-28 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579687', 'tblTempUsageDetail_20' ) end [2025-02-28 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:04:23] Production.INFO: ==5791== Releasing lock... [2025-02-28 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:04:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-28 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:05:05 [end_date_ymd] => 2025-02-28 23:05:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:05:05' and `end` < '2025-02-28 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-02-28 23:05:17] Production.INFO: count ==2361 [2025-02-28 23:05:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:05:05 - End Time 2025-02-28 23:05:05 [2025-02-28 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579692', 'tblTempUsageDetail_20' ) start [2025-02-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579692', 'tblTempUsageDetail_20' ) end [2025-02-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579692', 'tblTempVendorCDR_20' ) start [2025-02-28 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579692', 'tblTempVendorCDR_20' ) end [2025-02-28 23:05:18] Production.INFO: ProcessCDR(1,14579692,1,1,2) [2025-02-28 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579692', 'tblTempUsageDetail_20' ) start [2025-02-28 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579692', 'tblTempUsageDetail_20' ) end [2025-02-28 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:05:21] Production.INFO: ==5966== Releasing lock... [2025-02-28 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:05:21] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 23:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:06:06 [end_date_ymd] => 2025-02-28 23:06:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:06:06' and `end` < '2025-02-28 23: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-02-28 23:06:18] Production.INFO: count ==2352 [2025-02-28 23:06:19] Production.ERROR: pbx CDR StartTime 2025-02-28 20:06:06 - End Time 2025-02-28 23:06:06 [2025-02-28 23:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579697', 'tblTempUsageDetail_20' ) start [2025-02-28 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579697', 'tblTempUsageDetail_20' ) end [2025-02-28 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579697', 'tblTempVendorCDR_20' ) start [2025-02-28 23:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579697', 'tblTempVendorCDR_20' ) end [2025-02-28 23:06:19] Production.INFO: ProcessCDR(1,14579697,1,1,2) [2025-02-28 23:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579697', 'tblTempUsageDetail_20' ) start [2025-02-28 23:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579697', 'tblTempUsageDetail_20' ) end [2025-02-28 23:06:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:06:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:06:22] Production.INFO: ==6066== Releasing lock... [2025-02-28 23:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:06:22] Production.INFO: 45.75 MB #Memory Used# [2025-02-28 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:07:05 [end_date_ymd] => 2025-02-28 23:07:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:07:05' and `end` < '2025-02-28 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-02-28 23:07:17] Production.INFO: count ==2342 [2025-02-28 23:07:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:07:05 - End Time 2025-02-28 23:07:05 [2025-02-28 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579702', 'tblTempUsageDetail_20' ) start [2025-02-28 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579702', 'tblTempUsageDetail_20' ) end [2025-02-28 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579702', 'tblTempVendorCDR_20' ) start [2025-02-28 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579702', 'tblTempVendorCDR_20' ) end [2025-02-28 23:07:18] Production.INFO: ProcessCDR(1,14579702,1,1,2) [2025-02-28 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579702', 'tblTempUsageDetail_20' ) start [2025-02-28 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579702', 'tblTempUsageDetail_20' ) end [2025-02-28 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:07:21] Production.INFO: ==6155== Releasing lock... [2025-02-28 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:07:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-28 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:08:05 [end_date_ymd] => 2025-02-28 23:08:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:08:05' and `end` < '2025-02-28 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-02-28 23:08:17] Production.INFO: count ==2334 [2025-02-28 23:08:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:08:05 - End Time 2025-02-28 23:08:05 [2025-02-28 23:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579707', 'tblTempUsageDetail_20' ) start [2025-02-28 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579707', 'tblTempUsageDetail_20' ) end [2025-02-28 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579707', 'tblTempVendorCDR_20' ) start [2025-02-28 23:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579707', 'tblTempVendorCDR_20' ) end [2025-02-28 23:08:17] Production.INFO: ProcessCDR(1,14579707,1,1,2) [2025-02-28 23:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579707', 'tblTempUsageDetail_20' ) start [2025-02-28 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579707', 'tblTempUsageDetail_20' ) end [2025-02-28 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:08:21] Production.INFO: ==6324== Releasing lock... [2025-02-28 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:08:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-28 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:09:05 [end_date_ymd] => 2025-02-28 23:09:05 [RateCDR] => 1 ) [2025-02-28 23:09:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:09:05' and `end` < '2025-02-28 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-02-28 23:09:17] Production.INFO: count ==2315 [2025-02-28 23:09:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:09:05 - End Time 2025-02-28 23:09:05 [2025-02-28 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579712', 'tblTempUsageDetail_20' ) start [2025-02-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579712', 'tblTempUsageDetail_20' ) end [2025-02-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579712', 'tblTempVendorCDR_20' ) start [2025-02-28 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579712', 'tblTempVendorCDR_20' ) end [2025-02-28 23:09:18] Production.INFO: ProcessCDR(1,14579712,1,1,2) [2025-02-28 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579712', 'tblTempUsageDetail_20' ) start [2025-02-28 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579712', 'tblTempUsageDetail_20' ) end [2025-02-28 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:09:21] Production.INFO: ==6451== Releasing lock... [2025-02-28 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:09:21] Production.INFO: 45.5 MB #Memory Used# [2025-02-28 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:10:06 [end_date_ymd] => 2025-02-28 23:10:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:10:06' and `end` < '2025-02-28 23: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-02-28 23:10:18] Production.INFO: count ==2294 [2025-02-28 23:10:19] Production.ERROR: pbx CDR StartTime 2025-02-28 20:10:06 - End Time 2025-02-28 23:10:06 [2025-02-28 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579718', 'tblTempUsageDetail_20' ) start [2025-02-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579718', 'tblTempUsageDetail_20' ) end [2025-02-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579718', 'tblTempVendorCDR_20' ) start [2025-02-28 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579718', 'tblTempVendorCDR_20' ) end [2025-02-28 23:10:19] Production.INFO: ProcessCDR(1,14579718,1,1,2) [2025-02-28 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579718', 'tblTempUsageDetail_20' ) start [2025-02-28 23:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579718', 'tblTempUsageDetail_20' ) end [2025-02-28 23:10:24] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:10:24] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:10:24] Production.INFO: ==6548== Releasing lock... [2025-02-28 23:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:10:24] Production.INFO: 45.25 MB #Memory Used# [2025-02-28 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:11:04 [end_date_ymd] => 2025-02-28 23:11:04 [RateCDR] => 1 ) [2025-02-28 23:11:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:11:04' and `end` < '2025-02-28 23:11:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:11:17] Production.INFO: count ==2221 [2025-02-28 23:11:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:11:04 - End Time 2025-02-28 23:11:04 [2025-02-28 23:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579723', 'tblTempUsageDetail_20' ) start [2025-02-28 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579723', 'tblTempUsageDetail_20' ) end [2025-02-28 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579723', 'tblTempVendorCDR_20' ) start [2025-02-28 23:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579723', 'tblTempVendorCDR_20' ) end [2025-02-28 23:11:17] Production.INFO: ProcessCDR(1,14579723,1,1,2) [2025-02-28 23:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579723', 'tblTempUsageDetail_20' ) start [2025-02-28 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579723', 'tblTempUsageDetail_20' ) end [2025-02-28 23:11:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:11:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:11:21] Production.INFO: ==6638== Releasing lock... [2025-02-28 23:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:11:21] Production.INFO: 45 MB #Memory Used# [2025-02-28 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:12:05 [end_date_ymd] => 2025-02-28 23:12:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:12:05' and `end` < '2025-02-28 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-02-28 23:12:18] Production.INFO: count ==2206 [2025-02-28 23:12:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:12:05 - End Time 2025-02-28 23:12:05 [2025-02-28 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579728', 'tblTempUsageDetail_20' ) start [2025-02-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579728', 'tblTempUsageDetail_20' ) end [2025-02-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579728', 'tblTempVendorCDR_20' ) start [2025-02-28 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579728', 'tblTempVendorCDR_20' ) end [2025-02-28 23:12:18] Production.INFO: ProcessCDR(1,14579728,1,1,2) [2025-02-28 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579728', 'tblTempUsageDetail_20' ) start [2025-02-28 23:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579728', 'tblTempUsageDetail_20' ) end [2025-02-28 23:12:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:12:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:12:22] Production.INFO: ==6807== Releasing lock... [2025-02-28 23:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:12:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-28 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:13:05 [end_date_ymd] => 2025-02-28 23:13:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:13:05' and `end` < '2025-02-28 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-02-28 23:13:17] Production.INFO: count ==2192 [2025-02-28 23:13:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:13:05 - End Time 2025-02-28 23:13:05 [2025-02-28 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579733', 'tblTempUsageDetail_20' ) start [2025-02-28 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579733', 'tblTempUsageDetail_20' ) end [2025-02-28 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579733', 'tblTempVendorCDR_20' ) start [2025-02-28 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579733', 'tblTempVendorCDR_20' ) end [2025-02-28 23:13:18] Production.INFO: ProcessCDR(1,14579733,1,1,2) [2025-02-28 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579733', 'tblTempUsageDetail_20' ) start [2025-02-28 23:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579733', 'tblTempUsageDetail_20' ) end [2025-02-28 23:13:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:13:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:13:23] Production.INFO: ==6894== Releasing lock... [2025-02-28 23:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:13:23] Production.INFO: 44.75 MB #Memory Used# [2025-02-28 23:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:14:06 [end_date_ymd] => 2025-02-28 23:14:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:14:06' and `end` < '2025-02-28 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-02-28 23:14:18] Production.INFO: count ==2181 [2025-02-28 23:14:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:14:06 - End Time 2025-02-28 23:14:06 [2025-02-28 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579738', 'tblTempUsageDetail_20' ) start [2025-02-28 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579738', 'tblTempUsageDetail_20' ) end [2025-02-28 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579738', 'tblTempVendorCDR_20' ) start [2025-02-28 23:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579738', 'tblTempVendorCDR_20' ) end [2025-02-28 23:14:19] Production.INFO: ProcessCDR(1,14579738,1,1,2) [2025-02-28 23:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579738', 'tblTempUsageDetail_20' ) start [2025-02-28 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579738', 'tblTempUsageDetail_20' ) end [2025-02-28 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:14:22] Production.INFO: ==6987== Releasing lock... [2025-02-28 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:14:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-28 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:15:06 [end_date_ymd] => 2025-02-28 23:15:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:15:06' and `end` < '2025-02-28 23: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-02-28 23:15:18] Production.INFO: count ==2170 [2025-02-28 23:15:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:15:06 - End Time 2025-02-28 23:15:06 [2025-02-28 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579743', 'tblTempUsageDetail_20' ) start [2025-02-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579743', 'tblTempUsageDetail_20' ) end [2025-02-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579743', 'tblTempVendorCDR_20' ) start [2025-02-28 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579743', 'tblTempVendorCDR_20' ) end [2025-02-28 23:15:18] Production.INFO: ProcessCDR(1,14579743,1,1,2) [2025-02-28 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579743', 'tblTempUsageDetail_20' ) start [2025-02-28 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579743', 'tblTempUsageDetail_20' ) end [2025-02-28 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:15:21] Production.INFO: ==7152== Releasing lock... [2025-02-28 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:15:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:16:05 [end_date_ymd] => 2025-02-28 23:16:05 [RateCDR] => 1 ) [2025-02-28 23:16:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:16:05' and `end` < '2025-02-28 23:16:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:16:17] Production.INFO: count ==2161 [2025-02-28 23:16:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:16:05 - End Time 2025-02-28 23:16:05 [2025-02-28 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579748', 'tblTempUsageDetail_20' ) start [2025-02-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579748', 'tblTempUsageDetail_20' ) end [2025-02-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579748', 'tblTempVendorCDR_20' ) start [2025-02-28 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579748', 'tblTempVendorCDR_20' ) end [2025-02-28 23:16:18] Production.INFO: ProcessCDR(1,14579748,1,1,2) [2025-02-28 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579748', 'tblTempUsageDetail_20' ) start [2025-02-28 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579748', 'tblTempUsageDetail_20' ) end [2025-02-28 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:16:21] Production.INFO: ==7249== Releasing lock... [2025-02-28 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:16:21] Production.INFO: 44.5 MB #Memory Used# [2025-02-28 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:17:05 [end_date_ymd] => 2025-02-28 23:17:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:17:05' and `end` < '2025-02-28 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-02-28 23:17:17] Production.INFO: count ==2161 [2025-02-28 23:17:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:17:05 - End Time 2025-02-28 23:17:05 [2025-02-28 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579753', 'tblTempUsageDetail_20' ) start [2025-02-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579753', 'tblTempUsageDetail_20' ) end [2025-02-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579753', 'tblTempVendorCDR_20' ) start [2025-02-28 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579753', 'tblTempVendorCDR_20' ) end [2025-02-28 23:17:18] Production.INFO: ProcessCDR(1,14579753,1,1,2) [2025-02-28 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579753', 'tblTempUsageDetail_20' ) start [2025-02-28 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579753', 'tblTempUsageDetail_20' ) end [2025-02-28 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:17:21] Production.INFO: ==7330== Releasing lock... [2025-02-28 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:17:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:18:05 [end_date_ymd] => 2025-02-28 23:18:05 [RateCDR] => 1 ) [2025-02-28 23:18:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:18:05' and `end` < '2025-02-28 23:18:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:18:17] Production.INFO: count ==2160 [2025-02-28 23:18:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:18:05 - End Time 2025-02-28 23:18:05 [2025-02-28 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579758', 'tblTempUsageDetail_20' ) start [2025-02-28 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579758', 'tblTempUsageDetail_20' ) end [2025-02-28 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579758', 'tblTempVendorCDR_20' ) start [2025-02-28 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579758', 'tblTempVendorCDR_20' ) end [2025-02-28 23:18:18] Production.INFO: ProcessCDR(1,14579758,1,1,2) [2025-02-28 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579758', 'tblTempUsageDetail_20' ) start [2025-02-28 23:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579758', 'tblTempUsageDetail_20' ) end [2025-02-28 23:18:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:18:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:18:21] Production.INFO: ==7413== Releasing lock... [2025-02-28 23:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:18:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 23:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:19:06 [end_date_ymd] => 2025-02-28 23:19:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:19:06' and `end` < '2025-02-28 23: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-02-28 23:19:18] Production.INFO: count ==2169 [2025-02-28 23:19:19] Production.ERROR: pbx CDR StartTime 2025-02-28 20:19:06 - End Time 2025-02-28 23:19:06 [2025-02-28 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579763', 'tblTempUsageDetail_20' ) start [2025-02-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579763', 'tblTempUsageDetail_20' ) end [2025-02-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579763', 'tblTempVendorCDR_20' ) start [2025-02-28 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579763', 'tblTempVendorCDR_20' ) end [2025-02-28 23:19:19] Production.INFO: ProcessCDR(1,14579763,1,1,2) [2025-02-28 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579763', 'tblTempUsageDetail_20' ) start [2025-02-28 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579763', 'tblTempUsageDetail_20' ) end [2025-02-28 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:19:22] Production.INFO: ==7501== Releasing lock... [2025-02-28 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:19:22] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:20:06 [end_date_ymd] => 2025-02-28 23:20:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:20:06' and `end` < '2025-02-28 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-02-28 23:20:18] Production.INFO: count ==2175 [2025-02-28 23:20:19] Production.ERROR: pbx CDR StartTime 2025-02-28 20:20:06 - End Time 2025-02-28 23:20:06 [2025-02-28 23:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579769', 'tblTempUsageDetail_20' ) start [2025-02-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579769', 'tblTempUsageDetail_20' ) end [2025-02-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579769', 'tblTempVendorCDR_20' ) start [2025-02-28 23:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579769', 'tblTempVendorCDR_20' ) end [2025-02-28 23:20:19] Production.INFO: ProcessCDR(1,14579769,1,1,2) [2025-02-28 23:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579769', 'tblTempUsageDetail_20' ) start [2025-02-28 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579769', 'tblTempUsageDetail_20' ) end [2025-02-28 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:20:23] Production.INFO: ==7591== Releasing lock... [2025-02-28 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:20:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:21:05 [end_date_ymd] => 2025-02-28 23:21:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:21:05' and `end` < '2025-02-28 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-02-28 23:21:17] Production.INFO: count ==2166 [2025-02-28 23:21:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:21:05 - End Time 2025-02-28 23:21:05 [2025-02-28 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579774', 'tblTempUsageDetail_20' ) start [2025-02-28 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579774', 'tblTempUsageDetail_20' ) end [2025-02-28 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579774', 'tblTempVendorCDR_20' ) start [2025-02-28 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579774', 'tblTempVendorCDR_20' ) end [2025-02-28 23:21:18] Production.INFO: ProcessCDR(1,14579774,1,1,2) [2025-02-28 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579774', 'tblTempUsageDetail_20' ) start [2025-02-28 23:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579774', 'tblTempUsageDetail_20' ) end [2025-02-28 23:21:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:21:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:21:22] Production.INFO: ==7682== Releasing lock... [2025-02-28 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:21:22] Production.INFO: 44.5 MB #Memory Used# [2025-02-28 23:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:22:06 [end_date_ymd] => 2025-02-28 23:22:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:22:06' and `end` < '2025-02-28 23: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-02-28 23:22:18] Production.INFO: count ==2156 [2025-02-28 23:22:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:22:06 - End Time 2025-02-28 23:22:06 [2025-02-28 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579779', 'tblTempUsageDetail_20' ) start [2025-02-28 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579779', 'tblTempUsageDetail_20' ) end [2025-02-28 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579779', 'tblTempVendorCDR_20' ) start [2025-02-28 23:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579779', 'tblTempVendorCDR_20' ) end [2025-02-28 23:22:19] Production.INFO: ProcessCDR(1,14579779,1,1,2) [2025-02-28 23:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579779', 'tblTempUsageDetail_20' ) start [2025-02-28 23:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579779', 'tblTempUsageDetail_20' ) end [2025-02-28 23:22:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:22:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:22:23] Production.INFO: ==7784== Releasing lock... [2025-02-28 23:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:22:23] Production.INFO: 44.5 MB #Memory Used# [2025-02-28 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:23:05 [end_date_ymd] => 2025-02-28 23:23:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:23:05' and `end` < '2025-02-28 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-02-28 23:23:17] Production.INFO: count ==2141 [2025-02-28 23:23:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:23:05 - End Time 2025-02-28 23:23:05 [2025-02-28 23:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579784', 'tblTempUsageDetail_20' ) start [2025-02-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579784', 'tblTempUsageDetail_20' ) end [2025-02-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579784', 'tblTempVendorCDR_20' ) start [2025-02-28 23:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579784', 'tblTempVendorCDR_20' ) end [2025-02-28 23:23:18] Production.INFO: ProcessCDR(1,14579784,1,1,2) [2025-02-28 23:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579784', 'tblTempUsageDetail_20' ) start [2025-02-28 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579784', 'tblTempUsageDetail_20' ) end [2025-02-28 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:23:21] Production.INFO: ==7911== Releasing lock... [2025-02-28 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:23:21] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:24:05 [end_date_ymd] => 2025-02-28 23:24:05 [RateCDR] => 1 ) [2025-02-28 23:24:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:24:05' and `end` < '2025-02-28 23:24:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:24:17] Production.INFO: count ==2128 [2025-02-28 23:24:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:24:05 - End Time 2025-02-28 23:24:05 [2025-02-28 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579789', 'tblTempUsageDetail_20' ) start [2025-02-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579789', 'tblTempUsageDetail_20' ) end [2025-02-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579789', 'tblTempVendorCDR_20' ) start [2025-02-28 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579789', 'tblTempVendorCDR_20' ) end [2025-02-28 23:24:18] Production.INFO: ProcessCDR(1,14579789,1,1,2) [2025-02-28 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579789', 'tblTempUsageDetail_20' ) start [2025-02-28 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579789', 'tblTempUsageDetail_20' ) end [2025-02-28 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:24:21] Production.INFO: ==8008== Releasing lock... [2025-02-28 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:24:21] Production.INFO: 44 MB #Memory Used# [2025-02-28 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:25:05 [end_date_ymd] => 2025-02-28 23:25:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:25:05' and `end` < '2025-02-28 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-02-28 23:25:17] Production.INFO: count ==2124 [2025-02-28 23:25:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:25:05 - End Time 2025-02-28 23:25:05 [2025-02-28 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579794', 'tblTempUsageDetail_20' ) start [2025-02-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579794', 'tblTempUsageDetail_20' ) end [2025-02-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579794', 'tblTempVendorCDR_20' ) start [2025-02-28 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579794', 'tblTempVendorCDR_20' ) end [2025-02-28 23:25:18] Production.INFO: ProcessCDR(1,14579794,1,1,2) [2025-02-28 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579794', 'tblTempUsageDetail_20' ) start [2025-02-28 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579794', 'tblTempUsageDetail_20' ) end [2025-02-28 23:25:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:25:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:25:23] Production.INFO: ==8089== Releasing lock... [2025-02-28 23:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:25:23] Production.INFO: 44.25 MB #Memory Used# [2025-02-28 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:26:05 [end_date_ymd] => 2025-02-28 23:26:05 [RateCDR] => 1 ) [2025-02-28 23:26:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:26:05' and `end` < '2025-02-28 23:26:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:26:17] Production.INFO: count ==2117 [2025-02-28 23:26:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:26:05 - End Time 2025-02-28 23:26:05 [2025-02-28 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579799', 'tblTempUsageDetail_20' ) start [2025-02-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579799', 'tblTempUsageDetail_20' ) end [2025-02-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579799', 'tblTempVendorCDR_20' ) start [2025-02-28 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579799', 'tblTempVendorCDR_20' ) end [2025-02-28 23:26:18] Production.INFO: ProcessCDR(1,14579799,1,1,2) [2025-02-28 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579799', 'tblTempUsageDetail_20' ) start [2025-02-28 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579799', 'tblTempUsageDetail_20' ) end [2025-02-28 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:26:21] Production.INFO: ==8171== Releasing lock... [2025-02-28 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:26:21] Production.INFO: 44 MB #Memory Used# [2025-02-28 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:27:05 [end_date_ymd] => 2025-02-28 23:27:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:27:05' and `end` < '2025-02-28 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-02-28 23:27:18] Production.INFO: count ==2107 [2025-02-28 23:27:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:27:05 - End Time 2025-02-28 23:27:05 [2025-02-28 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579804', 'tblTempUsageDetail_20' ) start [2025-02-28 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579804', 'tblTempUsageDetail_20' ) end [2025-02-28 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579804', 'tblTempVendorCDR_20' ) start [2025-02-28 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579804', 'tblTempVendorCDR_20' ) end [2025-02-28 23:27:18] Production.INFO: ProcessCDR(1,14579804,1,1,2) [2025-02-28 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579804', 'tblTempUsageDetail_20' ) start [2025-02-28 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579804', 'tblTempUsageDetail_20' ) end [2025-02-28 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:27:21] Production.INFO: ==8249== Releasing lock... [2025-02-28 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:27:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-28 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:28:05 [end_date_ymd] => 2025-02-28 23:28:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:28:05' and `end` < '2025-02-28 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-02-28 23:28:17] Production.INFO: count ==2097 [2025-02-28 23:28:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:28:05 - End Time 2025-02-28 23:28:05 [2025-02-28 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579809', 'tblTempUsageDetail_20' ) start [2025-02-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579809', 'tblTempUsageDetail_20' ) end [2025-02-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579809', 'tblTempVendorCDR_20' ) start [2025-02-28 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579809', 'tblTempVendorCDR_20' ) end [2025-02-28 23:28:18] Production.INFO: ProcessCDR(1,14579809,1,1,2) [2025-02-28 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579809', 'tblTempUsageDetail_20' ) start [2025-02-28 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579809', 'tblTempUsageDetail_20' ) end [2025-02-28 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:28:21] Production.INFO: ==8322== Releasing lock... [2025-02-28 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:28:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-28 23:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:29:06 [end_date_ymd] => 2025-02-28 23:29:06 [RateCDR] => 1 ) [2025-02-28 23:29:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:29:06' and `end` < '2025-02-28 23:29:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:29:18] Production.INFO: count ==2089 [2025-02-28 23:29:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:29:06 - End Time 2025-02-28 23:29:06 [2025-02-28 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579814', 'tblTempUsageDetail_20' ) start [2025-02-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579814', 'tblTempUsageDetail_20' ) end [2025-02-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579814', 'tblTempVendorCDR_20' ) start [2025-02-28 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579814', 'tblTempVendorCDR_20' ) end [2025-02-28 23:29:18] Production.INFO: ProcessCDR(1,14579814,1,1,2) [2025-02-28 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579814', 'tblTempUsageDetail_20' ) start [2025-02-28 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579814', 'tblTempUsageDetail_20' ) end [2025-02-28 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:29:23] Production.INFO: ==8403== Releasing lock... [2025-02-28 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:29:23] Production.INFO: 43.75 MB #Memory Used# [2025-02-28 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:30:05 [end_date_ymd] => 2025-02-28 23:30:05 [RateCDR] => 1 ) [2025-02-28 23:30:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:30:05' and `end` < '2025-02-28 23:30:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:30:17] Production.INFO: count ==2073 [2025-02-28 23:30:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:30:05 - End Time 2025-02-28 23:30:05 [2025-02-28 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579819', 'tblTempUsageDetail_20' ) start [2025-02-28 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579819', 'tblTempUsageDetail_20' ) end [2025-02-28 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579819', 'tblTempVendorCDR_20' ) start [2025-02-28 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579819', 'tblTempVendorCDR_20' ) end [2025-02-28 23:30:18] Production.INFO: ProcessCDR(1,14579819,1,1,2) [2025-02-28 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579819', 'tblTempUsageDetail_20' ) start [2025-02-28 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579819', 'tblTempUsageDetail_20' ) end [2025-02-28 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:30:21] Production.INFO: ==8494== Releasing lock... [2025-02-28 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:30:21] Production.INFO: 43.75 MB #Memory Used# [2025-02-28 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:31:05 [end_date_ymd] => 2025-02-28 23:31:05 [RateCDR] => 1 ) [2025-02-28 23:31:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:31:05' and `end` < '2025-02-28 23:31:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:31:17] Production.INFO: count ==1988 [2025-02-28 23:31:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:31:05 - End Time 2025-02-28 23:31:05 [2025-02-28 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579825', 'tblTempUsageDetail_20' ) start [2025-02-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579825', 'tblTempUsageDetail_20' ) end [2025-02-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579825', 'tblTempVendorCDR_20' ) start [2025-02-28 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579825', 'tblTempVendorCDR_20' ) end [2025-02-28 23:31:18] Production.INFO: ProcessCDR(1,14579825,1,1,2) [2025-02-28 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579825', 'tblTempUsageDetail_20' ) start [2025-02-28 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579825', 'tblTempUsageDetail_20' ) end [2025-02-28 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:31:21] Production.INFO: ==8579== Releasing lock... [2025-02-28 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:31:21] Production.INFO: 43 MB #Memory Used# [2025-02-28 23:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:32:04 [end_date_ymd] => 2025-02-28 23:32:04 [RateCDR] => 1 ) [2025-02-28 23:32:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:32:04' and `end` < '2025-02-28 23:32:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:32:17] Production.INFO: count ==1978 [2025-02-28 23:32:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:32:04 - End Time 2025-02-28 23:32:04 [2025-02-28 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579830', 'tblTempUsageDetail_20' ) start [2025-02-28 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579830', 'tblTempUsageDetail_20' ) end [2025-02-28 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579830', 'tblTempVendorCDR_20' ) start [2025-02-28 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579830', 'tblTempVendorCDR_20' ) end [2025-02-28 23:32:17] Production.INFO: ProcessCDR(1,14579830,1,1,2) [2025-02-28 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579830', 'tblTempUsageDetail_20' ) start [2025-02-28 23:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579830', 'tblTempUsageDetail_20' ) end [2025-02-28 23:32:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:32:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:32:21] Production.INFO: ==8655== Releasing lock... [2025-02-28 23:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:32:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:33:05 [end_date_ymd] => 2025-02-28 23:33:05 [RateCDR] => 1 ) [2025-02-28 23:33:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:33:05' and `end` < '2025-02-28 23:33:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:33:17] Production.INFO: count ==1972 [2025-02-28 23:33:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:33:05 - End Time 2025-02-28 23:33:05 [2025-02-28 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579835', 'tblTempUsageDetail_20' ) start [2025-02-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579835', 'tblTempUsageDetail_20' ) end [2025-02-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579835', 'tblTempVendorCDR_20' ) start [2025-02-28 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579835', 'tblTempVendorCDR_20' ) end [2025-02-28 23:33:18] Production.INFO: ProcessCDR(1,14579835,1,1,2) [2025-02-28 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579835', 'tblTempUsageDetail_20' ) start [2025-02-28 23:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579835', 'tblTempUsageDetail_20' ) end [2025-02-28 23:33:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:33:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:33:22] Production.INFO: ==8737== Releasing lock... [2025-02-28 23:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:33:22] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 23:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:34:04 [end_date_ymd] => 2025-02-28 23:34:04 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:34:04' and `end` < '2025-02-28 23: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-02-28 23:34:17] Production.INFO: count ==1956 [2025-02-28 23:34:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:34:04 - End Time 2025-02-28 23:34:04 [2025-02-28 23:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579840', 'tblTempUsageDetail_20' ) start [2025-02-28 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579840', 'tblTempUsageDetail_20' ) end [2025-02-28 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579840', 'tblTempVendorCDR_20' ) start [2025-02-28 23:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579840', 'tblTempVendorCDR_20' ) end [2025-02-28 23:34:17] Production.INFO: ProcessCDR(1,14579840,1,1,2) [2025-02-28 23:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579840', 'tblTempUsageDetail_20' ) start [2025-02-28 23:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579840', 'tblTempUsageDetail_20' ) end [2025-02-28 23:34:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:34:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:34:20] Production.INFO: ==8811== Releasing lock... [2025-02-28 23:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:34:20] Production.INFO: 43 MB #Memory Used# [2025-02-28 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:35:05 [end_date_ymd] => 2025-02-28 23:35:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:35:05' and `end` < '2025-02-28 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-02-28 23:35:17] Production.INFO: count ==1947 [2025-02-28 23:35:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:35:05 - End Time 2025-02-28 23:35:05 [2025-02-28 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579845', 'tblTempUsageDetail_20' ) start [2025-02-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579845', 'tblTempUsageDetail_20' ) end [2025-02-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579845', 'tblTempVendorCDR_20' ) start [2025-02-28 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579845', 'tblTempVendorCDR_20' ) end [2025-02-28 23:35:18] Production.INFO: ProcessCDR(1,14579845,1,1,2) [2025-02-28 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579845', 'tblTempUsageDetail_20' ) start [2025-02-28 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579845', 'tblTempUsageDetail_20' ) end [2025-02-28 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:35:21] Production.INFO: ==8898== Releasing lock... [2025-02-28 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:35:21] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:36:05 [end_date_ymd] => 2025-02-28 23:36:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:36:05' and `end` < '2025-02-28 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-02-28 23:36:17] Production.INFO: count ==1951 [2025-02-28 23:36:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:36:05 - End Time 2025-02-28 23:36:05 [2025-02-28 23:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579850', 'tblTempUsageDetail_20' ) start [2025-02-28 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579850', 'tblTempUsageDetail_20' ) end [2025-02-28 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579850', 'tblTempVendorCDR_20' ) start [2025-02-28 23:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579850', 'tblTempVendorCDR_20' ) end [2025-02-28 23:36:18] Production.INFO: ProcessCDR(1,14579850,1,1,2) [2025-02-28 23:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579850', 'tblTempUsageDetail_20' ) start [2025-02-28 23:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579850', 'tblTempUsageDetail_20' ) end [2025-02-28 23:36:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:36:23] Production.INFO: ==8977== Releasing lock... [2025-02-28 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:36:23] Production.INFO: 42.75 MB #Memory Used# [2025-02-28 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:37:05 [end_date_ymd] => 2025-02-28 23:37:05 [RateCDR] => 1 ) [2025-02-28 23:37:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:37:05' and `end` < '2025-02-28 23:37:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:37:18] Production.INFO: count ==1946 [2025-02-28 23:37:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:37:05 - End Time 2025-02-28 23:37:05 [2025-02-28 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579855', 'tblTempUsageDetail_20' ) start [2025-02-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579855', 'tblTempUsageDetail_20' ) end [2025-02-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579855', 'tblTempVendorCDR_20' ) start [2025-02-28 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579855', 'tblTempVendorCDR_20' ) end [2025-02-28 23:37:18] Production.INFO: ProcessCDR(1,14579855,1,1,2) [2025-02-28 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579855', 'tblTempUsageDetail_20' ) start [2025-02-28 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579855', 'tblTempUsageDetail_20' ) end [2025-02-28 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:37:22] Production.INFO: ==9066== Releasing lock... [2025-02-28 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:37:22] Production.INFO: 43 MB #Memory Used# [2025-02-28 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:38:05 [end_date_ymd] => 2025-02-28 23:38:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:38:05' and `end` < '2025-02-28 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-02-28 23:38:18] Production.INFO: count ==1933 [2025-02-28 23:38:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:38:05 - End Time 2025-02-28 23:38:05 [2025-02-28 23:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579860', 'tblTempUsageDetail_20' ) start [2025-02-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579860', 'tblTempUsageDetail_20' ) end [2025-02-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579860', 'tblTempVendorCDR_20' ) start [2025-02-28 23:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579860', 'tblTempVendorCDR_20' ) end [2025-02-28 23:38:18] Production.INFO: ProcessCDR(1,14579860,1,1,2) [2025-02-28 23:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579860', 'tblTempUsageDetail_20' ) start [2025-02-28 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579860', 'tblTempUsageDetail_20' ) end [2025-02-28 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:38:22] Production.INFO: ==9163== Releasing lock... [2025-02-28 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:38:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-28 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:39:05 [end_date_ymd] => 2025-02-28 23:39:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:39:05' and `end` < '2025-02-28 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-02-28 23:39:17] Production.INFO: count ==1925 [2025-02-28 23:39:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:39:05 - End Time 2025-02-28 23:39:05 [2025-02-28 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579865', 'tblTempUsageDetail_20' ) start [2025-02-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579865', 'tblTempUsageDetail_20' ) end [2025-02-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579865', 'tblTempVendorCDR_20' ) start [2025-02-28 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579865', 'tblTempVendorCDR_20' ) end [2025-02-28 23:39:18] Production.INFO: ProcessCDR(1,14579865,1,1,2) [2025-02-28 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579865', 'tblTempUsageDetail_20' ) start [2025-02-28 23:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579865', 'tblTempUsageDetail_20' ) end [2025-02-28 23:39:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:39:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:39:22] Production.INFO: ==9286== Releasing lock... [2025-02-28 23:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:39:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-28 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:40:06 [end_date_ymd] => 2025-02-28 23:40:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:40:06' and `end` < '2025-02-28 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-02-28 23:40:18] Production.INFO: count ==1921 [2025-02-28 23:40:19] Production.ERROR: pbx CDR StartTime 2025-02-28 20:40:06 - End Time 2025-02-28 23:40:06 [2025-02-28 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579871', 'tblTempUsageDetail_20' ) start [2025-02-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579871', 'tblTempUsageDetail_20' ) end [2025-02-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579871', 'tblTempVendorCDR_20' ) start [2025-02-28 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579871', 'tblTempVendorCDR_20' ) end [2025-02-28 23:40:19] Production.INFO: ProcessCDR(1,14579871,1,1,2) [2025-02-28 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579871', 'tblTempUsageDetail_20' ) start [2025-02-28 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579871', 'tblTempUsageDetail_20' ) end [2025-02-28 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:40:22] Production.INFO: ==9369== Releasing lock... [2025-02-28 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:40:22] Production.INFO: 42.5 MB #Memory Used# [2025-02-28 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:41:05 [end_date_ymd] => 2025-02-28 23:41:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:41:05' and `end` < '2025-02-28 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-02-28 23:41:17] Production.INFO: count ==1864 [2025-02-28 23:41:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:41:05 - End Time 2025-02-28 23:41:05 [2025-02-28 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579876', 'tblTempUsageDetail_20' ) start [2025-02-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579876', 'tblTempUsageDetail_20' ) end [2025-02-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579876', 'tblTempVendorCDR_20' ) start [2025-02-28 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579876', 'tblTempVendorCDR_20' ) end [2025-02-28 23:41:17] Production.INFO: ProcessCDR(1,14579876,1,1,2) [2025-02-28 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579876', 'tblTempUsageDetail_20' ) start [2025-02-28 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579876', 'tblTempUsageDetail_20' ) end [2025-02-28 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:41:21] Production.INFO: ==9467== Releasing lock... [2025-02-28 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:41:21] Production.INFO: 42 MB #Memory Used# [2025-02-28 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:42:05 [end_date_ymd] => 2025-02-28 23:42:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:42:05' and `end` < '2025-02-28 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-02-28 23:42:17] Production.INFO: count ==1861 [2025-02-28 23:42:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:42:05 - End Time 2025-02-28 23:42:05 [2025-02-28 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579881', 'tblTempUsageDetail_20' ) start [2025-02-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579881', 'tblTempUsageDetail_20' ) end [2025-02-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579881', 'tblTempVendorCDR_20' ) start [2025-02-28 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579881', 'tblTempVendorCDR_20' ) end [2025-02-28 23:42:18] Production.INFO: ProcessCDR(1,14579881,1,1,2) [2025-02-28 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579881', 'tblTempUsageDetail_20' ) start [2025-02-28 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579881', 'tblTempUsageDetail_20' ) end [2025-02-28 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:42:21] Production.INFO: ==9551== Releasing lock... [2025-02-28 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:42:21] Production.INFO: 42 MB #Memory Used# [2025-02-28 23:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:43:04 [end_date_ymd] => 2025-02-28 23:43:04 [RateCDR] => 1 ) [2025-02-28 23:43:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:43:04' and `end` < '2025-02-28 23:43:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:43:17] Production.INFO: count ==1850 [2025-02-28 23:43:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:43:04 - End Time 2025-02-28 23:43:04 [2025-02-28 23:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579886', 'tblTempUsageDetail_20' ) start [2025-02-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579886', 'tblTempUsageDetail_20' ) end [2025-02-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579886', 'tblTempVendorCDR_20' ) start [2025-02-28 23:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579886', 'tblTempVendorCDR_20' ) end [2025-02-28 23:43:17] Production.INFO: ProcessCDR(1,14579886,1,1,2) [2025-02-28 23:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579886', 'tblTempUsageDetail_20' ) start [2025-02-28 23:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579886', 'tblTempUsageDetail_20' ) end [2025-02-28 23:43:20] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:43:20] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:43:20] Production.INFO: ==9640== Releasing lock... [2025-02-28 23:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:43:20] Production.INFO: 42.25 MB #Memory Used# [2025-02-28 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:44:05 [end_date_ymd] => 2025-02-28 23:44:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:44:05' and `end` < '2025-02-28 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-02-28 23:44:18] Production.INFO: count ==1848 [2025-02-28 23:44:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:44:05 - End Time 2025-02-28 23:44:05 [2025-02-28 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579891', 'tblTempUsageDetail_20' ) start [2025-02-28 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579891', 'tblTempUsageDetail_20' ) end [2025-02-28 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579891', 'tblTempVendorCDR_20' ) start [2025-02-28 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579891', 'tblTempVendorCDR_20' ) end [2025-02-28 23:44:18] Production.INFO: ProcessCDR(1,14579891,1,1,2) [2025-02-28 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579891', 'tblTempUsageDetail_20' ) start [2025-02-28 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579891', 'tblTempUsageDetail_20' ) end [2025-02-28 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:44:23] Production.INFO: ==9722== Releasing lock... [2025-02-28 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:44:23] Production.INFO: 41.75 MB #Memory Used# [2025-02-28 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:45:05 [end_date_ymd] => 2025-02-28 23:45:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:45:05' and `end` < '2025-02-28 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-02-28 23:45:17] Production.INFO: count ==1840 [2025-02-28 23:45:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:45:05 - End Time 2025-02-28 23:45:05 [2025-02-28 23:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579896', 'tblTempUsageDetail_20' ) start [2025-02-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579896', 'tblTempUsageDetail_20' ) end [2025-02-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579896', 'tblTempVendorCDR_20' ) start [2025-02-28 23:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579896', 'tblTempVendorCDR_20' ) end [2025-02-28 23:45:17] Production.INFO: ProcessCDR(1,14579896,1,1,2) [2025-02-28 23:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579896', 'tblTempUsageDetail_20' ) start [2025-02-28 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579896', 'tblTempUsageDetail_20' ) end [2025-02-28 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:45:21] Production.INFO: ==9804== Releasing lock... [2025-02-28 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:45:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-28 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:46:05 [end_date_ymd] => 2025-02-28 23:46:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:46:05' and `end` < '2025-02-28 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-02-28 23:46:17] Production.INFO: count ==1839 [2025-02-28 23:46:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:46:05 - End Time 2025-02-28 23:46:05 [2025-02-28 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579901', 'tblTempUsageDetail_20' ) start [2025-02-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579901', 'tblTempUsageDetail_20' ) end [2025-02-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579901', 'tblTempVendorCDR_20' ) start [2025-02-28 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579901', 'tblTempVendorCDR_20' ) end [2025-02-28 23:46:18] Production.INFO: ProcessCDR(1,14579901,1,1,2) [2025-02-28 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579901', 'tblTempUsageDetail_20' ) start [2025-02-28 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579901', 'tblTempUsageDetail_20' ) end [2025-02-28 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:46:21] Production.INFO: ==9899== Releasing lock... [2025-02-28 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:46:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-28 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:47:05 [end_date_ymd] => 2025-02-28 23:47:05 [RateCDR] => 1 ) [2025-02-28 23:47:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:47:05' and `end` < '2025-02-28 23:47:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:47:17] Production.INFO: count ==1841 [2025-02-28 23:47:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:47:05 - End Time 2025-02-28 23:47:05 [2025-02-28 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579906', 'tblTempUsageDetail_20' ) start [2025-02-28 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579906', 'tblTempUsageDetail_20' ) end [2025-02-28 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579906', 'tblTempVendorCDR_20' ) start [2025-02-28 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579906', 'tblTempVendorCDR_20' ) end [2025-02-28 23:47:18] Production.INFO: ProcessCDR(1,14579906,1,1,2) [2025-02-28 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579906', 'tblTempUsageDetail_20' ) start [2025-02-28 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579906', 'tblTempUsageDetail_20' ) end [2025-02-28 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:47:21] Production.INFO: ==9988== Releasing lock... [2025-02-28 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:47:21] Production.INFO: 42 MB #Memory Used# [2025-02-28 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:48:06 [end_date_ymd] => 2025-02-28 23:48:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:48:06' and `end` < '2025-02-28 23: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-02-28 23:48:18] Production.INFO: count ==1830 [2025-02-28 23:48:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:48:06 - End Time 2025-02-28 23:48:06 [2025-02-28 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579911', 'tblTempUsageDetail_20' ) start [2025-02-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579911', 'tblTempUsageDetail_20' ) end [2025-02-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579911', 'tblTempVendorCDR_20' ) start [2025-02-28 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579911', 'tblTempVendorCDR_20' ) end [2025-02-28 23:48:18] Production.INFO: ProcessCDR(1,14579911,1,1,2) [2025-02-28 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579911', 'tblTempUsageDetail_20' ) start [2025-02-28 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579911', 'tblTempUsageDetail_20' ) end [2025-02-28 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:48:21] Production.INFO: ==10082== Releasing lock... [2025-02-28 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:48:21] Production.INFO: 41.5 MB #Memory Used# [2025-02-28 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:49:05 [end_date_ymd] => 2025-02-28 23:49:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:49:05' and `end` < '2025-02-28 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-02-28 23:49:17] Production.INFO: count ==1845 [2025-02-28 23:49:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:49:05 - End Time 2025-02-28 23:49:05 [2025-02-28 23:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579916', 'tblTempUsageDetail_20' ) start [2025-02-28 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579916', 'tblTempUsageDetail_20' ) end [2025-02-28 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579916', 'tblTempVendorCDR_20' ) start [2025-02-28 23:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579916', 'tblTempVendorCDR_20' ) end [2025-02-28 23:49:17] Production.INFO: ProcessCDR(1,14579916,1,1,2) [2025-02-28 23:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579916', 'tblTempUsageDetail_20' ) start [2025-02-28 23:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579916', 'tblTempUsageDetail_20' ) end [2025-02-28 23:49:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:49:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:49:21] Production.INFO: ==10159== Releasing lock... [2025-02-28 23:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:49:21] Production.INFO: 41.75 MB #Memory Used# [2025-02-28 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:50:06 [end_date_ymd] => 2025-02-28 23:50:06 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:50:06' and `end` < '2025-02-28 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-02-28 23:50:18] Production.INFO: count ==1832 [2025-02-28 23:50:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:50:06 - End Time 2025-02-28 23:50:06 [2025-02-28 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579922', 'tblTempUsageDetail_20' ) start [2025-02-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579922', 'tblTempUsageDetail_20' ) end [2025-02-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579922', 'tblTempVendorCDR_20' ) start [2025-02-28 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579922', 'tblTempVendorCDR_20' ) end [2025-02-28 23:50:18] Production.INFO: ProcessCDR(1,14579922,1,1,2) [2025-02-28 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579922', 'tblTempUsageDetail_20' ) start [2025-02-28 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579922', 'tblTempUsageDetail_20' ) end [2025-02-28 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:50:22] Production.INFO: ==10249== Releasing lock... [2025-02-28 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:50:22] Production.INFO: 41.75 MB #Memory Used# [2025-02-28 23:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:51:06 [end_date_ymd] => 2025-02-28 23:51:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:51:06' and `end` < '2025-02-28 23: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-02-28 23:51:18] Production.INFO: count ==1780 [2025-02-28 23:51:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:51:06 - End Time 2025-02-28 23:51:06 [2025-02-28 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579927', 'tblTempUsageDetail_20' ) start [2025-02-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579927', 'tblTempUsageDetail_20' ) end [2025-02-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579927', 'tblTempVendorCDR_20' ) start [2025-02-28 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579927', 'tblTempVendorCDR_20' ) end [2025-02-28 23:51:19] Production.INFO: ProcessCDR(1,14579927,1,1,2) [2025-02-28 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579927', 'tblTempUsageDetail_20' ) start [2025-02-28 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579927', 'tblTempUsageDetail_20' ) end [2025-02-28 23:51:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:51:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:51:22] Production.INFO: ==10333== Releasing lock... [2025-02-28 23:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:51:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:52:05 [end_date_ymd] => 2025-02-28 23:52:05 [RateCDR] => 1 ) [2025-02-28 23:52:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:52:05' and `end` < '2025-02-28 23:52:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:52:18] Production.INFO: count ==1773 [2025-02-28 23:52:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:52:05 - End Time 2025-02-28 23:52:05 [2025-02-28 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579932', 'tblTempUsageDetail_20' ) start [2025-02-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579932', 'tblTempUsageDetail_20' ) end [2025-02-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579932', 'tblTempVendorCDR_20' ) start [2025-02-28 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579932', 'tblTempVendorCDR_20' ) end [2025-02-28 23:52:18] Production.INFO: ProcessCDR(1,14579932,1,1,2) [2025-02-28 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579932', 'tblTempUsageDetail_20' ) start [2025-02-28 23:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579932', 'tblTempUsageDetail_20' ) end [2025-02-28 23:52:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:52:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:52:23] Production.INFO: ==10426== Releasing lock... [2025-02-28 23:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:52:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:53:05 [end_date_ymd] => 2025-02-28 23:53:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:53:05' and `end` < '2025-02-28 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-02-28 23:53:17] Production.INFO: count ==1764 [2025-02-28 23:53:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:53:05 - End Time 2025-02-28 23:53:05 [2025-02-28 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579937', 'tblTempUsageDetail_20' ) start [2025-02-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579937', 'tblTempUsageDetail_20' ) end [2025-02-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579937', 'tblTempVendorCDR_20' ) start [2025-02-28 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579937', 'tblTempVendorCDR_20' ) end [2025-02-28 23:53:18] Production.INFO: ProcessCDR(1,14579937,1,1,2) [2025-02-28 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579937', 'tblTempUsageDetail_20' ) start [2025-02-28 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579937', 'tblTempUsageDetail_20' ) end [2025-02-28 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:53:21] Production.INFO: ==10517== Releasing lock... [2025-02-28 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:53:21] Production.INFO: 41 MB #Memory Used# [2025-02-28 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:54:05 [end_date_ymd] => 2025-02-28 23:54:05 [RateCDR] => 1 ) [2025-02-28 23:54:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-02-28 20:54:05' and `end` < '2025-02-28 23:54:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-02-28 23:54:17] Production.INFO: count ==1757 [2025-02-28 23:54:17] Production.ERROR: pbx CDR StartTime 2025-02-28 20:54:05 - End Time 2025-02-28 23:54:05 [2025-02-28 23:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579942', 'tblTempUsageDetail_20' ) start [2025-02-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579942', 'tblTempUsageDetail_20' ) end [2025-02-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579942', 'tblTempVendorCDR_20' ) start [2025-02-28 23:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579942', 'tblTempVendorCDR_20' ) end [2025-02-28 23:54:17] Production.INFO: ProcessCDR(1,14579942,1,1,2) [2025-02-28 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579942', 'tblTempUsageDetail_20' ) start [2025-02-28 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579942', 'tblTempUsageDetail_20' ) end [2025-02-28 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:54:21] Production.INFO: ==10648== Releasing lock... [2025-02-28 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:54:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 23:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:55:06 [end_date_ymd] => 2025-02-28 23:55:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:55:06' and `end` < '2025-02-28 23: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-02-28 23:55:18] Production.INFO: count ==1756 [2025-02-28 23:55:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:55:06 - End Time 2025-02-28 23:55:06 [2025-02-28 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579947', 'tblTempUsageDetail_20' ) start [2025-02-28 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579947', 'tblTempUsageDetail_20' ) end [2025-02-28 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579947', 'tblTempVendorCDR_20' ) start [2025-02-28 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579947', 'tblTempVendorCDR_20' ) end [2025-02-28 23:55:19] Production.INFO: ProcessCDR(1,14579947,1,1,2) [2025-02-28 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579947', 'tblTempUsageDetail_20' ) start [2025-02-28 23:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579947', 'tblTempUsageDetail_20' ) end [2025-02-28 23:55:23] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:55:23] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:55:23] Production.INFO: ==10725== Releasing lock... [2025-02-28 23:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:55:23] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:56:06 [end_date_ymd] => 2025-02-28 23:56:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:56:06' and `end` < '2025-02-28 23: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-02-28 23:56:18] Production.INFO: count ==1758 [2025-02-28 23:56:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:56:06 - End Time 2025-02-28 23:56:06 [2025-02-28 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579952', 'tblTempUsageDetail_20' ) start [2025-02-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579952', 'tblTempUsageDetail_20' ) end [2025-02-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579952', 'tblTempVendorCDR_20' ) start [2025-02-28 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579952', 'tblTempVendorCDR_20' ) end [2025-02-28 23:56:18] Production.INFO: ProcessCDR(1,14579952,1,1,2) [2025-02-28 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579952', 'tblTempUsageDetail_20' ) start [2025-02-28 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579952', 'tblTempUsageDetail_20' ) end [2025-02-28 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:56:22] Production.INFO: ==10813== Releasing lock... [2025-02-28 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:56:22] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:57:05 [end_date_ymd] => 2025-02-28 23:57:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:57:05' and `end` < '2025-02-28 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-02-28 23:57:17] Production.INFO: count ==1761 [2025-02-28 23:57:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:57:05 - End Time 2025-02-28 23:57:05 [2025-02-28 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579957', 'tblTempUsageDetail_20' ) start [2025-02-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579957', 'tblTempUsageDetail_20' ) end [2025-02-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579957', 'tblTempVendorCDR_20' ) start [2025-02-28 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579957', 'tblTempVendorCDR_20' ) end [2025-02-28 23:57:18] Production.INFO: ProcessCDR(1,14579957,1,1,2) [2025-02-28 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579957', 'tblTempUsageDetail_20' ) start [2025-02-28 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579957', 'tblTempUsageDetail_20' ) end [2025-02-28 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:57:21] Production.INFO: ==10902== Releasing lock... [2025-02-28 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:57:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:58:05 [end_date_ymd] => 2025-02-28 23:58:05 [RateCDR] => 1 ) [2025-02-28 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-02-28 20:58:05' and `end` < '2025-02-28 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-02-28 23:58:17] Production.INFO: count ==1770 [2025-02-28 23:58:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:58:05 - End Time 2025-02-28 23:58:05 [2025-02-28 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579962', 'tblTempUsageDetail_20' ) start [2025-02-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579962', 'tblTempUsageDetail_20' ) end [2025-02-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579962', 'tblTempVendorCDR_20' ) start [2025-02-28 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579962', 'tblTempVendorCDR_20' ) end [2025-02-28 23:58:18] Production.INFO: ProcessCDR(1,14579962,1,1,2) [2025-02-28 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579962', 'tblTempUsageDetail_20' ) start [2025-02-28 23:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579962', 'tblTempUsageDetail_20' ) end [2025-02-28 23:58:21] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:58:21] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:58:21] Production.INFO: ==10981== Releasing lock... [2025-02-28 23:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:58:21] Production.INFO: 41.25 MB #Memory Used# [2025-02-28 23:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-02-28 20:59:06 [end_date_ymd] => 2025-02-28 23:59:06 [RateCDR] => 1 ) [2025-02-28 23: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-02-28 20:59:06' and `end` < '2025-02-28 23: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-02-28 23:59:18] Production.INFO: count ==1768 [2025-02-28 23:59:18] Production.ERROR: pbx CDR StartTime 2025-02-28 20:59:06 - End Time 2025-02-28 23:59:06 [2025-02-28 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-02-28 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579967', 'tblTempUsageDetail_20' ) start [2025-02-28 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14579967', 'tblTempUsageDetail_20' ) end [2025-02-28 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579967', 'tblTempVendorCDR_20' ) start [2025-02-28 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14579967', 'tblTempVendorCDR_20' ) end [2025-02-28 23:59:18] Production.INFO: ProcessCDR(1,14579967,1,1,2) [2025-02-28 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14579967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14579967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-02-28 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14579967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14579967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-02-28 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579967', 'tblTempUsageDetail_20' ) start [2025-02-28 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14579967', 'tblTempUsageDetail_20' ) end [2025-02-28 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-02-28 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-02-28 23:59:22] Production.INFO: ==11075== Releasing lock... [2025-02-28 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-02-28 23:59:22] Production.INFO: 41 MB #Memory Used#