[2025-08-21 00:25:04] Production.INFO: next invoice date [2025-08-21 00:25:04] Production.INFO: 2025-09-21 [2025-08-21 00:25:04] Production.INFO: getdaysdiff [2025-08-21 00:25:04] Production.INFO: +31 [2025-08-21 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,31,31,'RMScheduler',2025-08-21 00:25:04,1,0,,,0) [2025-08-21 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 21:25:06 [end_date_ymd] => 2025-08-21 00:25:06 [RateCDR] => 1 ) [2025-08-21 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-08-20 21:25:06' and `end` < '2025-08-21 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-08-21 00:25:18] Production.INFO: count ==556 [2025-08-21 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 21:25:06 - End Time 2025-08-21 00:25:06 [2025-08-21 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693131', 'tblTempUsageDetail_20' ) start [2025-08-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693131', 'tblTempUsageDetail_20' ) end [2025-08-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693131', 'tblTempVendorCDR_20' ) start [2025-08-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693131', 'tblTempVendorCDR_20' ) end [2025-08-21 00:25:18] Production.INFO: ProcessCDR(1,15693131,1,1,2) [2025-08-21 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15693131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15693131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15693131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15693131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693131', 'tblTempUsageDetail_20' ) start [2025-08-21 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693131', 'tblTempUsageDetail_20' ) end [2025-08-21 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-21 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-21 00:25:27] Production.INFO: ==21383== Releasing lock... [2025-08-21 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 00:25:27] Production.INFO: 36.5 MB #Memory Used# [2025-08-21 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 22:25:05 [end_date_ymd] => 2025-08-21 01:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-20 22:25:05' and `end` < '2025-08-21 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-08-21 01:25:18] Production.INFO: count ==502 [2025-08-21 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-20 22:25:05 - End Time 2025-08-21 01:25:05 [2025-08-21 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693378', 'tblTempUsageDetail_20' ) start [2025-08-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693378', 'tblTempUsageDetail_20' ) end [2025-08-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693378', 'tblTempVendorCDR_20' ) start [2025-08-21 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693378', 'tblTempVendorCDR_20' ) end [2025-08-21 01:25:18] Production.INFO: ProcessCDR(1,15693378,1,1,2) [2025-08-21 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15693378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15693378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15693378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15693378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693378', 'tblTempUsageDetail_20' ) start [2025-08-21 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693378', 'tblTempUsageDetail_20' ) end [2025-08-21 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-21 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-21 01:25:26] Production.INFO: ==25729== Releasing lock... [2025-08-21 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 01:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-08-21 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-20 23:25:06 [end_date_ymd] => 2025-08-21 02:25:06 [RateCDR] => 1 ) [2025-08-21 02: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-08-20 23:25:06' and `end` < '2025-08-21 02: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-08-21 02:25:19] Production.INFO: count ==478 [2025-08-21 02:25:19] Production.ERROR: pbx CDR StartTime 2025-08-20 23:25:06 - End Time 2025-08-21 02:25:06 [2025-08-21 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693625', 'tblTempUsageDetail_20' ) start [2025-08-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693625', 'tblTempUsageDetail_20' ) end [2025-08-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693625', 'tblTempVendorCDR_20' ) start [2025-08-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693625', 'tblTempVendorCDR_20' ) end [2025-08-21 02:25:19] Production.INFO: ProcessCDR(1,15693625,1,1,2) [2025-08-21 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15693625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15693625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15693625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15693625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693625', 'tblTempUsageDetail_20' ) start [2025-08-21 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693625', 'tblTempUsageDetail_20' ) end [2025-08-21 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-21 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-21 02:25:27] Production.INFO: ==30064== Releasing lock... [2025-08-21 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 02:25:27] Production.INFO: 32.5 MB #Memory Used# [2025-08-21 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 00:25:05 [end_date_ymd] => 2025-08-21 03:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 00:25:05' and `end` < '2025-08-21 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-08-21 03:25:17] Production.INFO: count ==406 [2025-08-21 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 00:25:05 - End Time 2025-08-21 03:25:05 [2025-08-21 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693872', 'tblTempUsageDetail_20' ) start [2025-08-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15693872', 'tblTempUsageDetail_20' ) end [2025-08-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693872', 'tblTempVendorCDR_20' ) start [2025-08-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15693872', 'tblTempVendorCDR_20' ) end [2025-08-21 03:25:17] Production.INFO: ProcessCDR(1,15693872,1,1,2) [2025-08-21 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15693872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15693872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15693872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15693872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693872', 'tblTempUsageDetail_20' ) start [2025-08-21 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15693872', 'tblTempUsageDetail_20' ) end [2025-08-21 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-21 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-21 03:25:24] Production.INFO: ==2063== Releasing lock... [2025-08-21 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 03:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-08-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 01:25:05 [end_date_ymd] => 2025-08-21 04:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 01:25:05' and `end` < '2025-08-21 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-08-21 04:25:17] Production.INFO: count ==462 [2025-08-21 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 01:25:05 - End Time 2025-08-21 04:25:05 [2025-08-21 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694120', 'tblTempUsageDetail_20' ) start [2025-08-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694120', 'tblTempUsageDetail_20' ) end [2025-08-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694120', 'tblTempVendorCDR_20' ) start [2025-08-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694120', 'tblTempVendorCDR_20' ) end [2025-08-21 04:25:17] Production.INFO: ProcessCDR(1,15694120,1,1,2) [2025-08-21 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15694120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15694120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15694120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15694120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694120', 'tblTempUsageDetail_20' ) start [2025-08-21 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694120', 'tblTempUsageDetail_20' ) end [2025-08-21 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-21 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-21 04:25:25] Production.INFO: ==7267== Releasing lock... [2025-08-21 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 04:25:25] Production.INFO: 32 MB #Memory Used# [2025-08-21 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 02:25:05 [end_date_ymd] => 2025-08-21 05:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 02:25:05' and `end` < '2025-08-21 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-08-21 05:25:17] Production.INFO: count ==341 [2025-08-21 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 02:25:05 - End Time 2025-08-21 05:25:05 [2025-08-21 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694368', 'tblTempUsageDetail_20' ) start [2025-08-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694368', 'tblTempUsageDetail_20' ) end [2025-08-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694368', 'tblTempVendorCDR_20' ) start [2025-08-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694368', 'tblTempVendorCDR_20' ) end [2025-08-21 05:25:17] Production.INFO: ProcessCDR(1,15694368,1,1,2) [2025-08-21 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15694368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15694368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15694368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15694368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694368', 'tblTempUsageDetail_20' ) start [2025-08-21 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694368', 'tblTempUsageDetail_20' ) end [2025-08-21 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-21 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-21 05:25:22] Production.INFO: ==11812== Releasing lock... [2025-08-21 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 05:25:22] Production.INFO: 31 MB #Memory Used# [2025-08-21 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 03:25:05 [end_date_ymd] => 2025-08-21 06:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 03:25:05' and `end` < '2025-08-21 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-08-21 06:25:17] Production.INFO: count ==275 [2025-08-21 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 03:25:05 - End Time 2025-08-21 06:25:05 [2025-08-21 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694615', 'tblTempUsageDetail_20' ) start [2025-08-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694615', 'tblTempUsageDetail_20' ) end [2025-08-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694615', 'tblTempVendorCDR_20' ) start [2025-08-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694615', 'tblTempVendorCDR_20' ) end [2025-08-21 06:25:17] Production.INFO: ProcessCDR(1,15694615,1,1,2) [2025-08-21 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15694615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15694615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15694615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15694615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694615', 'tblTempUsageDetail_20' ) start [2025-08-21 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694615', 'tblTempUsageDetail_20' ) end [2025-08-21 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-21 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-21 06:25:25] Production.INFO: ==16134== Releasing lock... [2025-08-21 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 06:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-08-21 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 04:25:06 [end_date_ymd] => 2025-08-21 07:25:06 [RateCDR] => 1 ) [2025-08-21 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-08-21 04:25:06' and `end` < '2025-08-21 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-08-21 07:25:18] Production.INFO: count ==122 [2025-08-21 07:25:18] Production.ERROR: pbx CDR StartTime 2025-08-21 04:25:06 - End Time 2025-08-21 07:25:06 [2025-08-21 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694862', 'tblTempUsageDetail_20' ) start [2025-08-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15694862', 'tblTempUsageDetail_20' ) end [2025-08-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694862', 'tblTempVendorCDR_20' ) start [2025-08-21 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15694862', 'tblTempVendorCDR_20' ) end [2025-08-21 07:25:18] Production.INFO: ProcessCDR(1,15694862,1,1,2) [2025-08-21 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15694862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15694862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15694862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15694862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694862', 'tblTempUsageDetail_20' ) start [2025-08-21 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15694862', 'tblTempUsageDetail_20' ) end [2025-08-21 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-21 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-21 07:25:25] Production.INFO: ==21029== Releasing lock... [2025-08-21 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 07:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-08-21 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 05:25:04 [end_date_ymd] => 2025-08-21 08:25:04 [RateCDR] => 1 ) [2025-08-21 08:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-21 05:25:04' and `end` < '2025-08-21 08:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-21 08:25:17] Production.INFO: count ==374 [2025-08-21 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 05:25:04 - End Time 2025-08-21 08:25:04 [2025-08-21 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695109', 'tblTempUsageDetail_20' ) start [2025-08-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695109', 'tblTempUsageDetail_20' ) end [2025-08-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695109', 'tblTempVendorCDR_20' ) start [2025-08-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695109', 'tblTempVendorCDR_20' ) end [2025-08-21 08:25:17] Production.INFO: ProcessCDR(1,15695109,1,1,2) [2025-08-21 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15695109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15695109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15695109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15695109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695109', 'tblTempUsageDetail_20' ) start [2025-08-21 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695109', 'tblTempUsageDetail_20' ) end [2025-08-21 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-21 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-21 08:25:24] Production.INFO: ==25913== Releasing lock... [2025-08-21 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 08:25:24] Production.INFO: 31 MB #Memory Used# [2025-08-21 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 06:25:05 [end_date_ymd] => 2025-08-21 09:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 06:25:05' and `end` < '2025-08-21 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-08-21 09:25:17] Production.INFO: count ==1293 [2025-08-21 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-21 06:25:05 - End Time 2025-08-21 09:25:05 [2025-08-21 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695356', 'tblTempUsageDetail_20' ) start [2025-08-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695356', 'tblTempUsageDetail_20' ) end [2025-08-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695356', 'tblTempVendorCDR_20' ) start [2025-08-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695356', 'tblTempVendorCDR_20' ) end [2025-08-21 09:25:18] Production.INFO: ProcessCDR(1,15695356,1,1,2) [2025-08-21 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15695356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15695356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15695356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15695356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695356', 'tblTempUsageDetail_20' ) start [2025-08-21 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695356', 'tblTempUsageDetail_20' ) end [2025-08-21 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-21 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-21 09:25:27] Production.INFO: ==31059== Releasing lock... [2025-08-21 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 09:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-08-21 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 07:25:06 [end_date_ymd] => 2025-08-21 10:25:06 [RateCDR] => 1 ) [2025-08-21 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-21 07:25:06' and `end` < '2025-08-21 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-21 10:25:19] Production.INFO: count ==2640 [2025-08-21 10:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 07:25:06 - End Time 2025-08-21 10:25:06 [2025-08-21 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695603', 'tblTempUsageDetail_20' ) start [2025-08-21 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695603', 'tblTempUsageDetail_20' ) end [2025-08-21 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695603', 'tblTempVendorCDR_20' ) start [2025-08-21 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695603', 'tblTempVendorCDR_20' ) end [2025-08-21 10:25:21] Production.INFO: ProcessCDR(1,15695603,1,1,2) [2025-08-21 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15695603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15695603,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15695603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15695603,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695603', 'tblTempUsageDetail_20' ) start [2025-08-21 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695603', 'tblTempUsageDetail_20' ) end [2025-08-21 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-21 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-21 10:25:32] Production.INFO: ==3099== Releasing lock... [2025-08-21 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 10:25:32] Production.INFO: 48.5 MB #Memory Used# [2025-08-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 08:25:05 [end_date_ymd] => 2025-08-21 11:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 08:25:05' and `end` < '2025-08-21 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-08-21 11:25:19] Production.INFO: count ==3990 [2025-08-21 11:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 08:25:05 - End Time 2025-08-21 11:25:05 [2025-08-21 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695850', 'tblTempUsageDetail_20' ) start [2025-08-21 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15695850', 'tblTempUsageDetail_20' ) end [2025-08-21 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695850', 'tblTempVendorCDR_20' ) start [2025-08-21 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15695850', 'tblTempVendorCDR_20' ) end [2025-08-21 11:25:21] Production.INFO: ProcessCDR(1,15695850,1,1,2) [2025-08-21 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15695850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15695850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15695850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15695850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695850', 'tblTempUsageDetail_20' ) start [2025-08-21 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15695850', 'tblTempUsageDetail_20' ) end [2025-08-21 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-21 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-21 11:25:32] Production.INFO: ==7505== Releasing lock... [2025-08-21 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 11:25:32] Production.INFO: 58 MB #Memory Used# [2025-08-21 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 09:25:05 [end_date_ymd] => 2025-08-21 12:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 09:25:05' and `end` < '2025-08-21 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-08-21 12:25:19] Production.INFO: count ==4696 [2025-08-21 12:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 09:25:05 - End Time 2025-08-21 12:25:05 [2025-08-21 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696097', 'tblTempUsageDetail_20' ) start [2025-08-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696097', 'tblTempUsageDetail_20' ) end [2025-08-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696097', 'tblTempVendorCDR_20' ) start [2025-08-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696097', 'tblTempVendorCDR_20' ) end [2025-08-21 12:25:21] Production.INFO: ProcessCDR(1,15696097,1,1,2) [2025-08-21 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15696097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15696097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15696097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15696097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696097', 'tblTempUsageDetail_20' ) start [2025-08-21 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696097', 'tblTempUsageDetail_20' ) end [2025-08-21 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-21 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-21 12:25:33] Production.INFO: ==12359== Releasing lock... [2025-08-21 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 12:25:33] Production.INFO: 63.25 MB #Memory Used# [2025-08-21 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 10:25:05 [end_date_ymd] => 2025-08-21 13:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 10:25:05' and `end` < '2025-08-21 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-08-21 13:25:19] Production.INFO: count ==5062 [2025-08-21 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 10:25:05 - End Time 2025-08-21 13:25:05 [2025-08-21 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696344', 'tblTempUsageDetail_20' ) start [2025-08-21 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696344', 'tblTempUsageDetail_20' ) end [2025-08-21 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696344', 'tblTempVendorCDR_20' ) start [2025-08-21 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696344', 'tblTempVendorCDR_20' ) end [2025-08-21 13:25:22] Production.INFO: ProcessCDR(1,15696344,1,1,2) [2025-08-21 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15696344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15696344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15696344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15696344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696344', 'tblTempUsageDetail_20' ) start [2025-08-21 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696344', 'tblTempUsageDetail_20' ) end [2025-08-21 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-21 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-21 13:25:33] Production.INFO: ==16743== Releasing lock... [2025-08-21 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 13:25:33] Production.INFO: 66 MB #Memory Used# [2025-08-21 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 11:25:05 [end_date_ymd] => 2025-08-21 14:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 11:25:05' and `end` < '2025-08-21 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-08-21 14:25:19] Production.INFO: count ==4908 [2025-08-21 14:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 11:25:05 - End Time 2025-08-21 14:25:05 [2025-08-21 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696591', 'tblTempUsageDetail_20' ) start [2025-08-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696591', 'tblTempUsageDetail_20' ) end [2025-08-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696591', 'tblTempVendorCDR_20' ) start [2025-08-21 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696591', 'tblTempVendorCDR_20' ) end [2025-08-21 14:25:21] Production.INFO: ProcessCDR(1,15696591,1,1,2) [2025-08-21 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15696591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15696591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15696591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15696591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696591', 'tblTempUsageDetail_20' ) start [2025-08-21 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696591', 'tblTempUsageDetail_20' ) end [2025-08-21 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-21 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-21 14:25:32] Production.INFO: ==21192== Releasing lock... [2025-08-21 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 14:25:32] Production.INFO: 65 MB #Memory Used# [2025-08-21 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 12:25:06 [end_date_ymd] => 2025-08-21 15:25:06 [RateCDR] => 1 ) [2025-08-21 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-08-21 12:25:06' and `end` < '2025-08-21 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-08-21 15:25:21] Production.INFO: count ==4855 [2025-08-21 15:25:23] Production.ERROR: pbx CDR StartTime 2025-08-21 12:25:06 - End Time 2025-08-21 15:25:06 [2025-08-21 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696838', 'tblTempUsageDetail_20' ) start [2025-08-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15696838', 'tblTempUsageDetail_20' ) end [2025-08-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696838', 'tblTempVendorCDR_20' ) start [2025-08-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15696838', 'tblTempVendorCDR_20' ) end [2025-08-21 15:25:23] Production.INFO: ProcessCDR(1,15696838,1,1,2) [2025-08-21 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15696838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15696838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15696838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15696838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696838', 'tblTempUsageDetail_20' ) start [2025-08-21 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15696838', 'tblTempUsageDetail_20' ) end [2025-08-21 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-21 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-21 15:25:35] Production.INFO: ==25916== Releasing lock... [2025-08-21 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 15:25:35] Production.INFO: 64.5 MB #Memory Used# [2025-08-21 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 13:25:05 [end_date_ymd] => 2025-08-21 16:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 13:25:05' and `end` < '2025-08-21 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-08-21 16:25:19] Production.INFO: count ==4808 [2025-08-21 16:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 13:25:05 - End Time 2025-08-21 16:25:05 [2025-08-21 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697085', 'tblTempUsageDetail_20' ) start [2025-08-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697085', 'tblTempUsageDetail_20' ) end [2025-08-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697085', 'tblTempVendorCDR_20' ) start [2025-08-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697085', 'tblTempVendorCDR_20' ) end [2025-08-21 16:25:21] Production.INFO: ProcessCDR(1,15697085,1,1,2) [2025-08-21 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15697085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15697085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15697085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15697085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697085', 'tblTempUsageDetail_20' ) start [2025-08-21 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697085', 'tblTempUsageDetail_20' ) end [2025-08-21 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-21 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-21 16:25:32] Production.INFO: ==30518== Releasing lock... [2025-08-21 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 16:25:32] Production.INFO: 64.25 MB #Memory Used# [2025-08-21 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 14:25:06 [end_date_ymd] => 2025-08-21 17:25:06 [RateCDR] => 1 ) [2025-08-21 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-21 14:25:06' and `end` < '2025-08-21 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-21 17:25:19] Production.INFO: count ==4888 [2025-08-21 17:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 14:25:06 - End Time 2025-08-21 17:25:06 [2025-08-21 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697332', 'tblTempUsageDetail_20' ) start [2025-08-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697332', 'tblTempUsageDetail_20' ) end [2025-08-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697332', 'tblTempVendorCDR_20' ) start [2025-08-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697332', 'tblTempVendorCDR_20' ) end [2025-08-21 17:25:21] Production.INFO: ProcessCDR(1,15697332,1,1,2) [2025-08-21 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15697332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15697332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15697332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15697332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697332', 'tblTempUsageDetail_20' ) start [2025-08-21 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697332', 'tblTempUsageDetail_20' ) end [2025-08-21 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-21 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-21 17:25:32] Production.INFO: ==2630== Releasing lock... [2025-08-21 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 17:25:32] Production.INFO: 64.75 MB #Memory Used# [2025-08-21 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 15:25:06 [end_date_ymd] => 2025-08-21 18:25:06 [RateCDR] => 1 ) [2025-08-21 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-08-21 15:25:06' and `end` < '2025-08-21 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-08-21 18:25:19] Production.INFO: count ==4153 [2025-08-21 18:25:21] Production.ERROR: pbx CDR StartTime 2025-08-21 15:25:06 - End Time 2025-08-21 18:25:06 [2025-08-21 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697579', 'tblTempUsageDetail_20' ) start [2025-08-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697579', 'tblTempUsageDetail_20' ) end [2025-08-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697579', 'tblTempVendorCDR_20' ) start [2025-08-21 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697579', 'tblTempVendorCDR_20' ) end [2025-08-21 18:25:21] Production.INFO: ProcessCDR(1,15697579,1,1,2) [2025-08-21 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15697579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15697579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15697579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15697579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697579', 'tblTempUsageDetail_20' ) start [2025-08-21 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697579', 'tblTempUsageDetail_20' ) end [2025-08-21 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-21 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-21 18:25:30] Production.INFO: ==7280== Releasing lock... [2025-08-21 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 18:25:30] Production.INFO: 59.25 MB #Memory Used# [2025-08-21 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 16:25:05 [end_date_ymd] => 2025-08-21 19:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 16:25:05' and `end` < '2025-08-21 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-08-21 19:25:18] Production.INFO: count ==3246 [2025-08-21 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-21 16:25:05 - End Time 2025-08-21 19:25:05 [2025-08-21 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697823', 'tblTempUsageDetail_20' ) start [2025-08-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15697823', 'tblTempUsageDetail_20' ) end [2025-08-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697823', 'tblTempVendorCDR_20' ) start [2025-08-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15697823', 'tblTempVendorCDR_20' ) end [2025-08-21 19:25:19] Production.INFO: ProcessCDR(1,15697823,1,1,2) [2025-08-21 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15697823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15697823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15697823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15697823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697823', 'tblTempUsageDetail_20' ) start [2025-08-21 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15697823', 'tblTempUsageDetail_20' ) end [2025-08-21 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-21 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-21 19:25:28] Production.INFO: ==11627== Releasing lock... [2025-08-21 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 19:25:28] Production.INFO: 52.5 MB #Memory Used# [2025-08-21 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 17:25:05 [end_date_ymd] => 2025-08-21 20:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 17:25:05' and `end` < '2025-08-21 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-08-21 20:25:17] Production.INFO: count ==2210 [2025-08-21 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-21 17:25:05 - End Time 2025-08-21 20:25:05 [2025-08-21 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698070', 'tblTempUsageDetail_20' ) start [2025-08-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698070', 'tblTempUsageDetail_20' ) end [2025-08-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698070', 'tblTempVendorCDR_20' ) start [2025-08-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698070', 'tblTempVendorCDR_20' ) end [2025-08-21 20:25:18] Production.INFO: ProcessCDR(1,15698070,1,1,2) [2025-08-21 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15698070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15698070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15698070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15698070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698070', 'tblTempUsageDetail_20' ) start [2025-08-21 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698070', 'tblTempUsageDetail_20' ) end [2025-08-21 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-21 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-21 20:25:27] Production.INFO: ==15983== Releasing lock... [2025-08-21 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 20:25:27] Production.INFO: 44.75 MB #Memory Used# [2025-08-21 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 18:25:05 [end_date_ymd] => 2025-08-21 21:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 18:25:05' and `end` < '2025-08-21 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-08-21 21:25:18] Production.INFO: count ==1691 [2025-08-21 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-21 18:25:05 - End Time 2025-08-21 21:25:05 [2025-08-21 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698317', 'tblTempUsageDetail_20' ) start [2025-08-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698317', 'tblTempUsageDetail_20' ) end [2025-08-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698317', 'tblTempVendorCDR_20' ) start [2025-08-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698317', 'tblTempVendorCDR_20' ) end [2025-08-21 21:25:18] Production.INFO: ProcessCDR(1,15698317,1,1,2) [2025-08-21 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15698317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15698317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15698317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15698317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698317', 'tblTempUsageDetail_20' ) start [2025-08-21 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698317', 'tblTempUsageDetail_20' ) end [2025-08-21 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-21 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-21 21:25:26] Production.INFO: ==20352== Releasing lock... [2025-08-21 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 21:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-08-21 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 19:25:05 [end_date_ymd] => 2025-08-21 22:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 19:25:05' and `end` < '2025-08-21 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-08-21 22:25:18] Production.INFO: count ==1260 [2025-08-21 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-21 19:25:05 - End Time 2025-08-21 22:25:05 [2025-08-21 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698564', 'tblTempUsageDetail_20' ) start [2025-08-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698564', 'tblTempUsageDetail_20' ) end [2025-08-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698564', 'tblTempVendorCDR_20' ) start [2025-08-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698564', 'tblTempVendorCDR_20' ) end [2025-08-21 22:25:18] Production.INFO: ProcessCDR(1,15698564,1,1,2) [2025-08-21 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15698564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15698564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15698564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15698564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698564', 'tblTempUsageDetail_20' ) start [2025-08-21 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698564', 'tblTempUsageDetail_20' ) end [2025-08-21 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-21 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-21 22:25:27] Production.INFO: ==25645== Releasing lock... [2025-08-21 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 22:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-08-21 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-21 20:25:05 [end_date_ymd] => 2025-08-21 23:25:05 [RateCDR] => 1 ) [2025-08-21 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-08-21 20:25:05' and `end` < '2025-08-21 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-08-21 23:25:17] Production.INFO: count ==1054 [2025-08-21 23:25:17] Production.ERROR: pbx CDR StartTime 2025-08-21 20:25:05 - End Time 2025-08-21 23:25:05 [2025-08-21 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698811', 'tblTempUsageDetail_20' ) start [2025-08-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15698811', 'tblTempUsageDetail_20' ) end [2025-08-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698811', 'tblTempVendorCDR_20' ) start [2025-08-21 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15698811', 'tblTempVendorCDR_20' ) end [2025-08-21 23:25:17] Production.INFO: ProcessCDR(1,15698811,1,1,2) [2025-08-21 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15698811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15698811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-21 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15698811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15698811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-21 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698811', 'tblTempUsageDetail_20' ) start [2025-08-21 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15698811', 'tblTempUsageDetail_20' ) end [2025-08-21 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-21 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-21 23:25:25] Production.INFO: ==29936== Releasing lock... [2025-08-21 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-21 23:25:25] Production.INFO: 36.5 MB #Memory Used#