[2025-08-28 00:25:04] Production.INFO: next invoice date [2025-08-28 00:25:04] Production.INFO: 2025-09-28 [2025-08-28 00:25:04] Production.INFO: getdaysdiff [2025-08-28 00:25:04] Production.INFO: +31 [2025-08-28 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (103,10,2,31,31,'RMScheduler',2025-08-28 00:25:04,1,0,,,0) [2025-08-28 00:25:05] Production.INFO: next invoice date [2025-08-28 00:25:05] Production.INFO: 2025-09-28 [2025-08-28 00:25:05] Production.INFO: getdaysdiff [2025-08-28 00:25:05] Production.INFO: +31 [2025-08-28 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (103,16,1,31,31,'RMScheduler',2025-08-28 00:25:04,1,0,,,0) [2025-08-28 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 21:25:05 [end_date_ymd] => 2025-08-28 00:25:05 [RateCDR] => 1 ) [2025-08-28 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-27 21:25:05' and `end` < '2025-08-28 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 00:25:18] Production.INFO: count ==480 [2025-08-28 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 21:25:05 - End Time 2025-08-28 00:25:05 [2025-08-28 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734620', 'tblTempUsageDetail_20' ) start [2025-08-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734620', 'tblTempUsageDetail_20' ) end [2025-08-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734620', 'tblTempVendorCDR_20' ) start [2025-08-28 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734620', 'tblTempVendorCDR_20' ) end [2025-08-28 00:25:18] Production.INFO: ProcessCDR(1,15734620,1,1,2) [2025-08-28 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15734620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15734620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15734620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15734620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734620', 'tblTempUsageDetail_20' ) start [2025-08-28 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734620', 'tblTempUsageDetail_20' ) end [2025-08-28 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-28 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-28 00:25:27] Production.INFO: ==20588== Releasing lock... [2025-08-28 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 00:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-08-28 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 22:25:05 [end_date_ymd] => 2025-08-28 01:25:05 [RateCDR] => 1 ) [2025-08-28 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-27 22:25:05' and `end` < '2025-08-28 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-28 01:25:17] Production.INFO: count ==455 [2025-08-28 01:25:17] Production.ERROR: pbx CDR StartTime 2025-08-27 22:25:05 - End Time 2025-08-28 01:25:05 [2025-08-28 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734867', 'tblTempUsageDetail_20' ) start [2025-08-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734867', 'tblTempUsageDetail_20' ) end [2025-08-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734867', 'tblTempVendorCDR_20' ) start [2025-08-28 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734867', 'tblTempVendorCDR_20' ) end [2025-08-28 01:25:17] Production.INFO: ProcessCDR(1,15734867,1,1,2) [2025-08-28 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15734867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15734867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15734867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15734867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734867', 'tblTempUsageDetail_20' ) start [2025-08-28 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734867', 'tblTempUsageDetail_20' ) end [2025-08-28 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-28 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-28 01:25:25] Production.INFO: ==24877== Releasing lock... [2025-08-28 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 01:25:25] Production.INFO: 32 MB #Memory Used# [2025-08-28 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 23:25:05 [end_date_ymd] => 2025-08-28 02:25:05 [RateCDR] => 1 ) [2025-08-28 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-27 23:25:05' and `end` < '2025-08-28 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 02:25:19] Production.INFO: count ==393 [2025-08-28 02:25:19] Production.ERROR: pbx CDR StartTime 2025-08-27 23:25:05 - End Time 2025-08-28 02:25:05 [2025-08-28 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735114', 'tblTempUsageDetail_20' ) start [2025-08-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735114', 'tblTempUsageDetail_20' ) end [2025-08-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735114', 'tblTempVendorCDR_20' ) start [2025-08-28 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735114', 'tblTempVendorCDR_20' ) end [2025-08-28 02:25:19] Production.INFO: ProcessCDR(1,15735114,1,1,2) [2025-08-28 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15735114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15735114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15735114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15735114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735114', 'tblTempUsageDetail_20' ) start [2025-08-28 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735114', 'tblTempUsageDetail_20' ) end [2025-08-28 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-28 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-28 02:25:26] Production.INFO: ==29689== Releasing lock... [2025-08-28 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 02:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-08-28 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 00:25:05 [end_date_ymd] => 2025-08-28 03:25:05 [RateCDR] => 1 ) [2025-08-28 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 00:25:05' and `end` < '2025-08-28 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 03:25:17] Production.INFO: count ==275 [2025-08-28 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-28 00:25:05 - End Time 2025-08-28 03:25:05 [2025-08-28 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735361', 'tblTempUsageDetail_20' ) start [2025-08-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735361', 'tblTempUsageDetail_20' ) end [2025-08-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735361', 'tblTempVendorCDR_20' ) start [2025-08-28 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735361', 'tblTempVendorCDR_20' ) end [2025-08-28 03:25:17] Production.INFO: ProcessCDR(1,15735361,1,1,2) [2025-08-28 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15735361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15735361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15735361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15735361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735361', 'tblTempUsageDetail_20' ) start [2025-08-28 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735361', 'tblTempUsageDetail_20' ) end [2025-08-28 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-28 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-28 03:25:24] Production.INFO: ==1599== Releasing lock... [2025-08-28 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 03:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-08-28 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 01:25:06 [end_date_ymd] => 2025-08-28 04:25:06 [RateCDR] => 1 ) [2025-08-28 04:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 01:25:06' and `end` < '2025-08-28 04:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 04:25:18] Production.INFO: count ==171 [2025-08-28 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-28 01:25:06 - End Time 2025-08-28 04:25:06 [2025-08-28 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735609', 'tblTempUsageDetail_20' ) start [2025-08-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735609', 'tblTempUsageDetail_20' ) end [2025-08-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735609', 'tblTempVendorCDR_20' ) start [2025-08-28 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735609', 'tblTempVendorCDR_20' ) end [2025-08-28 04:25:18] Production.INFO: ProcessCDR(1,15735609,1,1,2) [2025-08-28 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15735609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15735609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15735609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15735609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735609', 'tblTempUsageDetail_20' ) start [2025-08-28 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735609', 'tblTempUsageDetail_20' ) end [2025-08-28 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-28 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-28 04:25:26] Production.INFO: ==6262== Releasing lock... [2025-08-28 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 04:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-08-28 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 02:25:05 [end_date_ymd] => 2025-08-28 05:25:05 [RateCDR] => 1 ) [2025-08-28 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 02:25:05' and `end` < '2025-08-28 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 05:25:17] Production.INFO: count ==116 [2025-08-28 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-28 02:25:05 - End Time 2025-08-28 05:25:05 [2025-08-28 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735857', 'tblTempUsageDetail_20' ) start [2025-08-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15735857', 'tblTempUsageDetail_20' ) end [2025-08-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735857', 'tblTempVendorCDR_20' ) start [2025-08-28 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15735857', 'tblTempVendorCDR_20' ) end [2025-08-28 05:25:17] Production.INFO: ProcessCDR(1,15735857,1,1,2) [2025-08-28 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15735857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15735857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15735857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15735857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735857', 'tblTempUsageDetail_20' ) start [2025-08-28 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15735857', 'tblTempUsageDetail_20' ) end [2025-08-28 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-28 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-28 05:25:25] Production.INFO: ==10650== Releasing lock... [2025-08-28 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 05:25:25] Production.INFO: 29 MB #Memory Used# [2025-08-28 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 03:25:06 [end_date_ymd] => 2025-08-28 06:25:06 [RateCDR] => 1 ) [2025-08-28 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 03:25:06' and `end` < '2025-08-28 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 06:25:18] Production.INFO: count ==97 [2025-08-28 06:25:18] Production.ERROR: pbx CDR StartTime 2025-08-28 03:25:06 - End Time 2025-08-28 06:25:06 [2025-08-28 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736104', 'tblTempUsageDetail_20' ) start [2025-08-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736104', 'tblTempUsageDetail_20' ) end [2025-08-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736104', 'tblTempVendorCDR_20' ) start [2025-08-28 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736104', 'tblTempVendorCDR_20' ) end [2025-08-28 06:25:18] Production.INFO: ProcessCDR(1,15736104,1,1,2) [2025-08-28 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15736104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15736104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15736104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15736104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736104', 'tblTempUsageDetail_20' ) start [2025-08-28 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736104', 'tblTempUsageDetail_20' ) end [2025-08-28 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-28 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-28 06:25:25] Production.INFO: ==15079== Releasing lock... [2025-08-28 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-08-28 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 04:25:05 [end_date_ymd] => 2025-08-28 07:25:05 [RateCDR] => 1 ) [2025-08-28 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-08-28 04:25:05' and `end` < '2025-08-28 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-08-28 07:25:17] Production.INFO: count ==96 [2025-08-28 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-28 04:25:05 - End Time 2025-08-28 07:25:05 [2025-08-28 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736351', 'tblTempUsageDetail_20' ) start [2025-08-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736351', 'tblTempUsageDetail_20' ) end [2025-08-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736351', 'tblTempVendorCDR_20' ) start [2025-08-28 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736351', 'tblTempVendorCDR_20' ) end [2025-08-28 07:25:17] Production.INFO: ProcessCDR(1,15736351,1,1,2) [2025-08-28 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15736351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15736351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15736351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15736351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736351', 'tblTempUsageDetail_20' ) start [2025-08-28 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736351', 'tblTempUsageDetail_20' ) end [2025-08-28 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-28 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-28 07:25:25] Production.INFO: ==19559== Releasing lock... [2025-08-28 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 07:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-08-28 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 05:25:06 [end_date_ymd] => 2025-08-28 08:25:06 [RateCDR] => 1 ) [2025-08-28 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 05:25:06' and `end` < '2025-08-28 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 08:25:18] Production.INFO: count ==224 [2025-08-28 08:25:18] Production.ERROR: pbx CDR StartTime 2025-08-28 05:25:06 - End Time 2025-08-28 08:25:06 [2025-08-28 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736598', 'tblTempUsageDetail_20' ) start [2025-08-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736598', 'tblTempUsageDetail_20' ) end [2025-08-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736598', 'tblTempVendorCDR_20' ) start [2025-08-28 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736598', 'tblTempVendorCDR_20' ) end [2025-08-28 08:25:18] Production.INFO: ProcessCDR(1,15736598,1,1,2) [2025-08-28 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15736598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15736598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15736598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15736598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736598', 'tblTempUsageDetail_20' ) start [2025-08-28 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736598', 'tblTempUsageDetail_20' ) end [2025-08-28 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-28 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-28 08:25:26] Production.INFO: ==24212== Releasing lock... [2025-08-28 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 08:25:26] Production.INFO: 29.75 MB #Memory Used# [2025-08-28 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 06:25:04 [end_date_ymd] => 2025-08-28 09:25:04 [RateCDR] => 1 ) [2025-08-28 09: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-28 06:25:04' and `end` < '2025-08-28 09: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-28 09:25:17] Production.INFO: count ==1009 [2025-08-28 09:25:17] Production.ERROR: pbx CDR StartTime 2025-08-28 06:25:04 - End Time 2025-08-28 09:25:04 [2025-08-28 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736845', 'tblTempUsageDetail_20' ) start [2025-08-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15736845', 'tblTempUsageDetail_20' ) end [2025-08-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736845', 'tblTempVendorCDR_20' ) start [2025-08-28 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15736845', 'tblTempVendorCDR_20' ) end [2025-08-28 09:25:17] Production.INFO: ProcessCDR(1,15736845,1,1,2) [2025-08-28 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15736845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15736845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15736845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15736845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736845', 'tblTempUsageDetail_20' ) start [2025-08-28 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15736845', 'tblTempUsageDetail_20' ) end [2025-08-28 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-28 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-28 09:25:26] Production.INFO: ==29064== Releasing lock... [2025-08-28 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 09:25:26] Production.INFO: 35.75 MB #Memory Used# [2025-08-28 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 07:25:05 [end_date_ymd] => 2025-08-28 10:25:05 [RateCDR] => 1 ) [2025-08-28 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-08-28 07:25:05' and `end` < '2025-08-28 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-08-28 10:25:18] Production.INFO: count ==2398 [2025-08-28 10:25:19] Production.ERROR: pbx CDR StartTime 2025-08-28 07:25:05 - End Time 2025-08-28 10:25:05 [2025-08-28 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737092', 'tblTempUsageDetail_20' ) start [2025-08-28 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737092', 'tblTempUsageDetail_20' ) end [2025-08-28 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737092', 'tblTempVendorCDR_20' ) start [2025-08-28 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737092', 'tblTempVendorCDR_20' ) end [2025-08-28 10:25:19] Production.INFO: ProcessCDR(1,15737092,1,1,2) [2025-08-28 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15737092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15737092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15737092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 10:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15737092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737092', 'tblTempUsageDetail_20' ) start [2025-08-28 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737092', 'tblTempUsageDetail_20' ) end [2025-08-28 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-28 10:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-28 10:25:29] Production.INFO: ==1299== Releasing lock... [2025-08-28 10:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 10:25:29] Production.INFO: 46.5 MB #Memory Used# [2025-08-28 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 08:25:05 [end_date_ymd] => 2025-08-28 11:25:05 [RateCDR] => 1 ) [2025-08-28 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-28 08:25:05' and `end` < '2025-08-28 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 11:25:19] Production.INFO: count ==3923 [2025-08-28 11:25:21] Production.ERROR: pbx CDR StartTime 2025-08-28 08:25:05 - End Time 2025-08-28 11:25:05 [2025-08-28 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737339', 'tblTempUsageDetail_20' ) start [2025-08-28 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737339', 'tblTempUsageDetail_20' ) end [2025-08-28 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737339', 'tblTempVendorCDR_20' ) start [2025-08-28 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737339', 'tblTempVendorCDR_20' ) end [2025-08-28 11:25:21] Production.INFO: ProcessCDR(1,15737339,1,1,2) [2025-08-28 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15737339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15737339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15737339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15737339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737339', 'tblTempUsageDetail_20' ) start [2025-08-28 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737339', 'tblTempUsageDetail_20' ) end [2025-08-28 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-28 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-28 11:25:33] Production.INFO: ==5925== Releasing lock... [2025-08-28 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 11:25:33] Production.INFO: 57.5 MB #Memory Used# [2025-08-28 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 09:25:06 [end_date_ymd] => 2025-08-28 12:25:06 [RateCDR] => 1 ) [2025-08-28 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 09:25:06' and `end` < '2025-08-28 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 12:25:21] Production.INFO: count ==4792 [2025-08-28 12:25:23] Production.ERROR: pbx CDR StartTime 2025-08-28 09:25:06 - End Time 2025-08-28 12:25:06 [2025-08-28 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737586', 'tblTempUsageDetail_20' ) start [2025-08-28 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737586', 'tblTempUsageDetail_20' ) end [2025-08-28 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737586', 'tblTempVendorCDR_20' ) start [2025-08-28 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737586', 'tblTempVendorCDR_20' ) end [2025-08-28 12:25:24] Production.INFO: ProcessCDR(1,15737586,1,1,2) [2025-08-28 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15737586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 12:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15737586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 12:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15737586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15737586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737586', 'tblTempUsageDetail_20' ) start [2025-08-28 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737586', 'tblTempUsageDetail_20' ) end [2025-08-28 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-28 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-28 12:25:36] Production.INFO: ==10705== Releasing lock... [2025-08-28 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 12:25:36] Production.INFO: 64 MB #Memory Used# [2025-08-28 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 10:25:06 [end_date_ymd] => 2025-08-28 13:25:06 [RateCDR] => 1 ) [2025-08-28 13: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-28 10:25:06' and `end` < '2025-08-28 13: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-28 13:25:20] Production.INFO: count ==4967 [2025-08-28 13:25:22] Production.ERROR: pbx CDR StartTime 2025-08-28 10:25:06 - End Time 2025-08-28 13:25:06 [2025-08-28 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737833', 'tblTempUsageDetail_20' ) start [2025-08-28 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15737833', 'tblTempUsageDetail_20' ) end [2025-08-28 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737833', 'tblTempVendorCDR_20' ) start [2025-08-28 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15737833', 'tblTempVendorCDR_20' ) end [2025-08-28 13:25:23] Production.INFO: ProcessCDR(1,15737833,1,1,2) [2025-08-28 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15737833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15737833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15737833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15737833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737833', 'tblTempUsageDetail_20' ) start [2025-08-28 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15737833', 'tblTempUsageDetail_20' ) end [2025-08-28 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-28 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-28 13:25:34] Production.INFO: ==15313== Releasing lock... [2025-08-28 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 13:25:34] Production.INFO: 65.75 MB #Memory Used# [2025-08-28 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 11:25:05 [end_date_ymd] => 2025-08-28 14:25:05 [RateCDR] => 1 ) [2025-08-28 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 11:25:05' and `end` < '2025-08-28 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 14:25:19] Production.INFO: count ==5073 [2025-08-28 14:25:21] Production.ERROR: pbx CDR StartTime 2025-08-28 11:25:05 - End Time 2025-08-28 14:25:05 [2025-08-28 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738080', 'tblTempUsageDetail_20' ) start [2025-08-28 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738080', 'tblTempUsageDetail_20' ) end [2025-08-28 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738080', 'tblTempVendorCDR_20' ) start [2025-08-28 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738080', 'tblTempVendorCDR_20' ) end [2025-08-28 14:25:22] Production.INFO: ProcessCDR(1,15738080,1,1,2) [2025-08-28 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15738080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15738080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15738080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15738080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738080', 'tblTempUsageDetail_20' ) start [2025-08-28 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738080', 'tblTempUsageDetail_20' ) end [2025-08-28 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-28 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-28 14:25:34] Production.INFO: ==20172== Releasing lock... [2025-08-28 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 14:25:34] Production.INFO: 66.25 MB #Memory Used# [2025-08-28 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 12:25:05 [end_date_ymd] => 2025-08-28 15:25:05 [RateCDR] => 1 ) [2025-08-28 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 12:25:05' and `end` < '2025-08-28 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 15:25:20] Production.INFO: count ==5114 [2025-08-28 15:25:23] Production.ERROR: pbx CDR StartTime 2025-08-28 12:25:05 - End Time 2025-08-28 15:25:05 [2025-08-28 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738327', 'tblTempUsageDetail_20' ) start [2025-08-28 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738327', 'tblTempUsageDetail_20' ) end [2025-08-28 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738327', 'tblTempVendorCDR_20' ) start [2025-08-28 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738327', 'tblTempVendorCDR_20' ) end [2025-08-28 15:25:23] Production.INFO: ProcessCDR(1,15738327,1,1,2) [2025-08-28 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15738327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15738327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15738327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15738327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738327', 'tblTempUsageDetail_20' ) start [2025-08-28 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738327', 'tblTempUsageDetail_20' ) end [2025-08-28 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-28 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-28 15:25:35] Production.INFO: ==24705== Releasing lock... [2025-08-28 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 15:25:35] Production.INFO: 66.5 MB #Memory Used# [2025-08-28 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 13:25:05 [end_date_ymd] => 2025-08-28 16:25:05 [RateCDR] => 1 ) [2025-08-28 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 13:25:05' and `end` < '2025-08-28 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 16:25:19] Production.INFO: count ==5241 [2025-08-28 16:25:21] Production.ERROR: pbx CDR StartTime 2025-08-28 13:25:05 - End Time 2025-08-28 16:25:05 [2025-08-28 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738574', 'tblTempUsageDetail_20' ) start [2025-08-28 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738574', 'tblTempUsageDetail_20' ) end [2025-08-28 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738574', 'tblTempVendorCDR_20' ) start [2025-08-28 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738574', 'tblTempVendorCDR_20' ) end [2025-08-28 16:25:22] Production.INFO: ProcessCDR(1,15738574,1,1,2) [2025-08-28 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15738574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15738574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15738574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15738574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738574', 'tblTempUsageDetail_20' ) start [2025-08-28 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738574', 'tblTempUsageDetail_20' ) end [2025-08-28 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-28 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-28 16:25:34] Production.INFO: ==29221== Releasing lock... [2025-08-28 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 16:25:34] Production.INFO: 67.5 MB #Memory Used# [2025-08-28 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 14:25:05 [end_date_ymd] => 2025-08-28 17:25:05 [RateCDR] => 1 ) [2025-08-28 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-08-28 14:25:05' and `end` < '2025-08-28 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-08-28 17:25:18] Production.INFO: count ==5005 [2025-08-28 17:25:21] Production.ERROR: pbx CDR StartTime 2025-08-28 14:25:05 - End Time 2025-08-28 17:25:05 [2025-08-28 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738821', 'tblTempUsageDetail_20' ) start [2025-08-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15738821', 'tblTempUsageDetail_20' ) end [2025-08-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738821', 'tblTempVendorCDR_20' ) start [2025-08-28 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15738821', 'tblTempVendorCDR_20' ) end [2025-08-28 17:25:21] Production.INFO: ProcessCDR(1,15738821,1,1,2) [2025-08-28 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15738821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15738821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15738821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15738821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738821', 'tblTempUsageDetail_20' ) start [2025-08-28 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15738821', 'tblTempUsageDetail_20' ) end [2025-08-28 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-28 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-28 17:25:32] Production.INFO: ==1291== Releasing lock... [2025-08-28 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 17:25:32] Production.INFO: 65.75 MB #Memory Used# [2025-08-28 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 15:25:06 [end_date_ymd] => 2025-08-28 18:25:06 [RateCDR] => 1 ) [2025-08-28 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-28 15:25:06' and `end` < '2025-08-28 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-28 18:25:19] Production.INFO: count ==4092 [2025-08-28 18:25:20] Production.ERROR: pbx CDR StartTime 2025-08-28 15:25:06 - End Time 2025-08-28 18:25:06 [2025-08-28 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739068', 'tblTempUsageDetail_20' ) start [2025-08-28 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739068', 'tblTempUsageDetail_20' ) end [2025-08-28 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739068', 'tblTempVendorCDR_20' ) start [2025-08-28 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739068', 'tblTempVendorCDR_20' ) end [2025-08-28 18:25:21] Production.INFO: ProcessCDR(1,15739068,1,1,2) [2025-08-28 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15739068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15739068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15739068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15739068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739068', 'tblTempUsageDetail_20' ) start [2025-08-28 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739068', 'tblTempUsageDetail_20' ) end [2025-08-28 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-28 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-28 18:25:30] Production.INFO: ==5817== Releasing lock... [2025-08-28 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 18:25:30] Production.INFO: 59 MB #Memory Used# [2025-08-28 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 16:25:05 [end_date_ymd] => 2025-08-28 19:25:05 [RateCDR] => 1 ) [2025-08-28 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 16:25:05' and `end` < '2025-08-28 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 19:25:18] Production.INFO: count ==3184 [2025-08-28 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-28 16:25:05 - End Time 2025-08-28 19:25:05 [2025-08-28 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739313', 'tblTempUsageDetail_20' ) start [2025-08-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739313', 'tblTempUsageDetail_20' ) end [2025-08-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739313', 'tblTempVendorCDR_20' ) start [2025-08-28 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739313', 'tblTempVendorCDR_20' ) end [2025-08-28 19:25:19] Production.INFO: ProcessCDR(1,15739313,1,1,2) [2025-08-28 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15739313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15739313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15739313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15739313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739313', 'tblTempUsageDetail_20' ) start [2025-08-28 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739313', 'tblTempUsageDetail_20' ) end [2025-08-28 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-28 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-28 19:25:29] Production.INFO: ==10302== Releasing lock... [2025-08-28 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 19:25:29] Production.INFO: 52 MB #Memory Used# [2025-08-28 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 17:25:05 [end_date_ymd] => 2025-08-28 20:25:05 [RateCDR] => 1 ) [2025-08-28 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 17:25:05' and `end` < '2025-08-28 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 20:25:19] Production.INFO: count ==2221 [2025-08-28 20:25:19] Production.ERROR: pbx CDR StartTime 2025-08-28 17:25:05 - End Time 2025-08-28 20:25:05 [2025-08-28 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739560', 'tblTempUsageDetail_20' ) start [2025-08-28 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739560', 'tblTempUsageDetail_20' ) end [2025-08-28 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739560', 'tblTempVendorCDR_20' ) start [2025-08-28 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739560', 'tblTempVendorCDR_20' ) end [2025-08-28 20:25:20] Production.INFO: ProcessCDR(1,15739560,1,1,2) [2025-08-28 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15739560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 20:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15739560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 20:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15739560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15739560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739560', 'tblTempUsageDetail_20' ) start [2025-08-28 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739560', 'tblTempUsageDetail_20' ) end [2025-08-28 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-28 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-28 20:25:29] Production.INFO: ==14840== Releasing lock... [2025-08-28 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 20:25:29] Production.INFO: 44.75 MB #Memory Used# [2025-08-28 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 18:25:05 [end_date_ymd] => 2025-08-28 21:25:05 [RateCDR] => 1 ) [2025-08-28 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-28 18:25:05' and `end` < '2025-08-28 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-28 21:25:17] Production.INFO: count ==1726 [2025-08-28 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-28 18:25:05 - End Time 2025-08-28 21:25:05 [2025-08-28 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739807', 'tblTempUsageDetail_20' ) start [2025-08-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15739807', 'tblTempUsageDetail_20' ) end [2025-08-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739807', 'tblTempVendorCDR_20' ) start [2025-08-28 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15739807', 'tblTempVendorCDR_20' ) end [2025-08-28 21:25:18] Production.INFO: ProcessCDR(1,15739807,1,1,2) [2025-08-28 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15739807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15739807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15739807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15739807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739807', 'tblTempUsageDetail_20' ) start [2025-08-28 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15739807', 'tblTempUsageDetail_20' ) end [2025-08-28 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-28 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-28 21:25:26] Production.INFO: ==19178== Releasing lock... [2025-08-28 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 21:25:26] Production.INFO: 41.25 MB #Memory Used# [2025-08-28 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 19:25:05 [end_date_ymd] => 2025-08-28 22:25:05 [RateCDR] => 1 ) [2025-08-28 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 19:25:05' and `end` < '2025-08-28 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 22:25:17] Production.INFO: count ==1221 [2025-08-28 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-28 19:25:05 - End Time 2025-08-28 22:25:05 [2025-08-28 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740054', 'tblTempUsageDetail_20' ) start [2025-08-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740054', 'tblTempUsageDetail_20' ) end [2025-08-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740054', 'tblTempVendorCDR_20' ) start [2025-08-28 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740054', 'tblTempVendorCDR_20' ) end [2025-08-28 22:25:18] Production.INFO: ProcessCDR(1,15740054,1,1,2) [2025-08-28 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15740054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15740054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15740054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15740054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740054', 'tblTempUsageDetail_20' ) start [2025-08-28 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740054', 'tblTempUsageDetail_20' ) end [2025-08-28 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-28 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-28 22:25:25] Production.INFO: ==23788== Releasing lock... [2025-08-28 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 22:25:25] Production.INFO: 37.25 MB #Memory Used# [2025-08-28 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-28 20:25:05 [end_date_ymd] => 2025-08-28 23:25:05 [RateCDR] => 1 ) [2025-08-28 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-28 20:25:05' and `end` < '2025-08-28 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-28 23:25:17] Production.INFO: count ==997 [2025-08-28 23:25:17] Production.ERROR: pbx CDR StartTime 2025-08-28 20:25:05 - End Time 2025-08-28 23:25:05 [2025-08-28 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740301', 'tblTempUsageDetail_20' ) start [2025-08-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15740301', 'tblTempUsageDetail_20' ) end [2025-08-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740301', 'tblTempVendorCDR_20' ) start [2025-08-28 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15740301', 'tblTempVendorCDR_20' ) end [2025-08-28 23:25:17] Production.INFO: ProcessCDR(1,15740301,1,1,2) [2025-08-28 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15740301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15740301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-28 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15740301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15740301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-28 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740301', 'tblTempUsageDetail_20' ) start [2025-08-28 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15740301', 'tblTempUsageDetail_20' ) end [2025-08-28 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-28 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-28 23:25:26] Production.INFO: ==28038== Releasing lock... [2025-08-28 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-28 23:25:26] Production.INFO: 36.25 MB #Memory Used#