[2025-10-15 00:25:04] Production.INFO: next invoice date [2025-10-15 00:25:04] Production.INFO: 2025-11-15 [2025-10-15 00:25:04] Production.INFO: getdaysdiff [2025-10-15 00:25:04] Production.INFO: +31 [2025-10-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,31,31,'RMScheduler',2025-10-15 00:25:04,1,0,,,0) [2025-10-15 00:25:04] Production.INFO: next invoice date [2025-10-15 00:25:04] Production.INFO: 2025-11-15 [2025-10-15 00:25:04] Production.INFO: getdaysdiff [2025-10-15 00:25:04] Production.INFO: +31 [2025-10-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,31,31,'RMScheduler',2025-10-15 00:25:04,1,0,,,0) [2025-10-15 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 21:25:05 [end_date_ymd] => 2025-10-15 00:25:05 [RateCDR] => 1 ) [2025-10-15 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-10-14 21:25:05' and `end` < '2025-10-15 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-10-15 00:25:24] Production.INFO: count ==433 [2025-10-15 00:25:25] Production.ERROR: pbx CDR StartTime 2025-10-14 21:25:05 - End Time 2025-10-15 00:25:05 [2025-10-15 00:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 00:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019132', 'tblTempUsageDetail_20' ) start [2025-10-15 00:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019132', 'tblTempUsageDetail_20' ) end [2025-10-15 00:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019132', 'tblTempVendorCDR_20' ) start [2025-10-15 00:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019132', 'tblTempVendorCDR_20' ) end [2025-10-15 00:25:25] Production.INFO: ProcessCDR(1,16019132,1,1,2) [2025-10-15 00:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16019132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 00:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16019132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 00:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16019132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 00:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16019132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 00:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019132', 'tblTempUsageDetail_20' ) start [2025-10-15 00:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019132', 'tblTempUsageDetail_20' ) end [2025-10-15 00:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-15 00:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-15 00:25:35] Production.INFO: ==14537== Releasing lock... [2025-10-15 00:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 00:25:35] Production.INFO: 35.5 MB #Memory Used# [2025-10-15 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 22:25:05 [end_date_ymd] => 2025-10-15 01:25:05 [RateCDR] => 1 ) [2025-10-15 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-14 22:25:05' and `end` < '2025-10-15 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 01:25:17] Production.INFO: count ==347 [2025-10-15 01:25:17] Production.ERROR: pbx CDR StartTime 2025-10-14 22:25:05 - End Time 2025-10-15 01:25:05 [2025-10-15 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019379', 'tblTempUsageDetail_20' ) start [2025-10-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019379', 'tblTempUsageDetail_20' ) end [2025-10-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019379', 'tblTempVendorCDR_20' ) start [2025-10-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019379', 'tblTempVendorCDR_20' ) end [2025-10-15 01:25:17] Production.INFO: ProcessCDR(1,16019379,1,1,2) [2025-10-15 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16019379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16019379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16019379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16019379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019379', 'tblTempUsageDetail_20' ) start [2025-10-15 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019379', 'tblTempUsageDetail_20' ) end [2025-10-15 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-15 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-15 01:25:26] Production.INFO: ==19103== Releasing lock... [2025-10-15 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 01:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-10-15 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-14 23:25:05 [end_date_ymd] => 2025-10-15 02:25:05 [RateCDR] => 1 ) [2025-10-15 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-14 23:25:05' and `end` < '2025-10-15 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 02:25:17] Production.INFO: count ==284 [2025-10-15 02:25:17] Production.ERROR: pbx CDR StartTime 2025-10-14 23:25:05 - End Time 2025-10-15 02:25:05 [2025-10-15 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019626', 'tblTempUsageDetail_20' ) start [2025-10-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019626', 'tblTempUsageDetail_20' ) end [2025-10-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019626', 'tblTempVendorCDR_20' ) start [2025-10-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019626', 'tblTempVendorCDR_20' ) end [2025-10-15 02:25:17] Production.INFO: ProcessCDR(1,16019626,1,1,2) [2025-10-15 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16019626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16019626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16019626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16019626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019626', 'tblTempUsageDetail_20' ) start [2025-10-15 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019626', 'tblTempUsageDetail_20' ) end [2025-10-15 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-15 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-15 02:25:26] Production.INFO: ==23802== Releasing lock... [2025-10-15 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 02:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-10-15 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 00:25:05 [end_date_ymd] => 2025-10-15 03:25:05 [RateCDR] => 1 ) [2025-10-15 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 00:25:05' and `end` < '2025-10-15 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 03:25:17] Production.INFO: count ==228 [2025-10-15 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-15 00:25:05 - End Time 2025-10-15 03:25:05 [2025-10-15 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019873', 'tblTempUsageDetail_20' ) start [2025-10-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16019873', 'tblTempUsageDetail_20' ) end [2025-10-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019873', 'tblTempVendorCDR_20' ) start [2025-10-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16019873', 'tblTempVendorCDR_20' ) end [2025-10-15 03:25:17] Production.INFO: ProcessCDR(1,16019873,1,1,2) [2025-10-15 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16019873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16019873,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16019873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16019873,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019873', 'tblTempUsageDetail_20' ) start [2025-10-15 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16019873', 'tblTempUsageDetail_20' ) end [2025-10-15 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-15 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-15 03:25:26] Production.INFO: ==28550== Releasing lock... [2025-10-15 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 03:25:26] Production.INFO: 30.25 MB #Memory Used# [2025-10-15 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 01:25:05 [end_date_ymd] => 2025-10-15 04:25:05 [RateCDR] => 1 ) [2025-10-15 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-10-15 01:25:05' and `end` < '2025-10-15 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-10-15 04:25:17] Production.INFO: count ==172 [2025-10-15 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-15 01:25:05 - End Time 2025-10-15 04:25:05 [2025-10-15 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020121', 'tblTempUsageDetail_20' ) start [2025-10-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020121', 'tblTempUsageDetail_20' ) end [2025-10-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020121', 'tblTempVendorCDR_20' ) start [2025-10-15 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020121', 'tblTempVendorCDR_20' ) end [2025-10-15 04:25:17] Production.INFO: ProcessCDR(1,16020121,1,1,2) [2025-10-15 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16020121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16020121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16020121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16020121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020121', 'tblTempUsageDetail_20' ) start [2025-10-15 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020121', 'tblTempUsageDetail_20' ) end [2025-10-15 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-10-15 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-10-15 04:25:24] Production.INFO: ==791== Releasing lock... [2025-10-15 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 04:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-10-15 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 02:25:05 [end_date_ymd] => 2025-10-15 05:25:05 [RateCDR] => 1 ) [2025-10-15 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 02:25:05' and `end` < '2025-10-15 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 05:25:17] Production.INFO: count ==138 [2025-10-15 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-15 02:25:05 - End Time 2025-10-15 05:25:05 [2025-10-15 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020369', 'tblTempUsageDetail_20' ) start [2025-10-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020369', 'tblTempUsageDetail_20' ) end [2025-10-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020369', 'tblTempVendorCDR_20' ) start [2025-10-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020369', 'tblTempVendorCDR_20' ) end [2025-10-15 05:25:17] Production.INFO: ProcessCDR(1,16020369,1,1,2) [2025-10-15 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16020369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16020369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16020369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16020369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020369', 'tblTempUsageDetail_20' ) start [2025-10-15 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020369', 'tblTempUsageDetail_20' ) end [2025-10-15 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-15 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-15 05:25:26] Production.INFO: ==5627== Releasing lock... [2025-10-15 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 05:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-10-15 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 03:25:05 [end_date_ymd] => 2025-10-15 06:25:05 [RateCDR] => 1 ) [2025-10-15 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 03:25:05' and `end` < '2025-10-15 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 06:25:17] Production.INFO: count ==121 [2025-10-15 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-15 03:25:05 - End Time 2025-10-15 06:25:05 [2025-10-15 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020616', 'tblTempUsageDetail_20' ) start [2025-10-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020616', 'tblTempUsageDetail_20' ) end [2025-10-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020616', 'tblTempVendorCDR_20' ) start [2025-10-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020616', 'tblTempVendorCDR_20' ) end [2025-10-15 06:25:17] Production.INFO: ProcessCDR(1,16020616,1,1,2) [2025-10-15 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16020616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16020616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16020616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16020616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020616', 'tblTempUsageDetail_20' ) start [2025-10-15 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020616', 'tblTempUsageDetail_20' ) end [2025-10-15 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-15 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-15 06:25:26] Production.INFO: ==10233== Releasing lock... [2025-10-15 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 06:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-15 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 04:25:06 [end_date_ymd] => 2025-10-15 07:25:06 [RateCDR] => 1 ) [2025-10-15 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 04:25:06' and `end` < '2025-10-15 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 07:25:18] Production.INFO: count ==129 [2025-10-15 07:25:18] Production.ERROR: pbx CDR StartTime 2025-10-15 04:25:06 - End Time 2025-10-15 07:25:06 [2025-10-15 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020863', 'tblTempUsageDetail_20' ) start [2025-10-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16020863', 'tblTempUsageDetail_20' ) end [2025-10-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020863', 'tblTempVendorCDR_20' ) start [2025-10-15 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16020863', 'tblTempVendorCDR_20' ) end [2025-10-15 07:25:18] Production.INFO: ProcessCDR(1,16020863,1,1,2) [2025-10-15 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16020863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 07:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16020863,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 07:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16020863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 07:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16020863,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020863', 'tblTempUsageDetail_20' ) start [2025-10-15 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16020863', 'tblTempUsageDetail_20' ) end [2025-10-15 07:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-15 07:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-15 07:25:27] Production.INFO: ==14522== Releasing lock... [2025-10-15 07:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 07:25:27] Production.INFO: 29.25 MB #Memory Used# [2025-10-15 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 05:25:05 [end_date_ymd] => 2025-10-15 08:25:05 [RateCDR] => 1 ) [2025-10-15 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-10-15 05:25:05' and `end` < '2025-10-15 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 08:25:17] Production.INFO: count ==366 [2025-10-15 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-15 05:25:05 - End Time 2025-10-15 08:25:05 [2025-10-15 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021110', 'tblTempUsageDetail_20' ) start [2025-10-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021110', 'tblTempUsageDetail_20' ) end [2025-10-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021110', 'tblTempVendorCDR_20' ) start [2025-10-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021110', 'tblTempVendorCDR_20' ) end [2025-10-15 08:25:17] Production.INFO: ProcessCDR(1,16021110,1,1,2) [2025-10-15 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16021110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16021110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16021110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16021110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021110', 'tblTempUsageDetail_20' ) start [2025-10-15 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021110', 'tblTempUsageDetail_20' ) end [2025-10-15 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-15 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-15 08:25:26] Production.INFO: ==19850== Releasing lock... [2025-10-15 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-10-15 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 06:25:06 [end_date_ymd] => 2025-10-15 09:25:06 [RateCDR] => 1 ) [2025-10-15 09: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-10-15 06:25:06' and `end` < '2025-10-15 09: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-10-15 09:25:21] Production.INFO: count ==1472 [2025-10-15 09:25:21] Production.ERROR: pbx CDR StartTime 2025-10-15 06:25:06 - End Time 2025-10-15 09:25:06 [2025-10-15 09:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 09:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021357', 'tblTempUsageDetail_20' ) start [2025-10-15 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021357', 'tblTempUsageDetail_20' ) end [2025-10-15 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021357', 'tblTempVendorCDR_20' ) start [2025-10-15 09:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021357', 'tblTempVendorCDR_20' ) end [2025-10-15 09:25:22] Production.INFO: ProcessCDR(1,16021357,1,1,2) [2025-10-15 09:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16021357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 09:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16021357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 09:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16021357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 09:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16021357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021357', 'tblTempUsageDetail_20' ) start [2025-10-15 09:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021357', 'tblTempUsageDetail_20' ) end [2025-10-15 09:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-15 09:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-15 09:25:32] Production.INFO: ==24244== Releasing lock... [2025-10-15 09:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 09:25:32] Production.INFO: 39.25 MB #Memory Used# [2025-10-15 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 07:25:05 [end_date_ymd] => 2025-10-15 10:25:05 [RateCDR] => 1 ) [2025-10-15 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 07:25:05' and `end` < '2025-10-15 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 10:25:18] Production.INFO: count ==3236 [2025-10-15 10:25:20] Production.ERROR: pbx CDR StartTime 2025-10-15 07:25:05 - End Time 2025-10-15 10:25:05 [2025-10-15 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021604', 'tblTempUsageDetail_20' ) start [2025-10-15 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021604', 'tblTempUsageDetail_20' ) end [2025-10-15 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021604', 'tblTempVendorCDR_20' ) start [2025-10-15 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021604', 'tblTempVendorCDR_20' ) end [2025-10-15 10:25:20] Production.INFO: ProcessCDR(1,16021604,1,1,2) [2025-10-15 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16021604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16021604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16021604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16021604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021604', 'tblTempUsageDetail_20' ) start [2025-10-15 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021604', 'tblTempUsageDetail_20' ) end [2025-10-15 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-15 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-15 10:25:33] Production.INFO: ==28629== Releasing lock... [2025-10-15 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 10:25:33] Production.INFO: 52.25 MB #Memory Used# [2025-10-15 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 08:25:05 [end_date_ymd] => 2025-10-15 11:25:05 [RateCDR] => 1 ) [2025-10-15 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 08:25:05' and `end` < '2025-10-15 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 11:25:20] Production.INFO: count ==5289 [2025-10-15 11:25:23] Production.ERROR: pbx CDR StartTime 2025-10-15 08:25:05 - End Time 2025-10-15 11:25:05 [2025-10-15 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021851', 'tblTempUsageDetail_20' ) start [2025-10-15 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16021851', 'tblTempUsageDetail_20' ) end [2025-10-15 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021851', 'tblTempVendorCDR_20' ) start [2025-10-15 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16021851', 'tblTempVendorCDR_20' ) end [2025-10-15 11:25:23] Production.INFO: ProcessCDR(1,16021851,1,1,2) [2025-10-15 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16021851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16021851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16021851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 11:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16021851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021851', 'tblTempUsageDetail_20' ) start [2025-10-15 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16021851', 'tblTempUsageDetail_20' ) end [2025-10-15 11:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-15 11:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-15 11:25:37] Production.INFO: ==1098== Releasing lock... [2025-10-15 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 11:25:37] Production.INFO: 67.75 MB #Memory Used# [2025-10-15 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 09:25:05 [end_date_ymd] => 2025-10-15 12:25:05 [RateCDR] => 1 ) [2025-10-15 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 09:25:05' and `end` < '2025-10-15 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 12:25:19] Production.INFO: count ==6136 [2025-10-15 12:25:22] Production.ERROR: pbx CDR StartTime 2025-10-15 09:25:05 - End Time 2025-10-15 12:25:05 [2025-10-15 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022098', 'tblTempUsageDetail_20' ) start [2025-10-15 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022098', 'tblTempUsageDetail_20' ) end [2025-10-15 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022098', 'tblTempVendorCDR_20' ) start [2025-10-15 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022098', 'tblTempVendorCDR_20' ) end [2025-10-15 12:25:22] Production.INFO: ProcessCDR(1,16022098,1,1,2) [2025-10-15 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16022098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16022098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16022098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16022098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022098', 'tblTempUsageDetail_20' ) start [2025-10-15 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022098', 'tblTempUsageDetail_20' ) end [2025-10-15 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-15 12:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-15 12:25:36] Production.INFO: ==5735== Releasing lock... [2025-10-15 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 12:25:36] Production.INFO: 74.25 MB #Memory Used# [2025-10-15 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 10:25:05 [end_date_ymd] => 2025-10-15 13:25:05 [RateCDR] => 1 ) [2025-10-15 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 10:25:05' and `end` < '2025-10-15 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 13:25:21] Production.INFO: count ==6244 [2025-10-15 13:25:24] Production.ERROR: pbx CDR StartTime 2025-10-15 10:25:05 - End Time 2025-10-15 13:25:05 [2025-10-15 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022345', 'tblTempUsageDetail_20' ) start [2025-10-15 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022345', 'tblTempUsageDetail_20' ) end [2025-10-15 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022345', 'tblTempVendorCDR_20' ) start [2025-10-15 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022345', 'tblTempVendorCDR_20' ) end [2025-10-15 13:25:25] Production.INFO: ProcessCDR(1,16022345,1,1,2) [2025-10-15 13:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16022345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16022345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16022345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 13:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16022345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022345', 'tblTempUsageDetail_20' ) start [2025-10-15 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022345', 'tblTempUsageDetail_20' ) end [2025-10-15 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-15 13:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-15 13:25:39] Production.INFO: ==10158== Releasing lock... [2025-10-15 13:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 13:25:39] Production.INFO: 75 MB #Memory Used# [2025-10-15 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 11:25:06 [end_date_ymd] => 2025-10-15 14:25:06 [RateCDR] => 1 ) [2025-10-15 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-10-15 11:25:06' and `end` < '2025-10-15 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-10-15 14:25:20] Production.INFO: count ==6106 [2025-10-15 14:25:23] Production.ERROR: pbx CDR StartTime 2025-10-15 11:25:06 - End Time 2025-10-15 14:25:06 [2025-10-15 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022592', 'tblTempUsageDetail_20' ) start [2025-10-15 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022592', 'tblTempUsageDetail_20' ) end [2025-10-15 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022592', 'tblTempVendorCDR_20' ) start [2025-10-15 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022592', 'tblTempVendorCDR_20' ) end [2025-10-15 14:25:24] Production.INFO: ProcessCDR(1,16022592,1,1,2) [2025-10-15 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16022592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16022592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16022592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16022592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022592', 'tblTempUsageDetail_20' ) start [2025-10-15 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022592', 'tblTempUsageDetail_20' ) end [2025-10-15 14:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-15 14:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-15 14:25:38] Production.INFO: ==14554== Releasing lock... [2025-10-15 14:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 14:25:38] Production.INFO: 74 MB #Memory Used# [2025-10-15 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 12:25:05 [end_date_ymd] => 2025-10-15 15:25:05 [RateCDR] => 1 ) [2025-10-15 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 12:25:05' and `end` < '2025-10-15 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 15:25:24] Production.INFO: count ==6533 [2025-10-15 15:25:27] Production.ERROR: pbx CDR StartTime 2025-10-15 12:25:05 - End Time 2025-10-15 15:25:05 [2025-10-15 15:25:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 15:25:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022839', 'tblTempUsageDetail_20' ) start [2025-10-15 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16022839', 'tblTempUsageDetail_20' ) end [2025-10-15 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022839', 'tblTempVendorCDR_20' ) start [2025-10-15 15:25:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16022839', 'tblTempVendorCDR_20' ) end [2025-10-15 15:25:28] Production.INFO: ProcessCDR(1,16022839,1,1,2) [2025-10-15 15:25:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16022839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 15:25:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16022839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 15:25:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16022839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 15:25:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16022839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 15:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022839', 'tblTempUsageDetail_20' ) start [2025-10-15 15:25:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16022839', 'tblTempUsageDetail_20' ) end [2025-10-15 15:25:39] Production.ERROR: pbx prc_insertCDR start [2025-10-15 15:25:43] Production.ERROR: pbx prc_insertCDR end [2025-10-15 15:25:43] Production.INFO: ==19533== Releasing lock... [2025-10-15 15:25:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 15:25:43] Production.INFO: 77.25 MB #Memory Used# [2025-10-15 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 13:25:04 [end_date_ymd] => 2025-10-15 16:25:04 [RateCDR] => 1 ) [2025-10-15 16: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-10-15 13:25:04' and `end` < '2025-10-15 16: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-10-15 16:25:18] Production.INFO: count ==6688 [2025-10-15 16:25:22] Production.ERROR: pbx CDR StartTime 2025-10-15 13:25:04 - End Time 2025-10-15 16:25:04 [2025-10-15 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023086', 'tblTempUsageDetail_20' ) start [2025-10-15 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023086', 'tblTempUsageDetail_20' ) end [2025-10-15 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023086', 'tblTempVendorCDR_20' ) start [2025-10-15 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023086', 'tblTempVendorCDR_20' ) end [2025-10-15 16:25:22] Production.INFO: ProcessCDR(1,16023086,1,1,2) [2025-10-15 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16023086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16023086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16023086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16023086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023086', 'tblTempUsageDetail_20' ) start [2025-10-15 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023086', 'tblTempUsageDetail_20' ) end [2025-10-15 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-15 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-15 16:25:35] Production.INFO: ==24341== Releasing lock... [2025-10-15 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 16:25:35] Production.INFO: 78.25 MB #Memory Used# [2025-10-15 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 14:25:05 [end_date_ymd] => 2025-10-15 17:25:05 [RateCDR] => 1 ) [2025-10-15 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 14:25:05' and `end` < '2025-10-15 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 17:25:18] Production.INFO: count ==5901 [2025-10-15 17:25:21] Production.ERROR: pbx CDR StartTime 2025-10-15 14:25:05 - End Time 2025-10-15 17:25:05 [2025-10-15 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023333', 'tblTempUsageDetail_20' ) start [2025-10-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023333', 'tblTempUsageDetail_20' ) end [2025-10-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023333', 'tblTempVendorCDR_20' ) start [2025-10-15 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023333', 'tblTempVendorCDR_20' ) end [2025-10-15 17:25:21] Production.INFO: ProcessCDR(1,16023333,1,1,2) [2025-10-15 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16023333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16023333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16023333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16023333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023333', 'tblTempUsageDetail_20' ) start [2025-10-15 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023333', 'tblTempUsageDetail_20' ) end [2025-10-15 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-15 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-15 17:25:33] Production.INFO: ==29126== Releasing lock... [2025-10-15 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 17:25:33] Production.INFO: 72.5 MB #Memory Used# [2025-10-15 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 15:25:05 [end_date_ymd] => 2025-10-15 18:25:05 [RateCDR] => 1 ) [2025-10-15 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 15:25:05' and `end` < '2025-10-15 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 18:25:18] Production.INFO: count ==4444 [2025-10-15 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-15 15:25:05 - End Time 2025-10-15 18:25:05 [2025-10-15 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023580', 'tblTempUsageDetail_20' ) start [2025-10-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023580', 'tblTempUsageDetail_20' ) end [2025-10-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023580', 'tblTempVendorCDR_20' ) start [2025-10-15 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023580', 'tblTempVendorCDR_20' ) end [2025-10-15 18:25:20] Production.INFO: ProcessCDR(1,16023580,1,1,2) [2025-10-15 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16023580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16023580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16023580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 18:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16023580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023580', 'tblTempUsageDetail_20' ) start [2025-10-15 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023580', 'tblTempUsageDetail_20' ) end [2025-10-15 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-15 18:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-15 18:25:32] Production.INFO: ==992== Releasing lock... [2025-10-15 18:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 18:25:32] Production.INFO: 61.5 MB #Memory Used# [2025-10-15 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 16:25:05 [end_date_ymd] => 2025-10-15 19:25:05 [RateCDR] => 1 ) [2025-10-15 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 16:25:05' and `end` < '2025-10-15 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 19:25:17] Production.INFO: count ==3029 [2025-10-15 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-15 16:25:05 - End Time 2025-10-15 19:25:05 [2025-10-15 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023824', 'tblTempUsageDetail_20' ) start [2025-10-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16023824', 'tblTempUsageDetail_20' ) end [2025-10-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023824', 'tblTempVendorCDR_20' ) start [2025-10-15 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16023824', 'tblTempVendorCDR_20' ) end [2025-10-15 19:25:19] Production.INFO: ProcessCDR(1,16023824,1,1,2) [2025-10-15 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16023824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16023824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16023824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16023824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023824', 'tblTempUsageDetail_20' ) start [2025-10-15 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16023824', 'tblTempUsageDetail_20' ) end [2025-10-15 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-15 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-15 19:25:29] Production.INFO: ==5672== Releasing lock... [2025-10-15 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 19:25:29] Production.INFO: 51 MB #Memory Used# [2025-10-15 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 17:25:05 [end_date_ymd] => 2025-10-15 20:25:05 [RateCDR] => 1 ) [2025-10-15 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 17:25:05' and `end` < '2025-10-15 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 20:25:18] Production.INFO: count ==2228 [2025-10-15 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-15 17:25:05 - End Time 2025-10-15 20:25:05 [2025-10-15 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024071', 'tblTempUsageDetail_20' ) start [2025-10-15 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024071', 'tblTempUsageDetail_20' ) end [2025-10-15 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024071', 'tblTempVendorCDR_20' ) start [2025-10-15 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024071', 'tblTempVendorCDR_20' ) end [2025-10-15 20:25:19] Production.INFO: ProcessCDR(1,16024071,1,1,2) [2025-10-15 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16024071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16024071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16024071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16024071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024071', 'tblTempUsageDetail_20' ) start [2025-10-15 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024071', 'tblTempUsageDetail_20' ) end [2025-10-15 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-15 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-15 20:25:28] Production.INFO: ==9939== Releasing lock... [2025-10-15 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 20:25:28] Production.INFO: 45 MB #Memory Used# [2025-10-15 21:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 18:25:04 [end_date_ymd] => 2025-10-15 21:25:04 [RateCDR] => 1 ) [2025-10-15 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-10-15 18:25:04' and `end` < '2025-10-15 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-10-15 21:25:17] Production.INFO: count ==1641 [2025-10-15 21:25:17] Production.ERROR: pbx CDR StartTime 2025-10-15 18:25:04 - End Time 2025-10-15 21:25:04 [2025-10-15 21:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024318', 'tblTempUsageDetail_20' ) start [2025-10-15 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024318', 'tblTempUsageDetail_20' ) end [2025-10-15 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024318', 'tblTempVendorCDR_20' ) start [2025-10-15 21:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024318', 'tblTempVendorCDR_20' ) end [2025-10-15 21:25:17] Production.INFO: ProcessCDR(1,16024318,1,1,2) [2025-10-15 21:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16024318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16024318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16024318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16024318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024318', 'tblTempUsageDetail_20' ) start [2025-10-15 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024318', 'tblTempUsageDetail_20' ) end [2025-10-15 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-15 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-15 21:25:27] Production.INFO: ==15780== Releasing lock... [2025-10-15 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 21:25:27] Production.INFO: 40.75 MB #Memory Used# [2025-10-15 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 19:25:05 [end_date_ymd] => 2025-10-15 22:25:05 [RateCDR] => 1 ) [2025-10-15 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-15 19:25:05' and `end` < '2025-10-15 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-15 22:25:18] Production.INFO: count ==1184 [2025-10-15 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-15 19:25:05 - End Time 2025-10-15 22:25:05 [2025-10-15 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024565', 'tblTempUsageDetail_20' ) start [2025-10-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024565', 'tblTempUsageDetail_20' ) end [2025-10-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024565', 'tblTempVendorCDR_20' ) start [2025-10-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024565', 'tblTempVendorCDR_20' ) end [2025-10-15 22:25:18] Production.INFO: ProcessCDR(1,16024565,1,1,2) [2025-10-15 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16024565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16024565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16024565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16024565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024565', 'tblTempUsageDetail_20' ) start [2025-10-15 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024565', 'tblTempUsageDetail_20' ) end [2025-10-15 22:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-15 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-15 22:25:28] Production.INFO: ==20344== Releasing lock... [2025-10-15 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 22:25:28] Production.INFO: 37.5 MB #Memory Used# [2025-10-15 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 20:25:06 [end_date_ymd] => 2025-10-15 23:25:06 [RateCDR] => 1 ) [2025-10-15 23: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-10-15 20:25:06' and `end` < '2025-10-15 23: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-10-15 23:25:18] Production.INFO: count ==829 [2025-10-15 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-15 20:25:06 - End Time 2025-10-15 23:25:06 [2025-10-15 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024812', 'tblTempUsageDetail_20' ) start [2025-10-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16024812', 'tblTempUsageDetail_20' ) end [2025-10-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024812', 'tblTempVendorCDR_20' ) start [2025-10-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16024812', 'tblTempVendorCDR_20' ) end [2025-10-15 23:25:18] Production.INFO: ProcessCDR(1,16024812,1,1,2) [2025-10-15 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16024812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16024812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-15 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16024812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16024812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-15 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024812', 'tblTempUsageDetail_20' ) start [2025-10-15 23:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16024812', 'tblTempUsageDetail_20' ) end [2025-10-15 23:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-15 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-15 23:25:28] Production.INFO: ==25305== Releasing lock... [2025-10-15 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-15 23:25:28] Production.INFO: 34.5 MB #Memory Used#