[2025-07-21 00:25:04] Production.INFO: next invoice date [2025-07-21 00:25:04] Production.INFO: 2025-08-21 [2025-07-21 00:25:04] Production.INFO: getdaysdiff [2025-07-21 00:25:04] Production.INFO: +31 [2025-07-21 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,31,31,'RMScheduler',2025-07-21 00:25:04,1,0,,,0) [2025-07-21 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 21:25:05 [end_date_ymd] => 2025-07-21 00:25:05 [RateCDR] => 1 ) [2025-07-21 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-20 21:25:05' and `end` < '2025-07-21 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-21 00:25:18] Production.INFO: count ==710 [2025-07-21 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-20 21:25:05 - End Time 2025-07-21 00:25:05 [2025-07-21 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509389', 'tblTempUsageDetail_20' ) start [2025-07-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509389', 'tblTempUsageDetail_20' ) end [2025-07-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509389', 'tblTempVendorCDR_20' ) start [2025-07-21 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509389', 'tblTempVendorCDR_20' ) end [2025-07-21 00:25:18] Production.INFO: ProcessCDR(1,15509389,1,1,2) [2025-07-21 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15509389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15509389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15509389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15509389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509389', 'tblTempUsageDetail_20' ) start [2025-07-21 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509389', 'tblTempUsageDetail_20' ) end [2025-07-21 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-21 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-21 00:25:27] Production.INFO: ==6491== Releasing lock... [2025-07-21 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 00:25:27] Production.INFO: 36.5 MB #Memory Used# [2025-07-21 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 22:25:05 [end_date_ymd] => 2025-07-21 01:25:05 [RateCDR] => 1 ) [2025-07-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-07-20 22:25:05' and `end` < '2025-07-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-07-21 01:25:17] Production.INFO: count ==482 [2025-07-21 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-20 22:25:05 - End Time 2025-07-21 01:25:05 [2025-07-21 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509636', 'tblTempUsageDetail_20' ) start [2025-07-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509636', 'tblTempUsageDetail_20' ) end [2025-07-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509636', 'tblTempVendorCDR_20' ) start [2025-07-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509636', 'tblTempVendorCDR_20' ) end [2025-07-21 01:25:17] Production.INFO: ProcessCDR(1,15509636,1,1,2) [2025-07-21 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15509636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15509636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15509636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15509636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509636', 'tblTempUsageDetail_20' ) start [2025-07-21 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509636', 'tblTempUsageDetail_20' ) end [2025-07-21 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-21 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-21 01:25:24] Production.INFO: ==10871== Releasing lock... [2025-07-21 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 01:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-21 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-20 23:25:06 [end_date_ymd] => 2025-07-21 02:25:06 [RateCDR] => 1 ) [2025-07-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-07-20 23:25:06' and `end` < '2025-07-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-07-21 02:25:19] Production.INFO: count ==450 [2025-07-21 02:25:19] Production.ERROR: pbx CDR StartTime 2025-07-20 23:25:06 - End Time 2025-07-21 02:25:06 [2025-07-21 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509883', 'tblTempUsageDetail_20' ) start [2025-07-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15509883', 'tblTempUsageDetail_20' ) end [2025-07-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509883', 'tblTempVendorCDR_20' ) start [2025-07-21 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15509883', 'tblTempVendorCDR_20' ) end [2025-07-21 02:25:19] Production.INFO: ProcessCDR(1,15509883,1,1,2) [2025-07-21 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15509883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15509883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15509883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15509883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509883', 'tblTempUsageDetail_20' ) start [2025-07-21 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15509883', 'tblTempUsageDetail_20' ) end [2025-07-21 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-21 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-21 02:25:26] Production.INFO: ==15195== Releasing lock... [2025-07-21 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 02:25:26] Production.INFO: 32.25 MB #Memory Used# [2025-07-21 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 00:25:05 [end_date_ymd] => 2025-07-21 03:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 00:25:05' and `end` < '2025-07-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-07-21 03:25:17] Production.INFO: count ==352 [2025-07-21 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-21 00:25:05 - End Time 2025-07-21 03:25:05 [2025-07-21 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510130', 'tblTempUsageDetail_20' ) start [2025-07-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510130', 'tblTempUsageDetail_20' ) end [2025-07-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510130', 'tblTempVendorCDR_20' ) start [2025-07-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510130', 'tblTempVendorCDR_20' ) end [2025-07-21 03:25:17] Production.INFO: ProcessCDR(1,15510130,1,1,2) [2025-07-21 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15510130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15510130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15510130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15510130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510130', 'tblTempUsageDetail_20' ) start [2025-07-21 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510130', 'tblTempUsageDetail_20' ) end [2025-07-21 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-21 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-21 03:25:23] Production.INFO: ==20059== Releasing lock... [2025-07-21 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 03:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-07-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 01:25:05 [end_date_ymd] => 2025-07-21 04:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 01:25:05' and `end` < '2025-07-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-07-21 04:25:18] Production.INFO: count ==273 [2025-07-21 04:25:18] Production.ERROR: pbx CDR StartTime 2025-07-21 01:25:05 - End Time 2025-07-21 04:25:05 [2025-07-21 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510378', 'tblTempUsageDetail_20' ) start [2025-07-21 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510378', 'tblTempUsageDetail_20' ) end [2025-07-21 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510378', 'tblTempVendorCDR_20' ) start [2025-07-21 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510378', 'tblTempVendorCDR_20' ) end [2025-07-21 04:25:18] Production.INFO: ProcessCDR(1,15510378,1,1,2) [2025-07-21 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15510378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15510378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15510378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15510378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510378', 'tblTempUsageDetail_20' ) start [2025-07-21 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510378', 'tblTempUsageDetail_20' ) end [2025-07-21 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-21 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-21 04:25:24] Production.INFO: ==24308== Releasing lock... [2025-07-21 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 04:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-07-21 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 02:25:06 [end_date_ymd] => 2025-07-21 05:25:06 [RateCDR] => 1 ) [2025-07-21 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-21 02:25:06' and `end` < '2025-07-21 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-21 05:25:19] Production.INFO: count ==178 [2025-07-21 05:25:19] Production.ERROR: pbx CDR StartTime 2025-07-21 02:25:06 - End Time 2025-07-21 05:25:06 [2025-07-21 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510626', 'tblTempUsageDetail_20' ) start [2025-07-21 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510626', 'tblTempUsageDetail_20' ) end [2025-07-21 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510626', 'tblTempVendorCDR_20' ) start [2025-07-21 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510626', 'tblTempVendorCDR_20' ) end [2025-07-21 05:25:19] Production.INFO: ProcessCDR(1,15510626,1,1,2) [2025-07-21 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15510626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15510626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15510626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15510626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510626', 'tblTempUsageDetail_20' ) start [2025-07-21 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510626', 'tblTempUsageDetail_20' ) end [2025-07-21 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-21 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-21 05:25:23] Production.INFO: ==28746== Releasing lock... [2025-07-21 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 05:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-07-21 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 03:25:05 [end_date_ymd] => 2025-07-21 06:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 03:25:05' and `end` < '2025-07-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-07-21 06:25:17] Production.INFO: count ==170 [2025-07-21 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-21 03:25:05 - End Time 2025-07-21 06:25:05 [2025-07-21 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510873', 'tblTempUsageDetail_20' ) start [2025-07-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15510873', 'tblTempUsageDetail_20' ) end [2025-07-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510873', 'tblTempVendorCDR_20' ) start [2025-07-21 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15510873', 'tblTempVendorCDR_20' ) end [2025-07-21 06:25:17] Production.INFO: ProcessCDR(1,15510873,1,1,2) [2025-07-21 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15510873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15510873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15510873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15510873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510873', 'tblTempUsageDetail_20' ) start [2025-07-21 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15510873', 'tblTempUsageDetail_20' ) end [2025-07-21 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-21 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-21 06:25:24] Production.INFO: ==1079== Releasing lock... [2025-07-21 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 06:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-21 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 04:25:05 [end_date_ymd] => 2025-07-21 07:25:05 [RateCDR] => 1 ) [2025-07-21 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-21 04:25:05' and `end` < '2025-07-21 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-21 07:25:17] Production.INFO: count ==169 [2025-07-21 07:25:17] Production.ERROR: pbx CDR StartTime 2025-07-21 04:25:05 - End Time 2025-07-21 07:25:05 [2025-07-21 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511120', 'tblTempUsageDetail_20' ) start [2025-07-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511120', 'tblTempUsageDetail_20' ) end [2025-07-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511120', 'tblTempVendorCDR_20' ) start [2025-07-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511120', 'tblTempVendorCDR_20' ) end [2025-07-21 07:25:17] Production.INFO: ProcessCDR(1,15511120,1,1,2) [2025-07-21 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15511120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15511120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15511120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15511120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511120', 'tblTempUsageDetail_20' ) start [2025-07-21 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511120', 'tblTempUsageDetail_20' ) end [2025-07-21 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-21 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-21 07:25:24] Production.INFO: ==6508== Releasing lock... [2025-07-21 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-07-21 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 05:25:05 [end_date_ymd] => 2025-07-21 08:25:05 [RateCDR] => 1 ) [2025-07-21 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-21 05:25:05' and `end` < '2025-07-21 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-21 08:25:17] Production.INFO: count ==457 [2025-07-21 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-21 05:25:05 - End Time 2025-07-21 08:25:05 [2025-07-21 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511367', 'tblTempUsageDetail_20' ) start [2025-07-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511367', 'tblTempUsageDetail_20' ) end [2025-07-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511367', 'tblTempVendorCDR_20' ) start [2025-07-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511367', 'tblTempVendorCDR_20' ) end [2025-07-21 08:25:17] Production.INFO: ProcessCDR(1,15511367,1,1,2) [2025-07-21 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15511367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15511367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15511367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15511367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511367', 'tblTempUsageDetail_20' ) start [2025-07-21 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511367', 'tblTempUsageDetail_20' ) end [2025-07-21 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-21 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-21 08:25:25] Production.INFO: ==11403== Releasing lock... [2025-07-21 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 08:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-07-21 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 06:25:05 [end_date_ymd] => 2025-07-21 09:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 06:25:05' and `end` < '2025-07-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-07-21 09:25:18] Production.INFO: count ==1605 [2025-07-21 09:25:18] Production.ERROR: pbx CDR StartTime 2025-07-21 06:25:05 - End Time 2025-07-21 09:25:05 [2025-07-21 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511614', 'tblTempUsageDetail_20' ) start [2025-07-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511614', 'tblTempUsageDetail_20' ) end [2025-07-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511614', 'tblTempVendorCDR_20' ) start [2025-07-21 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511614', 'tblTempVendorCDR_20' ) end [2025-07-21 09:25:18] Production.INFO: ProcessCDR(1,15511614,1,1,2) [2025-07-21 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15511614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15511614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15511614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15511614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511614', 'tblTempUsageDetail_20' ) start [2025-07-21 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511614', 'tblTempUsageDetail_20' ) end [2025-07-21 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-21 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-21 09:25:27] Production.INFO: ==15677== Releasing lock... [2025-07-21 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 09:25:27] Production.INFO: 40.25 MB #Memory Used# [2025-07-21 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 07:25:05 [end_date_ymd] => 2025-07-21 10:25:05 [RateCDR] => 1 ) [2025-07-21 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-21 07:25:05' and `end` < '2025-07-21 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-21 10:25:21] Production.INFO: count ==3433 [2025-07-21 10:25:23] Production.ERROR: pbx CDR StartTime 2025-07-21 07:25:05 - End Time 2025-07-21 10:25:05 [2025-07-21 10:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511861', 'tblTempUsageDetail_20' ) start [2025-07-21 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15511861', 'tblTempUsageDetail_20' ) end [2025-07-21 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511861', 'tblTempVendorCDR_20' ) start [2025-07-21 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15511861', 'tblTempVendorCDR_20' ) end [2025-07-21 10:25:23] Production.INFO: ProcessCDR(1,15511861,1,1,2) [2025-07-21 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15511861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15511861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15511861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15511861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511861', 'tblTempUsageDetail_20' ) start [2025-07-21 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15511861', 'tblTempUsageDetail_20' ) end [2025-07-21 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-21 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-21 10:25:33] Production.INFO: ==19917== Releasing lock... [2025-07-21 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 10:25:33] Production.INFO: 53.75 MB #Memory Used# [2025-07-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 08:25:05 [end_date_ymd] => 2025-07-21 11:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 08:25:05' and `end` < '2025-07-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-07-21 11:25:19] Production.INFO: count ==5442 [2025-07-21 11:25:22] Production.ERROR: pbx CDR StartTime 2025-07-21 08:25:05 - End Time 2025-07-21 11:25:05 [2025-07-21 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512108', 'tblTempUsageDetail_20' ) start [2025-07-21 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512108', 'tblTempUsageDetail_20' ) end [2025-07-21 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512108', 'tblTempVendorCDR_20' ) start [2025-07-21 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512108', 'tblTempVendorCDR_20' ) end [2025-07-21 11:25:22] Production.INFO: ProcessCDR(1,15512108,1,1,2) [2025-07-21 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15512108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15512108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15512108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15512108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512108', 'tblTempUsageDetail_20' ) start [2025-07-21 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512108', 'tblTempUsageDetail_20' ) end [2025-07-21 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-21 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-21 11:25:34] Production.INFO: ==24277== Releasing lock... [2025-07-21 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 11:25:34] Production.INFO: 69 MB #Memory Used# [2025-07-21 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 09:25:05 [end_date_ymd] => 2025-07-21 12:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 09:25:05' and `end` < '2025-07-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-07-21 12:25:21] Production.INFO: count ==6038 [2025-07-21 12:25:24] Production.ERROR: pbx CDR StartTime 2025-07-21 09:25:05 - End Time 2025-07-21 12:25:05 [2025-07-21 12:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512355', 'tblTempUsageDetail_20' ) start [2025-07-21 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512355', 'tblTempUsageDetail_20' ) end [2025-07-21 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512355', 'tblTempVendorCDR_20' ) start [2025-07-21 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512355', 'tblTempVendorCDR_20' ) end [2025-07-21 12:25:25] Production.INFO: ProcessCDR(1,15512355,1,1,2) [2025-07-21 12:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15512355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15512355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15512355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15512355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512355', 'tblTempUsageDetail_20' ) start [2025-07-21 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512355', 'tblTempUsageDetail_20' ) end [2025-07-21 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-21 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-21 12:25:35] Production.INFO: ==28941== Releasing lock... [2025-07-21 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 12:25:35] Production.INFO: 73.5 MB #Memory Used# [2025-07-21 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 10:25:05 [end_date_ymd] => 2025-07-21 13:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 10:25:05' and `end` < '2025-07-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-07-21 13:25:18] Production.INFO: count ==5925 [2025-07-21 13:25:21] Production.ERROR: pbx CDR StartTime 2025-07-21 10:25:05 - End Time 2025-07-21 13:25:05 [2025-07-21 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512602', 'tblTempUsageDetail_20' ) start [2025-07-21 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512602', 'tblTempUsageDetail_20' ) end [2025-07-21 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512602', 'tblTempVendorCDR_20' ) start [2025-07-21 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512602', 'tblTempVendorCDR_20' ) end [2025-07-21 13:25:22] Production.INFO: ProcessCDR(1,15512602,1,1,2) [2025-07-21 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15512602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15512602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15512602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15512602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512602', 'tblTempUsageDetail_20' ) start [2025-07-21 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512602', 'tblTempUsageDetail_20' ) end [2025-07-21 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-21 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-21 13:25:32] Production.INFO: ==995== Releasing lock... [2025-07-21 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 13:25:32] Production.INFO: 72.5 MB #Memory Used# [2025-07-21 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 11:25:06 [end_date_ymd] => 2025-07-21 14:25:06 [RateCDR] => 1 ) [2025-07-21 14: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-21 11:25:06' and `end` < '2025-07-21 14: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-21 14:25:20] Production.INFO: count ==5457 [2025-07-21 14:25:23] Production.ERROR: pbx CDR StartTime 2025-07-21 11:25:06 - End Time 2025-07-21 14:25:06 [2025-07-21 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512849', 'tblTempUsageDetail_20' ) start [2025-07-21 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15512849', 'tblTempUsageDetail_20' ) end [2025-07-21 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512849', 'tblTempVendorCDR_20' ) start [2025-07-21 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15512849', 'tblTempVendorCDR_20' ) end [2025-07-21 14:25:23] Production.INFO: ProcessCDR(1,15512849,1,1,2) [2025-07-21 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15512849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15512849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15512849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15512849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512849', 'tblTempUsageDetail_20' ) start [2025-07-21 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15512849', 'tblTempUsageDetail_20' ) end [2025-07-21 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-21 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-21 14:25:34] Production.INFO: ==6402== Releasing lock... [2025-07-21 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 14:25:34] Production.INFO: 69 MB #Memory Used# [2025-07-21 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 12:25:05 [end_date_ymd] => 2025-07-21 15:25:05 [RateCDR] => 1 ) [2025-07-21 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-21 12:25:05' and `end` < '2025-07-21 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-21 15:25:20] Production.INFO: count ==5347 [2025-07-21 15:25:22] Production.ERROR: pbx CDR StartTime 2025-07-21 12:25:05 - End Time 2025-07-21 15:25:05 [2025-07-21 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513096', 'tblTempUsageDetail_20' ) start [2025-07-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513096', 'tblTempUsageDetail_20' ) end [2025-07-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513096', 'tblTempVendorCDR_20' ) start [2025-07-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513096', 'tblTempVendorCDR_20' ) end [2025-07-21 15:25:23] Production.INFO: ProcessCDR(1,15513096,1,1,2) [2025-07-21 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15513096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15513096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15513096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15513096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513096', 'tblTempUsageDetail_20' ) start [2025-07-21 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513096', 'tblTempUsageDetail_20' ) end [2025-07-21 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-21 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-21 15:25:33] Production.INFO: ==12096== Releasing lock... [2025-07-21 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 15:25:33] Production.INFO: 68.25 MB #Memory Used# [2025-07-21 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 13:25:05 [end_date_ymd] => 2025-07-21 16:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 13:25:05' and `end` < '2025-07-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-07-21 16:25:20] Production.INFO: count ==5483 [2025-07-21 16:25:23] Production.ERROR: pbx CDR StartTime 2025-07-21 13:25:05 - End Time 2025-07-21 16:25:05 [2025-07-21 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513343', 'tblTempUsageDetail_20' ) start [2025-07-21 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513343', 'tblTempUsageDetail_20' ) end [2025-07-21 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513343', 'tblTempVendorCDR_20' ) start [2025-07-21 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513343', 'tblTempVendorCDR_20' ) end [2025-07-21 16:25:23] Production.INFO: ProcessCDR(1,15513343,1,1,2) [2025-07-21 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15513343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15513343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15513343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15513343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513343', 'tblTempUsageDetail_20' ) start [2025-07-21 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513343', 'tblTempUsageDetail_20' ) end [2025-07-21 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-21 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-07-21 16:25:34] Production.INFO: ==16757== Releasing lock... [2025-07-21 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 16:25:34] Production.INFO: 69.25 MB #Memory Used# [2025-07-21 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 14:25:05 [end_date_ymd] => 2025-07-21 17:25:05 [RateCDR] => 1 ) [2025-07-21 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-21 14:25:05' and `end` < '2025-07-21 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-21 17:25:19] Production.INFO: count ==5120 [2025-07-21 17:25:22] Production.ERROR: pbx CDR StartTime 2025-07-21 14:25:05 - End Time 2025-07-21 17:25:05 [2025-07-21 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513590', 'tblTempUsageDetail_20' ) start [2025-07-21 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513590', 'tblTempUsageDetail_20' ) end [2025-07-21 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513590', 'tblTempVendorCDR_20' ) start [2025-07-21 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513590', 'tblTempVendorCDR_20' ) end [2025-07-21 17:25:22] Production.INFO: ProcessCDR(1,15513590,1,1,2) [2025-07-21 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15513590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15513590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15513590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15513590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513590', 'tblTempUsageDetail_20' ) start [2025-07-21 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513590', 'tblTempUsageDetail_20' ) end [2025-07-21 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-21 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-21 17:25:32] Production.INFO: ==21319== Releasing lock... [2025-07-21 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 17:25:32] Production.INFO: 66.5 MB #Memory Used# [2025-07-21 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 15:25:05 [end_date_ymd] => 2025-07-21 18:25:05 [RateCDR] => 1 ) [2025-07-21 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-21 15:25:05' and `end` < '2025-07-21 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-21 18:25:17] Production.INFO: count ==4430 [2025-07-21 18:25:19] Production.ERROR: pbx CDR StartTime 2025-07-21 15:25:05 - End Time 2025-07-21 18:25:05 [2025-07-21 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513837', 'tblTempUsageDetail_20' ) start [2025-07-21 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15513837', 'tblTempUsageDetail_20' ) end [2025-07-21 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513837', 'tblTempVendorCDR_20' ) start [2025-07-21 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15513837', 'tblTempVendorCDR_20' ) end [2025-07-21 18:25:20] Production.INFO: ProcessCDR(1,15513837,1,1,2) [2025-07-21 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15513837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 18:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15513837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 18:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15513837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 18:27:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15513837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 18:27:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513837', 'tblTempUsageDetail_20' ) start [2025-07-21 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15513837', 'tblTempUsageDetail_20' ) end [2025-07-21 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-07-21 18:27:26] Production.ERROR: pbx prc_insertCDR end [2025-07-21 18:27:31] Production.INFO: ==25705== Releasing lock... [2025-07-21 18:27:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 18:27:31] Production.INFO: 61.25 MB #Memory Used# [2025-07-21 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 16:25:05 [end_date_ymd] => 2025-07-21 19:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 16:25:05' and `end` < '2025-07-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-07-21 19:25:17] Production.INFO: count ==3164 [2025-07-21 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-21 16:25:05 - End Time 2025-07-21 19:25:05 [2025-07-21 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514081', 'tblTempUsageDetail_20' ) start [2025-07-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514081', 'tblTempUsageDetail_20' ) end [2025-07-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514081', 'tblTempVendorCDR_20' ) start [2025-07-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514081', 'tblTempVendorCDR_20' ) end [2025-07-21 19:25:19] Production.INFO: ProcessCDR(1,15514081,1,1,2) [2025-07-21 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15514081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15514081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15514081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15514081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514081', 'tblTempUsageDetail_20' ) start [2025-07-21 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514081', 'tblTempUsageDetail_20' ) end [2025-07-21 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-21 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-21 19:25:26] Production.INFO: ==30090== Releasing lock... [2025-07-21 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 19:25:26] Production.INFO: 51.75 MB #Memory Used# [2025-07-21 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 17:25:05 [end_date_ymd] => 2025-07-21 20:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 17:25:05' and `end` < '2025-07-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-07-21 20:25:18] Production.INFO: count ==2101 [2025-07-21 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-21 17:25:05 - End Time 2025-07-21 20:25:05 [2025-07-21 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514328', 'tblTempUsageDetail_20' ) start [2025-07-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514328', 'tblTempUsageDetail_20' ) end [2025-07-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514328', 'tblTempVendorCDR_20' ) start [2025-07-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514328', 'tblTempVendorCDR_20' ) end [2025-07-21 20:25:19] Production.INFO: ProcessCDR(1,15514328,1,1,2) [2025-07-21 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15514328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15514328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15514328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15514328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514328', 'tblTempUsageDetail_20' ) start [2025-07-21 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514328', 'tblTempUsageDetail_20' ) end [2025-07-21 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-21 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-21 20:25:27] Production.INFO: ==2344== Releasing lock... [2025-07-21 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 20:25:27] Production.INFO: 44 MB #Memory Used# [2025-07-21 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 18:25:04 [end_date_ymd] => 2025-07-21 21:25:04 [RateCDR] => 1 ) [2025-07-21 21: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-07-21 18:25:04' and `end` < '2025-07-21 21: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-07-21 21:25:17] Production.INFO: count ==1414 [2025-07-21 21:25:17] Production.ERROR: pbx CDR StartTime 2025-07-21 18:25:04 - End Time 2025-07-21 21:25:04 [2025-07-21 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514575', 'tblTempUsageDetail_20' ) start [2025-07-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514575', 'tblTempUsageDetail_20' ) end [2025-07-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514575', 'tblTempVendorCDR_20' ) start [2025-07-21 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514575', 'tblTempVendorCDR_20' ) end [2025-07-21 21:25:17] Production.INFO: ProcessCDR(1,15514575,1,1,2) [2025-07-21 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15514575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15514575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15514575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15514575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514575', 'tblTempUsageDetail_20' ) start [2025-07-21 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514575', 'tblTempUsageDetail_20' ) end [2025-07-21 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-21 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-21 21:25:25] Production.INFO: ==6719== Releasing lock... [2025-07-21 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 21:25:25] Production.INFO: 38.75 MB #Memory Used# [2025-07-21 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 19:25:06 [end_date_ymd] => 2025-07-21 22:25:06 [RateCDR] => 1 ) [2025-07-21 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-21 19:25:06' and `end` < '2025-07-21 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-21 22:25:18] Production.INFO: count ==1085 [2025-07-21 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-21 19:25:06 - End Time 2025-07-21 22:25:06 [2025-07-21 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514822', 'tblTempUsageDetail_20' ) start [2025-07-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15514822', 'tblTempUsageDetail_20' ) end [2025-07-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514822', 'tblTempVendorCDR_20' ) start [2025-07-21 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15514822', 'tblTempVendorCDR_20' ) end [2025-07-21 22:25:18] Production.INFO: ProcessCDR(1,15514822,1,1,2) [2025-07-21 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15514822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15514822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15514822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15514822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514822', 'tblTempUsageDetail_20' ) start [2025-07-21 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15514822', 'tblTempUsageDetail_20' ) end [2025-07-21 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-21 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-21 22:25:26] Production.INFO: ==10951== Releasing lock... [2025-07-21 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 22:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-07-21 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-21 20:25:05 [end_date_ymd] => 2025-07-21 23:25:05 [RateCDR] => 1 ) [2025-07-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-07-21 20:25:05' and `end` < '2025-07-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-07-21 23:25:18] Production.INFO: count ==814 [2025-07-21 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-21 20:25:05 - End Time 2025-07-21 23:25:05 [2025-07-21 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15515069', 'tblTempUsageDetail_20' ) start [2025-07-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15515069', 'tblTempUsageDetail_20' ) end [2025-07-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15515069', 'tblTempVendorCDR_20' ) start [2025-07-21 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15515069', 'tblTempVendorCDR_20' ) end [2025-07-21 23:25:18] Production.INFO: ProcessCDR(1,15515069,1,1,2) [2025-07-21 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15515069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15515069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-21 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15515069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15515069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-21 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15515069', 'tblTempUsageDetail_20' ) start [2025-07-21 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15515069', 'tblTempUsageDetail_20' ) end [2025-07-21 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-21 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-21 23:25:25] Production.INFO: ==15348== Releasing lock... [2025-07-21 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-21 23:25:25] Production.INFO: 34.25 MB #Memory Used#