[2025-07-15 00:25:04] Production.INFO: next invoice date [2025-07-15 00:25:04] Production.INFO: 2025-08-15 [2025-07-15 00:25:04] Production.INFO: getdaysdiff [2025-07-15 00:25:04] Production.INFO: +31 [2025-07-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,31,31,'RMScheduler',2025-07-15 00:25:04,1,0,,,0) [2025-07-15 00:25:04] Production.INFO: next invoice date [2025-07-15 00:25:04] Production.INFO: 2025-08-15 [2025-07-15 00:25:04] Production.INFO: getdaysdiff [2025-07-15 00:25:04] Production.INFO: +31 [2025-07-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,31,31,'RMScheduler',2025-07-15 00:25:04,1,0,,,0) [2025-07-15 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 21:25:06 [end_date_ymd] => 2025-07-15 00:25:06 [RateCDR] => 1 ) [2025-07-15 00: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-07-14 21:25:06' and `end` < '2025-07-15 00: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-07-15 00:25:18] Production.INFO: count ==468 [2025-07-15 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-14 21:25:06 - End Time 2025-07-15 00:25:06 [2025-07-15 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473829', 'tblTempUsageDetail_20' ) start [2025-07-15 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15473829', 'tblTempUsageDetail_20' ) end [2025-07-15 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473829', 'tblTempVendorCDR_20' ) start [2025-07-15 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15473829', 'tblTempVendorCDR_20' ) end [2025-07-15 00:25:18] Production.INFO: ProcessCDR(1,15473829,1,1,2) [2025-07-15 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15473829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15473829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15473829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15473829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473829', 'tblTempUsageDetail_20' ) start [2025-07-15 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15473829', 'tblTempUsageDetail_20' ) end [2025-07-15 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-15 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-15 00:25:26] Production.INFO: ==7530== Releasing lock... [2025-07-15 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 00:25:26] Production.INFO: 36 MB #Memory Used# [2025-07-15 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 22:25:05 [end_date_ymd] => 2025-07-15 01:25:05 [RateCDR] => 1 ) [2025-07-15 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-14 22:25:05' and `end` < '2025-07-15 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-15 01:25:17] Production.INFO: count ==422 [2025-07-15 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-14 22:25:05 - End Time 2025-07-15 01:25:05 [2025-07-15 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474076', 'tblTempUsageDetail_20' ) start [2025-07-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474076', 'tblTempUsageDetail_20' ) end [2025-07-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474076', 'tblTempVendorCDR_20' ) start [2025-07-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474076', 'tblTempVendorCDR_20' ) end [2025-07-15 01:25:17] Production.INFO: ProcessCDR(1,15474076,1,1,2) [2025-07-15 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15474076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15474076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15474076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15474076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474076', 'tblTempUsageDetail_20' ) start [2025-07-15 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474076', 'tblTempUsageDetail_20' ) end [2025-07-15 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-15 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-15 01:25:24] Production.INFO: ==12355== Releasing lock... [2025-07-15 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 01:25:24] Production.INFO: 32 MB #Memory Used# [2025-07-15 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-14 23:25:05 [end_date_ymd] => 2025-07-15 02:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-14 23:25:05' and `end` < '2025-07-15 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-07-15 02:25:17] Production.INFO: count ==408 [2025-07-15 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-14 23:25:05 - End Time 2025-07-15 02:25:05 [2025-07-15 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474323', 'tblTempUsageDetail_20' ) start [2025-07-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474323', 'tblTempUsageDetail_20' ) end [2025-07-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474323', 'tblTempVendorCDR_20' ) start [2025-07-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474323', 'tblTempVendorCDR_20' ) end [2025-07-15 02:25:17] Production.INFO: ProcessCDR(1,15474323,1,1,2) [2025-07-15 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15474323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15474323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15474323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15474323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474323', 'tblTempUsageDetail_20' ) start [2025-07-15 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474323', 'tblTempUsageDetail_20' ) end [2025-07-15 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-15 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-15 02:25:24] Production.INFO: ==17537== Releasing lock... [2025-07-15 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 02:25:24] Production.INFO: 32 MB #Memory Used# [2025-07-15 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 00:25:05 [end_date_ymd] => 2025-07-15 03:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 00:25:05' and `end` < '2025-07-15 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-07-15 03:25:17] Production.INFO: count ==348 [2025-07-15 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-15 00:25:05 - End Time 2025-07-15 03:25:05 [2025-07-15 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474570', 'tblTempUsageDetail_20' ) start [2025-07-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474570', 'tblTempUsageDetail_20' ) end [2025-07-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474570', 'tblTempVendorCDR_20' ) start [2025-07-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474570', 'tblTempVendorCDR_20' ) end [2025-07-15 03:25:17] Production.INFO: ProcessCDR(1,15474570,1,1,2) [2025-07-15 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15474570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15474570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15474570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15474570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474570', 'tblTempUsageDetail_20' ) start [2025-07-15 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474570', 'tblTempUsageDetail_20' ) end [2025-07-15 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-15 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-15 03:25:23] Production.INFO: ==22168== Releasing lock... [2025-07-15 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 03:25:23] Production.INFO: 31.25 MB #Memory Used# [2025-07-15 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 01:25:06 [end_date_ymd] => 2025-07-15 04:25:06 [RateCDR] => 1 ) [2025-07-15 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-07-15 01:25:06' and `end` < '2025-07-15 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-07-15 04:25:18] Production.INFO: count ==258 [2025-07-15 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-15 01:25:06 - End Time 2025-07-15 04:25:06 [2025-07-15 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474818', 'tblTempUsageDetail_20' ) start [2025-07-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15474818', 'tblTempUsageDetail_20' ) end [2025-07-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474818', 'tblTempVendorCDR_20' ) start [2025-07-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15474818', 'tblTempVendorCDR_20' ) end [2025-07-15 04:25:18] Production.INFO: ProcessCDR(1,15474818,1,1,2) [2025-07-15 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15474818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15474818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15474818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15474818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474818', 'tblTempUsageDetail_20' ) start [2025-07-15 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15474818', 'tblTempUsageDetail_20' ) end [2025-07-15 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-15 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-15 04:25:24] Production.INFO: ==26711== Releasing lock... [2025-07-15 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 04:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-07-15 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 02:25:05 [end_date_ymd] => 2025-07-15 05:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 02:25:05' and `end` < '2025-07-15 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-07-15 05:25:17] Production.INFO: count ==795 [2025-07-15 05:25:17] Production.ERROR: pbx CDR StartTime 2025-07-15 02:25:05 - End Time 2025-07-15 05:25:05 [2025-07-15 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475066', 'tblTempUsageDetail_20' ) start [2025-07-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475066', 'tblTempUsageDetail_20' ) end [2025-07-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475066', 'tblTempVendorCDR_20' ) start [2025-07-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475066', 'tblTempVendorCDR_20' ) end [2025-07-15 05:25:17] Production.INFO: ProcessCDR(1,15475066,1,1,2) [2025-07-15 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15475066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15475066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15475066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15475066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475066', 'tblTempUsageDetail_20' ) start [2025-07-15 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475066', 'tblTempUsageDetail_20' ) end [2025-07-15 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-15 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-15 05:25:26] Production.INFO: ==31440== Releasing lock... [2025-07-15 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 05:25:26] Production.INFO: 34.25 MB #Memory Used# [2025-07-15 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 03:25:05 [end_date_ymd] => 2025-07-15 06:25:05 [RateCDR] => 1 ) [2025-07-15 06: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-07-15 03:25:05' and `end` < '2025-07-15 06: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-07-15 06:25:17] Production.INFO: count ==772 [2025-07-15 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-15 03:25:05 - End Time 2025-07-15 06:25:05 [2025-07-15 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475313', 'tblTempUsageDetail_20' ) start [2025-07-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475313', 'tblTempUsageDetail_20' ) end [2025-07-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475313', 'tblTempVendorCDR_20' ) start [2025-07-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475313', 'tblTempVendorCDR_20' ) end [2025-07-15 06:25:17] Production.INFO: ProcessCDR(1,15475313,1,1,2) [2025-07-15 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15475313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15475313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15475313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15475313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475313', 'tblTempUsageDetail_20' ) start [2025-07-15 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475313', 'tblTempUsageDetail_20' ) end [2025-07-15 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-15 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-15 06:25:24] Production.INFO: ==3721== Releasing lock... [2025-07-15 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 06:25:24] Production.INFO: 34.25 MB #Memory Used# [2025-07-15 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 04:25:06 [end_date_ymd] => 2025-07-15 07:25:06 [RateCDR] => 1 ) [2025-07-15 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-07-15 04:25:06' and `end` < '2025-07-15 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-07-15 07:25:18] Production.INFO: count ==604 [2025-07-15 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-15 04:25:06 - End Time 2025-07-15 07:25:06 [2025-07-15 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475560', 'tblTempUsageDetail_20' ) start [2025-07-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475560', 'tblTempUsageDetail_20' ) end [2025-07-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475560', 'tblTempVendorCDR_20' ) start [2025-07-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475560', 'tblTempVendorCDR_20' ) end [2025-07-15 07:25:18] Production.INFO: ProcessCDR(1,15475560,1,1,2) [2025-07-15 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15475560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15475560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15475560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15475560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475560', 'tblTempUsageDetail_20' ) start [2025-07-15 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475560', 'tblTempUsageDetail_20' ) end [2025-07-15 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-15 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-15 07:25:25] Production.INFO: ==8397== Releasing lock... [2025-07-15 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 07:25:25] Production.INFO: 32.75 MB #Memory Used# [2025-07-15 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 05:25:05 [end_date_ymd] => 2025-07-15 08:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 05:25:05' and `end` < '2025-07-15 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-15 08:25:18] Production.INFO: count ==667 [2025-07-15 08:25:18] Production.ERROR: pbx CDR StartTime 2025-07-15 05:25:05 - End Time 2025-07-15 08:25:05 [2025-07-15 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475807', 'tblTempUsageDetail_20' ) start [2025-07-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15475807', 'tblTempUsageDetail_20' ) end [2025-07-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475807', 'tblTempVendorCDR_20' ) start [2025-07-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15475807', 'tblTempVendorCDR_20' ) end [2025-07-15 08:25:18] Production.INFO: ProcessCDR(1,15475807,1,1,2) [2025-07-15 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15475807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15475807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15475807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15475807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475807', 'tblTempUsageDetail_20' ) start [2025-07-15 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15475807', 'tblTempUsageDetail_20' ) end [2025-07-15 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-15 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-15 08:25:25] Production.INFO: ==12976== Releasing lock... [2025-07-15 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 08:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-07-15 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 06:25:05 [end_date_ymd] => 2025-07-15 09:25:05 [RateCDR] => 1 ) [2025-07-15 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-15 06:25:05' and `end` < '2025-07-15 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-15 09:25:20] Production.INFO: count ==2517 [2025-07-15 09:25:21] Production.ERROR: pbx CDR StartTime 2025-07-15 06:25:05 - End Time 2025-07-15 09:25:05 [2025-07-15 09:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476054', 'tblTempUsageDetail_20' ) start [2025-07-15 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476054', 'tblTempUsageDetail_20' ) end [2025-07-15 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476054', 'tblTempVendorCDR_20' ) start [2025-07-15 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476054', 'tblTempVendorCDR_20' ) end [2025-07-15 09:25:21] Production.INFO: ProcessCDR(1,15476054,1,1,2) [2025-07-15 09:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15476054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 09:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15476054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 09:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15476054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 09:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15476054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476054', 'tblTempUsageDetail_20' ) start [2025-07-15 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476054', 'tblTempUsageDetail_20' ) end [2025-07-15 09:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-15 09:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-15 09:25:31] Production.INFO: ==18795== Releasing lock... [2025-07-15 09:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 09:25:31] Production.INFO: 47.5 MB #Memory Used# [2025-07-15 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 07:25:05 [end_date_ymd] => 2025-07-15 10:25:05 [RateCDR] => 1 ) [2025-07-15 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-15 07:25:05' and `end` < '2025-07-15 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-15 10:25:19] Production.INFO: count ==4962 [2025-07-15 10:25:22] Production.ERROR: pbx CDR StartTime 2025-07-15 07:25:05 - End Time 2025-07-15 10:25:05 [2025-07-15 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476301', 'tblTempUsageDetail_20' ) start [2025-07-15 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476301', 'tblTempUsageDetail_20' ) end [2025-07-15 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476301', 'tblTempVendorCDR_20' ) start [2025-07-15 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476301', 'tblTempVendorCDR_20' ) end [2025-07-15 10:25:22] Production.INFO: ProcessCDR(1,15476301,1,1,2) [2025-07-15 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15476301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15476301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15476301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15476301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476301', 'tblTempUsageDetail_20' ) start [2025-07-15 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476301', 'tblTempUsageDetail_20' ) end [2025-07-15 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-15 10:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-15 10:25:34] Production.INFO: ==23183== Releasing lock... [2025-07-15 10:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 10:25:34] Production.INFO: 65.25 MB #Memory Used# [2025-07-15 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 08:25:05 [end_date_ymd] => 2025-07-15 11:25:05 [RateCDR] => 1 ) [2025-07-15 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-15 08:25:05' and `end` < '2025-07-15 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-07-15 11:25:20] Production.INFO: count ==6373 [2025-07-15 11:25:24] Production.ERROR: pbx CDR StartTime 2025-07-15 08:25:05 - End Time 2025-07-15 11:25:05 [2025-07-15 11:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476548', 'tblTempUsageDetail_20' ) start [2025-07-15 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476548', 'tblTempUsageDetail_20' ) end [2025-07-15 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476548', 'tblTempVendorCDR_20' ) start [2025-07-15 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476548', 'tblTempVendorCDR_20' ) end [2025-07-15 11:25:24] Production.INFO: ProcessCDR(1,15476548,1,1,2) [2025-07-15 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15476548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15476548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15476548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15476548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476548', 'tblTempUsageDetail_20' ) start [2025-07-15 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476548', 'tblTempUsageDetail_20' ) end [2025-07-15 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-15 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-15 11:25:36] Production.INFO: ==27664== Releasing lock... [2025-07-15 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 11:25:36] Production.INFO: 76 MB #Memory Used# [2025-07-15 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 09:25:05 [end_date_ymd] => 2025-07-15 12:25:05 [RateCDR] => 1 ) [2025-07-15 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-15 09:25:05' and `end` < '2025-07-15 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-15 12:25:20] Production.INFO: count ==6198 [2025-07-15 12:25:23] Production.ERROR: pbx CDR StartTime 2025-07-15 09:25:05 - End Time 2025-07-15 12:25:05 [2025-07-15 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476795', 'tblTempUsageDetail_20' ) start [2025-07-15 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15476795', 'tblTempUsageDetail_20' ) end [2025-07-15 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476795', 'tblTempVendorCDR_20' ) start [2025-07-15 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15476795', 'tblTempVendorCDR_20' ) end [2025-07-15 12:25:24] Production.INFO: ProcessCDR(1,15476795,1,1,2) [2025-07-15 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15476795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15476795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15476795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15476795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476795', 'tblTempUsageDetail_20' ) start [2025-07-15 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15476795', 'tblTempUsageDetail_20' ) end [2025-07-15 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-15 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-15 12:25:34] Production.INFO: ==32129== Releasing lock... [2025-07-15 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 12:25:34] Production.INFO: 74.75 MB #Memory Used# [2025-07-15 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 10:25:05 [end_date_ymd] => 2025-07-15 13:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 10:25:05' and `end` < '2025-07-15 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-07-15 13:25:23] Production.INFO: count ==5523 [2025-07-15 13:25:25] Production.ERROR: pbx CDR StartTime 2025-07-15 10:25:05 - End Time 2025-07-15 13:25:05 [2025-07-15 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477042', 'tblTempUsageDetail_20' ) start [2025-07-15 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477042', 'tblTempUsageDetail_20' ) end [2025-07-15 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477042', 'tblTempVendorCDR_20' ) start [2025-07-15 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477042', 'tblTempVendorCDR_20' ) end [2025-07-15 13:25:26] Production.INFO: ProcessCDR(1,15477042,1,1,2) [2025-07-15 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15477042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15477042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15477042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15477042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477042', 'tblTempUsageDetail_20' ) start [2025-07-15 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477042', 'tblTempUsageDetail_20' ) end [2025-07-15 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-15 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-15 13:25:36] Production.INFO: ==5151== Releasing lock... [2025-07-15 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 13:25:36] Production.INFO: 69.5 MB #Memory Used# [2025-07-15 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 11:25:05 [end_date_ymd] => 2025-07-15 14:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 11:25:05' and `end` < '2025-07-15 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-07-15 14:25:20] Production.INFO: count ==5167 [2025-07-15 14:25:23] Production.ERROR: pbx CDR StartTime 2025-07-15 11:25:05 - End Time 2025-07-15 14:25:05 [2025-07-15 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477289', 'tblTempUsageDetail_20' ) start [2025-07-15 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477289', 'tblTempUsageDetail_20' ) end [2025-07-15 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477289', 'tblTempVendorCDR_20' ) start [2025-07-15 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477289', 'tblTempVendorCDR_20' ) end [2025-07-15 14:25:23] Production.INFO: ProcessCDR(1,15477289,1,1,2) [2025-07-15 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15477289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15477289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15477289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15477289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477289', 'tblTempUsageDetail_20' ) start [2025-07-15 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477289', 'tblTempUsageDetail_20' ) end [2025-07-15 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-15 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-15 14:25:33] Production.INFO: ==9509== Releasing lock... [2025-07-15 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 14:25:33] Production.INFO: 67 MB #Memory Used# [2025-07-15 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 12:25:05 [end_date_ymd] => 2025-07-15 15:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 12:25:05' and `end` < '2025-07-15 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-07-15 15:25:21] Production.INFO: count ==5704 [2025-07-15 15:25:24] Production.ERROR: pbx CDR StartTime 2025-07-15 12:25:05 - End Time 2025-07-15 15:25:05 [2025-07-15 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477536', 'tblTempUsageDetail_20' ) start [2025-07-15 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477536', 'tblTempUsageDetail_20' ) end [2025-07-15 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477536', 'tblTempVendorCDR_20' ) start [2025-07-15 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477536', 'tblTempVendorCDR_20' ) end [2025-07-15 15:25:24] Production.INFO: ProcessCDR(1,15477536,1,1,2) [2025-07-15 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15477536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15477536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15477536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15477536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477536', 'tblTempUsageDetail_20' ) start [2025-07-15 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477536', 'tblTempUsageDetail_20' ) end [2025-07-15 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-15 15:25:37] Production.ERROR: pbx prc_insertCDR end [2025-07-15 15:25:37] Production.INFO: ==14305== Releasing lock... [2025-07-15 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 15:25:37] Production.INFO: 71.25 MB #Memory Used# [2025-07-15 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 13:25:06 [end_date_ymd] => 2025-07-15 16:25:06 [RateCDR] => 1 ) [2025-07-15 16: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-07-15 13:25:06' and `end` < '2025-07-15 16: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-07-15 16:25:22] Production.INFO: count ==5830 [2025-07-15 16:25:25] Production.ERROR: pbx CDR StartTime 2025-07-15 13:25:06 - End Time 2025-07-15 16:25:06 [2025-07-15 16:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477783', 'tblTempUsageDetail_20' ) start [2025-07-15 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15477783', 'tblTempUsageDetail_20' ) end [2025-07-15 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477783', 'tblTempVendorCDR_20' ) start [2025-07-15 16:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15477783', 'tblTempVendorCDR_20' ) end [2025-07-15 16:25:25] Production.INFO: ProcessCDR(1,15477783,1,1,2) [2025-07-15 16:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15477783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15477783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15477783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15477783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477783', 'tblTempUsageDetail_20' ) start [2025-07-15 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15477783', 'tblTempUsageDetail_20' ) end [2025-07-15 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-15 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-15 16:25:36] Production.INFO: ==18529== Releasing lock... [2025-07-15 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 16:25:36] Production.INFO: 72.25 MB #Memory Used# [2025-07-15 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 14:25:05 [end_date_ymd] => 2025-07-15 17:25:05 [RateCDR] => 1 ) [2025-07-15 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-15 14:25:05' and `end` < '2025-07-15 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-15 17:25:19] Production.INFO: count ==5662 [2025-07-15 17:25:22] Production.ERROR: pbx CDR StartTime 2025-07-15 14:25:05 - End Time 2025-07-15 17:25:05 [2025-07-15 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478030', 'tblTempUsageDetail_20' ) start [2025-07-15 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478030', 'tblTempUsageDetail_20' ) end [2025-07-15 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478030', 'tblTempVendorCDR_20' ) start [2025-07-15 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478030', 'tblTempVendorCDR_20' ) end [2025-07-15 17:25:22] Production.INFO: ProcessCDR(1,15478030,1,1,2) [2025-07-15 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15478030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15478030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15478030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15478030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478030', 'tblTempUsageDetail_20' ) start [2025-07-15 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478030', 'tblTempUsageDetail_20' ) end [2025-07-15 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-15 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-15 17:25:32] Production.INFO: ==23028== Releasing lock... [2025-07-15 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 17:25:32] Production.INFO: 70.5 MB #Memory Used# [2025-07-15 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 15:25:05 [end_date_ymd] => 2025-07-15 18:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 15:25:05' and `end` < '2025-07-15 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-07-15 18:25:18] Production.INFO: count ==4248 [2025-07-15 18:25:20] Production.ERROR: pbx CDR StartTime 2025-07-15 15:25:05 - End Time 2025-07-15 18:25:05 [2025-07-15 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478277', 'tblTempUsageDetail_20' ) start [2025-07-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478277', 'tblTempUsageDetail_20' ) end [2025-07-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478277', 'tblTempVendorCDR_20' ) start [2025-07-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478277', 'tblTempVendorCDR_20' ) end [2025-07-15 18:25:20] Production.INFO: ProcessCDR(1,15478277,1,1,2) [2025-07-15 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15478277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15478277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15478277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 18:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15478277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 18:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478277', 'tblTempUsageDetail_20' ) start [2025-07-15 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478277', 'tblTempUsageDetail_20' ) end [2025-07-15 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-15 18:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-15 18:25:29] Production.INFO: ==27557== Releasing lock... [2025-07-15 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 18:25:29] Production.INFO: 60 MB #Memory Used# [2025-07-15 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 16:25:05 [end_date_ymd] => 2025-07-15 19:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 16:25:05' and `end` < '2025-07-15 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-07-15 19:25:18] Production.INFO: count ==2944 [2025-07-15 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-15 16:25:05 - End Time 2025-07-15 19:25:05 [2025-07-15 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478521', 'tblTempUsageDetail_20' ) start [2025-07-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478521', 'tblTempUsageDetail_20' ) end [2025-07-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478521', 'tblTempVendorCDR_20' ) start [2025-07-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478521', 'tblTempVendorCDR_20' ) end [2025-07-15 19:25:19] Production.INFO: ProcessCDR(1,15478521,1,1,2) [2025-07-15 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15478521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15478521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15478521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15478521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478521', 'tblTempUsageDetail_20' ) start [2025-07-15 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478521', 'tblTempUsageDetail_20' ) end [2025-07-15 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-15 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-15 19:25:27] Production.INFO: ==31960== Releasing lock... [2025-07-15 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 19:25:27] Production.INFO: 50.5 MB #Memory Used# [2025-07-15 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 17:25:05 [end_date_ymd] => 2025-07-15 20:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 17:25:05' and `end` < '2025-07-15 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-07-15 20:25:18] Production.INFO: count ==2008 [2025-07-15 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-15 17:25:05 - End Time 2025-07-15 20:25:05 [2025-07-15 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478768', 'tblTempUsageDetail_20' ) start [2025-07-15 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15478768', 'tblTempUsageDetail_20' ) end [2025-07-15 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478768', 'tblTempVendorCDR_20' ) start [2025-07-15 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15478768', 'tblTempVendorCDR_20' ) end [2025-07-15 20:25:19] Production.INFO: ProcessCDR(1,15478768,1,1,2) [2025-07-15 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15478768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15478768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15478768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15478768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478768', 'tblTempUsageDetail_20' ) start [2025-07-15 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15478768', 'tblTempUsageDetail_20' ) end [2025-07-15 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-15 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-15 20:25:26] Production.INFO: ==4323== Releasing lock... [2025-07-15 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 20:25:26] Production.INFO: 43.75 MB #Memory Used# [2025-07-15 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 18:25:05 [end_date_ymd] => 2025-07-15 21:25:05 [RateCDR] => 1 ) [2025-07-15 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-15 18:25:05' and `end` < '2025-07-15 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-15 21:25:18] Production.INFO: count ==1494 [2025-07-15 21:25:19] Production.ERROR: pbx CDR StartTime 2025-07-15 18:25:05 - End Time 2025-07-15 21:25:05 [2025-07-15 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479015', 'tblTempUsageDetail_20' ) start [2025-07-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479015', 'tblTempUsageDetail_20' ) end [2025-07-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479015', 'tblTempVendorCDR_20' ) start [2025-07-15 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479015', 'tblTempVendorCDR_20' ) end [2025-07-15 21:25:19] Production.INFO: ProcessCDR(1,15479015,1,1,2) [2025-07-15 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15479015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15479015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15479015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15479015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479015', 'tblTempUsageDetail_20' ) start [2025-07-15 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479015', 'tblTempUsageDetail_20' ) end [2025-07-15 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-15 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-15 21:25:26] Production.INFO: ==8889== Releasing lock... [2025-07-15 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 21:25:26] Production.INFO: 39.25 MB #Memory Used# [2025-07-15 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 19:25:05 [end_date_ymd] => 2025-07-15 22:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 19:25:05' and `end` < '2025-07-15 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-07-15 22:25:17] Production.INFO: count ==1155 [2025-07-15 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-15 19:25:05 - End Time 2025-07-15 22:25:05 [2025-07-15 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479262', 'tblTempUsageDetail_20' ) start [2025-07-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479262', 'tblTempUsageDetail_20' ) end [2025-07-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479262', 'tblTempVendorCDR_20' ) start [2025-07-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479262', 'tblTempVendorCDR_20' ) end [2025-07-15 22:25:18] Production.INFO: ProcessCDR(1,15479262,1,1,2) [2025-07-15 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15479262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15479262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15479262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15479262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479262', 'tblTempUsageDetail_20' ) start [2025-07-15 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479262', 'tblTempUsageDetail_20' ) end [2025-07-15 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-15 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-15 22:25:25] Production.INFO: ==13805== Releasing lock... [2025-07-15 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 22:25:25] Production.INFO: 36.75 MB #Memory Used# [2025-07-15 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 20:25:05 [end_date_ymd] => 2025-07-15 23:25:05 [RateCDR] => 1 ) [2025-07-15 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-07-15 20:25:05' and `end` < '2025-07-15 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-07-15 23:25:18] Production.INFO: count ==942 [2025-07-15 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-15 20:25:05 - End Time 2025-07-15 23:25:05 [2025-07-15 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479508', 'tblTempUsageDetail_20' ) start [2025-07-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479508', 'tblTempUsageDetail_20' ) end [2025-07-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479508', 'tblTempVendorCDR_20' ) start [2025-07-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479508', 'tblTempVendorCDR_20' ) end [2025-07-15 23:25:18] Production.INFO: ProcessCDR(1,15479508,1,1,2) [2025-07-15 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15479508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15479508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-15 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15479508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15479508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-15 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479508', 'tblTempUsageDetail_20' ) start [2025-07-15 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479508', 'tblTempUsageDetail_20' ) end [2025-07-15 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-15 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-15 23:25:25] Production.INFO: ==18149== Releasing lock... [2025-07-15 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-15 23:25:25] Production.INFO: 35 MB #Memory Used#