[2025-07-16 00:25:04] Production.INFO: next invoice date [2025-07-16 00:25:04] Production.INFO: 2025-08-16 [2025-07-16 00:25:04] Production.INFO: getdaysdiff [2025-07-16 00:25:04] Production.INFO: +31 [2025-07-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,31,31,'RMScheduler',2025-07-16 00:25:04,1,0,,,0) [2025-07-16 00:25:04] Production.INFO: next invoice date [2025-07-16 00:25:04] Production.INFO: 2025-08-16 [2025-07-16 00:25:04] Production.INFO: getdaysdiff [2025-07-16 00:25:04] Production.INFO: +31 [2025-07-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,31,31,'RMScheduler',2025-07-16 00:25:04,1,0,,,0) [2025-07-16 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 21:25:05 [end_date_ymd] => 2025-07-16 00:25:05 [RateCDR] => 1 ) [2025-07-16 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-07-15 21:25:05' and `end` < '2025-07-16 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-07-16 00:25:17] Production.INFO: count ==512 [2025-07-16 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-15 21:25:05 - End Time 2025-07-16 00:25:05 [2025-07-16 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479756', 'tblTempUsageDetail_20' ) start [2025-07-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15479756', 'tblTempUsageDetail_20' ) end [2025-07-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479756', 'tblTempVendorCDR_20' ) start [2025-07-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15479756', 'tblTempVendorCDR_20' ) end [2025-07-16 00:25:18] Production.INFO: ProcessCDR(1,15479756,1,1,2) [2025-07-16 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15479756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15479756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15479756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15479756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479756', 'tblTempUsageDetail_20' ) start [2025-07-16 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15479756', 'tblTempUsageDetail_20' ) end [2025-07-16 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-16 00:25:26] Production.INFO: ==22820== Releasing lock... [2025-07-16 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 00:25:26] Production.INFO: 36.5 MB #Memory Used# [2025-07-16 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 22:25:06 [end_date_ymd] => 2025-07-16 01:25:06 [RateCDR] => 1 ) [2025-07-16 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-07-15 22:25:06' and `end` < '2025-07-16 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-07-16 01:25:18] Production.INFO: count ==503 [2025-07-16 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-15 22:25:06 - End Time 2025-07-16 01:25:06 [2025-07-16 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480003', 'tblTempUsageDetail_20' ) start [2025-07-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480003', 'tblTempUsageDetail_20' ) end [2025-07-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480003', 'tblTempVendorCDR_20' ) start [2025-07-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480003', 'tblTempVendorCDR_20' ) end [2025-07-16 01:25:18] Production.INFO: ProcessCDR(1,15480003,1,1,2) [2025-07-16 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15480003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15480003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15480003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15480003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480003', 'tblTempUsageDetail_20' ) start [2025-07-16 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480003', 'tblTempUsageDetail_20' ) end [2025-07-16 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-16 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-16 01:25:25] Production.INFO: ==27373== Releasing lock... [2025-07-16 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 01:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-07-16 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-15 23:25:05 [end_date_ymd] => 2025-07-16 02:25:05 [RateCDR] => 1 ) [2025-07-16 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-15 23:25:05' and `end` < '2025-07-16 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-16 02:25:17] Production.INFO: count ==363 [2025-07-16 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-15 23:25:05 - End Time 2025-07-16 02:25:05 [2025-07-16 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480250', 'tblTempUsageDetail_20' ) start [2025-07-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480250', 'tblTempUsageDetail_20' ) end [2025-07-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480250', 'tblTempVendorCDR_20' ) start [2025-07-16 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480250', 'tblTempVendorCDR_20' ) end [2025-07-16 02:25:17] Production.INFO: ProcessCDR(1,15480250,1,1,2) [2025-07-16 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15480250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15480250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15480250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15480250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480250', 'tblTempUsageDetail_20' ) start [2025-07-16 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480250', 'tblTempUsageDetail_20' ) end [2025-07-16 02:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-16 02:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-16 02:25:23] Production.INFO: ==31859== Releasing lock... [2025-07-16 02:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 02:25:23] Production.INFO: 31.25 MB #Memory Used# [2025-07-16 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 00:25:05 [end_date_ymd] => 2025-07-16 03:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 00:25:05' and `end` < '2025-07-16 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-16 03:25:17] Production.INFO: count ==348 [2025-07-16 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-16 00:25:05 - End Time 2025-07-16 03:25:05 [2025-07-16 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480497', 'tblTempUsageDetail_20' ) start [2025-07-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480497', 'tblTempUsageDetail_20' ) end [2025-07-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480497', 'tblTempVendorCDR_20' ) start [2025-07-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480497', 'tblTempVendorCDR_20' ) end [2025-07-16 03:25:17] Production.INFO: ProcessCDR(1,15480497,1,1,2) [2025-07-16 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15480497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15480497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15480497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15480497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480497', 'tblTempUsageDetail_20' ) start [2025-07-16 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480497', 'tblTempUsageDetail_20' ) end [2025-07-16 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-16 03:25:24] Production.INFO: ==4609== Releasing lock... [2025-07-16 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 03:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-07-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 01:25:05 [end_date_ymd] => 2025-07-16 04:25:05 [RateCDR] => 1 ) [2025-07-16 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-16 01:25:05' and `end` < '2025-07-16 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-16 04:25:18] Production.INFO: count ==227 [2025-07-16 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 01:25:05 - End Time 2025-07-16 04:25:05 [2025-07-16 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480745', 'tblTempUsageDetail_20' ) start [2025-07-16 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480745', 'tblTempUsageDetail_20' ) end [2025-07-16 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480745', 'tblTempVendorCDR_20' ) start [2025-07-16 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480745', 'tblTempVendorCDR_20' ) end [2025-07-16 04:25:18] Production.INFO: ProcessCDR(1,15480745,1,1,2) [2025-07-16 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15480745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15480745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15480745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15480745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480745', 'tblTempUsageDetail_20' ) start [2025-07-16 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480745', 'tblTempUsageDetail_20' ) end [2025-07-16 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-16 04:25:24] Production.INFO: ==9440== Releasing lock... [2025-07-16 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 04:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-16 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 02:25:05 [end_date_ymd] => 2025-07-16 05:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 02:25:05' and `end` < '2025-07-16 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-16 05:25:18] Production.INFO: count ==197 [2025-07-16 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 02:25:05 - End Time 2025-07-16 05:25:05 [2025-07-16 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480993', 'tblTempUsageDetail_20' ) start [2025-07-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15480993', 'tblTempUsageDetail_20' ) end [2025-07-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480993', 'tblTempVendorCDR_20' ) start [2025-07-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15480993', 'tblTempVendorCDR_20' ) end [2025-07-16 05:25:18] Production.INFO: ProcessCDR(1,15480993,1,1,2) [2025-07-16 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15480993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15480993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15480993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15480993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480993', 'tblTempUsageDetail_20' ) start [2025-07-16 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15480993', 'tblTempUsageDetail_20' ) end [2025-07-16 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-16 05:25:24] Production.INFO: ==14167== Releasing lock... [2025-07-16 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 05:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-16 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 03:25:05 [end_date_ymd] => 2025-07-16 06:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 03:25:05' and `end` < '2025-07-16 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-16 06:25:17] Production.INFO: count ==158 [2025-07-16 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-16 03:25:05 - End Time 2025-07-16 06:25:05 [2025-07-16 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481240', 'tblTempUsageDetail_20' ) start [2025-07-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481240', 'tblTempUsageDetail_20' ) end [2025-07-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481240', 'tblTempVendorCDR_20' ) start [2025-07-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481240', 'tblTempVendorCDR_20' ) end [2025-07-16 06:25:17] Production.INFO: ProcessCDR(1,15481240,1,1,2) [2025-07-16 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15481240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15481240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15481240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15481240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481240', 'tblTempUsageDetail_20' ) start [2025-07-16 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481240', 'tblTempUsageDetail_20' ) end [2025-07-16 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-16 06:25:24] Production.INFO: ==18642== Releasing lock... [2025-07-16 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-16 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 04:25:05 [end_date_ymd] => 2025-07-16 07:25:05 [RateCDR] => 1 ) [2025-07-16 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-16 04:25:05' and `end` < '2025-07-16 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-16 07:25:17] Production.INFO: count ==161 [2025-07-16 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-16 04:25:05 - End Time 2025-07-16 07:25:05 [2025-07-16 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481487', 'tblTempUsageDetail_20' ) start [2025-07-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481487', 'tblTempUsageDetail_20' ) end [2025-07-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481487', 'tblTempVendorCDR_20' ) start [2025-07-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481487', 'tblTempVendorCDR_20' ) end [2025-07-16 07:25:17] Production.INFO: ProcessCDR(1,15481487,1,1,2) [2025-07-16 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15481487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15481487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15481487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15481487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481487', 'tblTempUsageDetail_20' ) start [2025-07-16 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481487', 'tblTempUsageDetail_20' ) end [2025-07-16 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-16 07:25:24] Production.INFO: ==23588== Releasing lock... [2025-07-16 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-16 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 05:25:05 [end_date_ymd] => 2025-07-16 08:25:05 [RateCDR] => 1 ) [2025-07-16 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-16 05:25:05' and `end` < '2025-07-16 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-16 08:25:18] Production.INFO: count ==391 [2025-07-16 08:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 05:25:05 - End Time 2025-07-16 08:25:05 [2025-07-16 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481734', 'tblTempUsageDetail_20' ) start [2025-07-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481734', 'tblTempUsageDetail_20' ) end [2025-07-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481734', 'tblTempVendorCDR_20' ) start [2025-07-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481734', 'tblTempVendorCDR_20' ) end [2025-07-16 08:25:18] Production.INFO: ProcessCDR(1,15481734,1,1,2) [2025-07-16 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15481734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15481734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15481734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15481734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481734', 'tblTempUsageDetail_20' ) start [2025-07-16 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481734', 'tblTempUsageDetail_20' ) end [2025-07-16 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-16 08:25:25] Production.INFO: ==28227== Releasing lock... [2025-07-16 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 08:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-07-16 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 06:25:05 [end_date_ymd] => 2025-07-16 09:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 06:25:05' and `end` < '2025-07-16 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-16 09:25:18] Production.INFO: count ==1225 [2025-07-16 09:25:19] Production.ERROR: pbx CDR StartTime 2025-07-16 06:25:05 - End Time 2025-07-16 09:25:05 [2025-07-16 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481981', 'tblTempUsageDetail_20' ) start [2025-07-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15481981', 'tblTempUsageDetail_20' ) end [2025-07-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481981', 'tblTempVendorCDR_20' ) start [2025-07-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15481981', 'tblTempVendorCDR_20' ) end [2025-07-16 09:25:19] Production.INFO: ProcessCDR(1,15481981,1,1,2) [2025-07-16 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15481981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15481981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15481981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15481981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481981', 'tblTempUsageDetail_20' ) start [2025-07-16 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15481981', 'tblTempUsageDetail_20' ) end [2025-07-16 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-16 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-16 09:25:27] Production.INFO: ==502== Releasing lock... [2025-07-16 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 09:25:27] Production.INFO: 38 MB #Memory Used# [2025-07-16 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 07:25:05 [end_date_ymd] => 2025-07-16 10:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 07:25:05' and `end` < '2025-07-16 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-16 10:25:19] Production.INFO: count ==2540 [2025-07-16 10:25:21] Production.ERROR: pbx CDR StartTime 2025-07-16 07:25:05 - End Time 2025-07-16 10:25:05 [2025-07-16 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482228', 'tblTempUsageDetail_20' ) start [2025-07-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482228', 'tblTempUsageDetail_20' ) end [2025-07-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482228', 'tblTempVendorCDR_20' ) start [2025-07-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482228', 'tblTempVendorCDR_20' ) end [2025-07-16 10:25:21] Production.INFO: ProcessCDR(1,15482228,1,1,2) [2025-07-16 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15482228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15482228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15482228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15482228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482228', 'tblTempUsageDetail_20' ) start [2025-07-16 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482228', 'tblTempUsageDetail_20' ) end [2025-07-16 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-16 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-16 10:25:30] Production.INFO: ==4840== Releasing lock... [2025-07-16 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 10:25:30] Production.INFO: 47.75 MB #Memory Used# [2025-07-16 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 08:25:05 [end_date_ymd] => 2025-07-16 11:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 08:25:05' and `end` < '2025-07-16 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-16 11:25:19] Production.INFO: count ==3873 [2025-07-16 11:25:21] Production.ERROR: pbx CDR StartTime 2025-07-16 08:25:05 - End Time 2025-07-16 11:25:05 [2025-07-16 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482475', 'tblTempUsageDetail_20' ) start [2025-07-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482475', 'tblTempUsageDetail_20' ) end [2025-07-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482475', 'tblTempVendorCDR_20' ) start [2025-07-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482475', 'tblTempVendorCDR_20' ) end [2025-07-16 11:25:21] Production.INFO: ProcessCDR(1,15482475,1,1,2) [2025-07-16 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15482475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 11:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15482475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 11:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15482475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15482475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482475', 'tblTempUsageDetail_20' ) start [2025-07-16 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482475', 'tblTempUsageDetail_20' ) end [2025-07-16 11:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-16 11:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-16 11:25:31] Production.INFO: ==9342== Releasing lock... [2025-07-16 11:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 11:25:31] Production.INFO: 57.25 MB #Memory Used# [2025-07-16 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 09:25:05 [end_date_ymd] => 2025-07-16 12:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 09:25:05' and `end` < '2025-07-16 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-16 12:25:23] Production.INFO: count ==4967 [2025-07-16 12:25:25] Production.ERROR: pbx CDR StartTime 2025-07-16 09:25:05 - End Time 2025-07-16 12:25:05 [2025-07-16 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482722', 'tblTempUsageDetail_20' ) start [2025-07-16 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482722', 'tblTempUsageDetail_20' ) end [2025-07-16 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482722', 'tblTempVendorCDR_20' ) start [2025-07-16 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482722', 'tblTempVendorCDR_20' ) end [2025-07-16 12:25:26] Production.INFO: ProcessCDR(1,15482722,1,1,2) [2025-07-16 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15482722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 12:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15482722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 12:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15482722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 12:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15482722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482722', 'tblTempUsageDetail_20' ) start [2025-07-16 12:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482722', 'tblTempUsageDetail_20' ) end [2025-07-16 12:25:34] Production.ERROR: pbx prc_insertCDR start [2025-07-16 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-16 12:25:36] Production.INFO: ==13572== Releasing lock... [2025-07-16 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 12:25:36] Production.INFO: 65.25 MB #Memory Used# [2025-07-16 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 10:25:05 [end_date_ymd] => 2025-07-16 13:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 10:25:05' and `end` < '2025-07-16 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-16 13:25:20] Production.INFO: count ==5258 [2025-07-16 13:25:22] Production.ERROR: pbx CDR StartTime 2025-07-16 10:25:05 - End Time 2025-07-16 13:25:05 [2025-07-16 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482969', 'tblTempUsageDetail_20' ) start [2025-07-16 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15482969', 'tblTempUsageDetail_20' ) end [2025-07-16 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482969', 'tblTempVendorCDR_20' ) start [2025-07-16 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15482969', 'tblTempVendorCDR_20' ) end [2025-07-16 13:25:23] Production.INFO: ProcessCDR(1,15482969,1,1,2) [2025-07-16 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15482969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15482969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15482969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15482969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482969', 'tblTempUsageDetail_20' ) start [2025-07-16 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15482969', 'tblTempUsageDetail_20' ) end [2025-07-16 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-16 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-16 13:25:35] Production.INFO: ==17963== Releasing lock... [2025-07-16 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 13:25:35] Production.INFO: 67.5 MB #Memory Used# [2025-07-16 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 11:25:05 [end_date_ymd] => 2025-07-16 14:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 11:25:05' and `end` < '2025-07-16 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-16 14:25:21] Production.INFO: count ==5263 [2025-07-16 14:25:23] Production.ERROR: pbx CDR StartTime 2025-07-16 11:25:05 - End Time 2025-07-16 14:25:05 [2025-07-16 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483216', 'tblTempUsageDetail_20' ) start [2025-07-16 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483216', 'tblTempUsageDetail_20' ) end [2025-07-16 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483216', 'tblTempVendorCDR_20' ) start [2025-07-16 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483216', 'tblTempVendorCDR_20' ) end [2025-07-16 14:25:24] Production.INFO: ProcessCDR(1,15483216,1,1,2) [2025-07-16 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15483216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15483216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15483216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15483216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483216', 'tblTempUsageDetail_20' ) start [2025-07-16 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483216', 'tblTempUsageDetail_20' ) end [2025-07-16 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-16 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-16 14:25:34] Production.INFO: ==22522== Releasing lock... [2025-07-16 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 14:25:34] Production.INFO: 67.5 MB #Memory Used# [2025-07-16 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 12:25:06 [end_date_ymd] => 2025-07-16 15:25:06 [RateCDR] => 1 ) [2025-07-16 15: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-16 12:25:06' and `end` < '2025-07-16 15: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-16 15:25:20] Production.INFO: count ==5091 [2025-07-16 15:25:22] Production.ERROR: pbx CDR StartTime 2025-07-16 12:25:06 - End Time 2025-07-16 15:25:06 [2025-07-16 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483463', 'tblTempUsageDetail_20' ) start [2025-07-16 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483463', 'tblTempUsageDetail_20' ) end [2025-07-16 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483463', 'tblTempVendorCDR_20' ) start [2025-07-16 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483463', 'tblTempVendorCDR_20' ) end [2025-07-16 15:25:23] Production.INFO: ProcessCDR(1,15483463,1,1,2) [2025-07-16 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15483463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15483463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15483463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15483463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483463', 'tblTempUsageDetail_20' ) start [2025-07-16 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483463', 'tblTempUsageDetail_20' ) end [2025-07-16 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-16 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-16 15:25:33] Production.INFO: ==27384== Releasing lock... [2025-07-16 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 15:25:33] Production.INFO: 66.25 MB #Memory Used# [2025-07-16 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 13:25:05 [end_date_ymd] => 2025-07-16 16:25:05 [RateCDR] => 1 ) [2025-07-16 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-07-16 13:25:05' and `end` < '2025-07-16 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-07-16 16:25:22] Production.INFO: count ==5094 [2025-07-16 16:25:24] Production.ERROR: pbx CDR StartTime 2025-07-16 13:25:05 - End Time 2025-07-16 16:25:05 [2025-07-16 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483710', 'tblTempUsageDetail_20' ) start [2025-07-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483710', 'tblTempUsageDetail_20' ) end [2025-07-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483710', 'tblTempVendorCDR_20' ) start [2025-07-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483710', 'tblTempVendorCDR_20' ) end [2025-07-16 16:25:24] Production.INFO: ProcessCDR(1,15483710,1,1,2) [2025-07-16 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15483710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15483710,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15483710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15483710,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483710', 'tblTempUsageDetail_20' ) start [2025-07-16 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483710', 'tblTempUsageDetail_20' ) end [2025-07-16 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-16 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-16 16:25:34] Production.INFO: ==32264== Releasing lock... [2025-07-16 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 16:25:34] Production.INFO: 66.25 MB #Memory Used# [2025-07-16 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 14:25:05 [end_date_ymd] => 2025-07-16 17:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 14:25:05' and `end` < '2025-07-16 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-16 17:25:19] Production.INFO: count ==4763 [2025-07-16 17:25:21] Production.ERROR: pbx CDR StartTime 2025-07-16 14:25:05 - End Time 2025-07-16 17:25:05 [2025-07-16 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483957', 'tblTempUsageDetail_20' ) start [2025-07-16 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15483957', 'tblTempUsageDetail_20' ) end [2025-07-16 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483957', 'tblTempVendorCDR_20' ) start [2025-07-16 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15483957', 'tblTempVendorCDR_20' ) end [2025-07-16 17:25:22] Production.INFO: ProcessCDR(1,15483957,1,1,2) [2025-07-16 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15483957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15483957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15483957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15483957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483957', 'tblTempUsageDetail_20' ) start [2025-07-16 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15483957', 'tblTempUsageDetail_20' ) end [2025-07-16 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-16 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-16 17:25:32] Production.INFO: ==5137== Releasing lock... [2025-07-16 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 17:25:32] Production.INFO: 63.75 MB #Memory Used# [2025-07-16 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 15:25:06 [end_date_ymd] => 2025-07-16 18:25:06 [RateCDR] => 1 ) [2025-07-16 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-16 15:25:06' and `end` < '2025-07-16 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-16 18:25:19] Production.INFO: count ==3926 [2025-07-16 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-16 15:25:06 - End Time 2025-07-16 18:25:06 [2025-07-16 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484204', 'tblTempUsageDetail_20' ) start [2025-07-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484204', 'tblTempUsageDetail_20' ) end [2025-07-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484204', 'tblTempVendorCDR_20' ) start [2025-07-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484204', 'tblTempVendorCDR_20' ) end [2025-07-16 18:25:21] Production.INFO: ProcessCDR(1,15484204,1,1,2) [2025-07-16 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15484204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15484204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15484204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 18:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15484204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 18:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484204', 'tblTempUsageDetail_20' ) start [2025-07-16 18:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484204', 'tblTempUsageDetail_20' ) end [2025-07-16 18:26:35] Production.ERROR: pbx prc_insertCDR start [2025-07-16 18:26:36] Production.ERROR: pbx prc_insertCDR end [2025-07-16 18:26:45] Production.INFO: ==10015== Releasing lock... [2025-07-16 18:26:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 18:26:45] Production.INFO: 57.5 MB #Memory Used# [2025-07-16 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 16:25:05 [end_date_ymd] => 2025-07-16 19:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 16:25:05' and `end` < '2025-07-16 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-16 19:25:18] Production.INFO: count ==2996 [2025-07-16 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-16 16:25:05 - End Time 2025-07-16 19:25:05 [2025-07-16 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484448', 'tblTempUsageDetail_20' ) start [2025-07-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484448', 'tblTempUsageDetail_20' ) end [2025-07-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484448', 'tblTempVendorCDR_20' ) start [2025-07-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484448', 'tblTempVendorCDR_20' ) end [2025-07-16 19:25:19] Production.INFO: ProcessCDR(1,15484448,1,1,2) [2025-07-16 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15484448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15484448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15484448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15484448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484448', 'tblTempUsageDetail_20' ) start [2025-07-16 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484448', 'tblTempUsageDetail_20' ) end [2025-07-16 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-16 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-16 19:25:27] Production.INFO: ==15023== Releasing lock... [2025-07-16 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 19:25:27] Production.INFO: 50.75 MB #Memory Used# [2025-07-16 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 17:25:05 [end_date_ymd] => 2025-07-16 20:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 17:25:05' and `end` < '2025-07-16 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-16 20:25:19] Production.INFO: count ==2154 [2025-07-16 20:25:20] Production.ERROR: pbx CDR StartTime 2025-07-16 17:25:05 - End Time 2025-07-16 20:25:05 [2025-07-16 20:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484695', 'tblTempUsageDetail_20' ) start [2025-07-16 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484695', 'tblTempUsageDetail_20' ) end [2025-07-16 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484695', 'tblTempVendorCDR_20' ) start [2025-07-16 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484695', 'tblTempVendorCDR_20' ) end [2025-07-16 20:25:20] Production.INFO: ProcessCDR(1,15484695,1,1,2) [2025-07-16 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15484695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15484695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15484695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15484695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484695', 'tblTempUsageDetail_20' ) start [2025-07-16 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484695', 'tblTempUsageDetail_20' ) end [2025-07-16 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-16 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-16 20:25:28] Production.INFO: ==20270== Releasing lock... [2025-07-16 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 20:25:28] Production.INFO: 44.25 MB #Memory Used# [2025-07-16 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 18:25:05 [end_date_ymd] => 2025-07-16 21:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 18:25:05' and `end` < '2025-07-16 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-16 21:25:17] Production.INFO: count ==1668 [2025-07-16 21:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 18:25:05 - End Time 2025-07-16 21:25:05 [2025-07-16 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484942', 'tblTempUsageDetail_20' ) start [2025-07-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15484942', 'tblTempUsageDetail_20' ) end [2025-07-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484942', 'tblTempVendorCDR_20' ) start [2025-07-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15484942', 'tblTempVendorCDR_20' ) end [2025-07-16 21:25:18] Production.INFO: ProcessCDR(1,15484942,1,1,2) [2025-07-16 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15484942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15484942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15484942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15484942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484942', 'tblTempUsageDetail_20' ) start [2025-07-16 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15484942', 'tblTempUsageDetail_20' ) end [2025-07-16 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-16 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-16 21:25:25] Production.INFO: ==25175== Releasing lock... [2025-07-16 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 21:25:25] Production.INFO: 40.75 MB #Memory Used# [2025-07-16 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 19:25:05 [end_date_ymd] => 2025-07-16 22:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 19:25:05' and `end` < '2025-07-16 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-16 22:25:18] Production.INFO: count ==1236 [2025-07-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-16 19:25:05 - End Time 2025-07-16 22:25:05 [2025-07-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485189', 'tblTempUsageDetail_20' ) start [2025-07-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485189', 'tblTempUsageDetail_20' ) end [2025-07-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485189', 'tblTempVendorCDR_20' ) start [2025-07-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485189', 'tblTempVendorCDR_20' ) end [2025-07-16 22:25:18] Production.INFO: ProcessCDR(1,15485189,1,1,2) [2025-07-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15485189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15485189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15485189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15485189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485189', 'tblTempUsageDetail_20' ) start [2025-07-16 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485189', 'tblTempUsageDetail_20' ) end [2025-07-16 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-16 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-16 22:25:25] Production.INFO: ==30719== Releasing lock... [2025-07-16 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 22:25:25] Production.INFO: 37.75 MB #Memory Used# [2025-07-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-16 20:25:05 [end_date_ymd] => 2025-07-16 23:25:05 [RateCDR] => 1 ) [2025-07-16 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-16 20:25:05' and `end` < '2025-07-16 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-16 23:25:17] Production.INFO: count ==976 [2025-07-16 23:25:17] Production.ERROR: pbx CDR StartTime 2025-07-16 20:25:05 - End Time 2025-07-16 23:25:05 [2025-07-16 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485436', 'tblTempUsageDetail_20' ) start [2025-07-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15485436', 'tblTempUsageDetail_20' ) end [2025-07-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485436', 'tblTempVendorCDR_20' ) start [2025-07-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15485436', 'tblTempVendorCDR_20' ) end [2025-07-16 23:25:17] Production.INFO: ProcessCDR(1,15485436,1,1,2) [2025-07-16 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15485436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15485436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-16 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15485436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15485436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-16 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485436', 'tblTempUsageDetail_20' ) start [2025-07-16 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15485436', 'tblTempUsageDetail_20' ) end [2025-07-16 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-16 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-16 23:25:24] Production.INFO: ==3458== Releasing lock... [2025-07-16 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-16 23:25:24] Production.INFO: 36 MB #Memory Used#