[2025-06-15 00:25:04] Production.INFO: next invoice date [2025-06-15 00:25:04] Production.INFO: 2025-07-15 [2025-06-15 00:25:04] Production.INFO: getdaysdiff [2025-06-15 00:25:04] Production.INFO: +30 [2025-06-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,16,1,30,30,'RMScheduler',2025-06-15 00:25:04,1,0,,,0) [2025-06-15 00:25:04] Production.INFO: next invoice date [2025-06-15 00:25:04] Production.INFO: 2025-07-15 [2025-06-15 00:25:04] Production.INFO: getdaysdiff [2025-06-15 00:25:04] Production.INFO: +30 [2025-06-15 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (230,13,2,30,30,'RMScheduler',2025-06-15 00:25:04,1,0,,,0) [2025-06-15 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 21:25:05 [end_date_ymd] => 2025-06-15 00:25:05 [RateCDR] => 1 ) [2025-06-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-06-14 21:25:05' and `end` < '2025-06-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-06-15 00:25:17] Production.INFO: count ==723 [2025-06-15 00:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 21:25:05 - End Time 2025-06-15 00:25:05 [2025-06-15 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296017', 'tblTempUsageDetail_20' ) start [2025-06-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296017', 'tblTempUsageDetail_20' ) end [2025-06-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296017', 'tblTempVendorCDR_20' ) start [2025-06-15 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296017', 'tblTempVendorCDR_20' ) end [2025-06-15 00:25:17] Production.INFO: ProcessCDR(1,15296017,1,1,2) [2025-06-15 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15296017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15296017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15296017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15296017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296017', 'tblTempUsageDetail_20' ) start [2025-06-15 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296017', 'tblTempUsageDetail_20' ) end [2025-06-15 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 00:25:28] Production.INFO: ==11387== Releasing lock... [2025-06-15 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 00:25:28] Production.INFO: 37 MB #Memory Used# [2025-06-15 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 22:25:04 [end_date_ymd] => 2025-06-15 01:25:04 [RateCDR] => 1 ) [2025-06-15 01: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-06-14 22:25:04' and `end` < '2025-06-15 01: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-06-15 01:25:17] Production.INFO: count ==654 [2025-06-15 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 22:25:04 - End Time 2025-06-15 01:25:04 [2025-06-15 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296264', 'tblTempUsageDetail_20' ) start [2025-06-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296264', 'tblTempUsageDetail_20' ) end [2025-06-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296264', 'tblTempVendorCDR_20' ) start [2025-06-15 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296264', 'tblTempVendorCDR_20' ) end [2025-06-15 01:25:17] Production.INFO: ProcessCDR(1,15296264,1,1,2) [2025-06-15 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15296264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15296264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15296264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15296264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296264', 'tblTempUsageDetail_20' ) start [2025-06-15 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296264', 'tblTempUsageDetail_20' ) end [2025-06-15 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 01:25:23] Production.INFO: ==16379== Releasing lock... [2025-06-15 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 01:25:23] Production.INFO: 33.5 MB #Memory Used# [2025-06-15 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-14 23:25:05 [end_date_ymd] => 2025-06-15 02:25:05 [RateCDR] => 1 ) [2025-06-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-06-14 23:25:05' and `end` < '2025-06-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-06-15 02:25:17] Production.INFO: count ==626 [2025-06-15 02:25:17] Production.ERROR: pbx CDR StartTime 2025-06-14 23:25:05 - End Time 2025-06-15 02:25:05 [2025-06-15 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296511', 'tblTempUsageDetail_20' ) start [2025-06-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296511', 'tblTempUsageDetail_20' ) end [2025-06-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296511', 'tblTempVendorCDR_20' ) start [2025-06-15 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296511', 'tblTempVendorCDR_20' ) end [2025-06-15 02:25:17] Production.INFO: ProcessCDR(1,15296511,1,1,2) [2025-06-15 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15296511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15296511,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15296511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15296511,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296511', 'tblTempUsageDetail_20' ) start [2025-06-15 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296511', 'tblTempUsageDetail_20' ) end [2025-06-15 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 02:25:24] Production.INFO: ==22788== Releasing lock... [2025-06-15 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 02:25:24] Production.INFO: 33.5 MB #Memory Used# [2025-06-15 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 00:25:05 [end_date_ymd] => 2025-06-15 03:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 00:25:05' and `end` < '2025-06-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-06-15 03:25:17] Production.INFO: count ==501 [2025-06-15 03:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 00:25:05 - End Time 2025-06-15 03:25:05 [2025-06-15 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296758', 'tblTempUsageDetail_20' ) start [2025-06-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15296758', 'tblTempUsageDetail_20' ) end [2025-06-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296758', 'tblTempVendorCDR_20' ) start [2025-06-15 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15296758', 'tblTempVendorCDR_20' ) end [2025-06-15 03:25:17] Production.INFO: ProcessCDR(1,15296758,1,1,2) [2025-06-15 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15296758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15296758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15296758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15296758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296758', 'tblTempUsageDetail_20' ) start [2025-06-15 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15296758', 'tblTempUsageDetail_20' ) end [2025-06-15 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 03:25:23] Production.INFO: ==29287== Releasing lock... [2025-06-15 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 03:25:23] Production.INFO: 32.5 MB #Memory Used# [2025-06-15 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 01:25:05 [end_date_ymd] => 2025-06-15 04:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 01:25:05' and `end` < '2025-06-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-06-15 04:25:18] Production.INFO: count ==355 [2025-06-15 04:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 01:25:05 - End Time 2025-06-15 04:25:05 [2025-06-15 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297006', 'tblTempUsageDetail_20' ) start [2025-06-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297006', 'tblTempUsageDetail_20' ) end [2025-06-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297006', 'tblTempVendorCDR_20' ) start [2025-06-15 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297006', 'tblTempVendorCDR_20' ) end [2025-06-15 04:25:18] Production.INFO: ProcessCDR(1,15297006,1,1,2) [2025-06-15 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15297006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15297006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15297006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15297006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297006', 'tblTempUsageDetail_20' ) start [2025-06-15 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297006', 'tblTempUsageDetail_20' ) end [2025-06-15 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 04:25:24] Production.INFO: ==4225== Releasing lock... [2025-06-15 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 04:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-06-15 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 02:25:05 [end_date_ymd] => 2025-06-15 05:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 02:25:05' and `end` < '2025-06-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-06-15 05:25:17] Production.INFO: count ==193 [2025-06-15 05:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 02:25:05 - End Time 2025-06-15 05:25:05 [2025-06-15 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297254', 'tblTempUsageDetail_20' ) start [2025-06-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297254', 'tblTempUsageDetail_20' ) end [2025-06-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297254', 'tblTempVendorCDR_20' ) start [2025-06-15 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297254', 'tblTempVendorCDR_20' ) end [2025-06-15 05:25:17] Production.INFO: ProcessCDR(1,15297254,1,1,2) [2025-06-15 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15297254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15297254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15297254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15297254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297254', 'tblTempUsageDetail_20' ) start [2025-06-15 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297254', 'tblTempUsageDetail_20' ) end [2025-06-15 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 05:25:23] Production.INFO: ==10263== Releasing lock... [2025-06-15 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 05:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-06-15 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 03:25:05 [end_date_ymd] => 2025-06-15 06:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 03:25:05' and `end` < '2025-06-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-06-15 06:25:17] Production.INFO: count ==152 [2025-06-15 06:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 03:25:05 - End Time 2025-06-15 06:25:05 [2025-06-15 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297501', 'tblTempUsageDetail_20' ) start [2025-06-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297501', 'tblTempUsageDetail_20' ) end [2025-06-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297501', 'tblTempVendorCDR_20' ) start [2025-06-15 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297501', 'tblTempVendorCDR_20' ) end [2025-06-15 06:25:17] Production.INFO: ProcessCDR(1,15297501,1,1,2) [2025-06-15 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15297501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15297501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15297501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15297501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297501', 'tblTempUsageDetail_20' ) start [2025-06-15 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297501', 'tblTempUsageDetail_20' ) end [2025-06-15 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 06:25:23] Production.INFO: ==14661== Releasing lock... [2025-06-15 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 06:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-06-15 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 04:25:05 [end_date_ymd] => 2025-06-15 07:25:05 [RateCDR] => 1 ) [2025-06-15 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-06-15 04:25:05' and `end` < '2025-06-15 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-06-15 07:25:17] Production.INFO: count ==155 [2025-06-15 07:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 04:25:05 - End Time 2025-06-15 07:25:05 [2025-06-15 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297748', 'tblTempUsageDetail_20' ) start [2025-06-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297748', 'tblTempUsageDetail_20' ) end [2025-06-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297748', 'tblTempVendorCDR_20' ) start [2025-06-15 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297748', 'tblTempVendorCDR_20' ) end [2025-06-15 07:25:17] Production.INFO: ProcessCDR(1,15297748,1,1,2) [2025-06-15 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15297748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15297748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15297748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15297748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297748', 'tblTempUsageDetail_20' ) start [2025-06-15 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297748', 'tblTempUsageDetail_20' ) end [2025-06-15 07:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 07:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 07:25:23] Production.INFO: ==19458== Releasing lock... [2025-06-15 07:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 07:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-15 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 05:25:05 [end_date_ymd] => 2025-06-15 08:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 05:25:05' and `end` < '2025-06-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-06-15 08:25:17] Production.INFO: count ==149 [2025-06-15 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 05:25:05 - End Time 2025-06-15 08:25:05 [2025-06-15 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297995', 'tblTempUsageDetail_20' ) start [2025-06-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15297995', 'tblTempUsageDetail_20' ) end [2025-06-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297995', 'tblTempVendorCDR_20' ) start [2025-06-15 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15297995', 'tblTempVendorCDR_20' ) end [2025-06-15 08:25:18] Production.INFO: ProcessCDR(1,15297995,1,1,2) [2025-06-15 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15297995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15297995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15297995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15297995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297995', 'tblTempUsageDetail_20' ) start [2025-06-15 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15297995', 'tblTempUsageDetail_20' ) end [2025-06-15 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 08:25:23] Production.INFO: ==24165== Releasing lock... [2025-06-15 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 08:25:23] Production.INFO: 29.5 MB #Memory Used# [2025-06-15 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 06:25:05 [end_date_ymd] => 2025-06-15 09:25:05 [RateCDR] => 1 ) [2025-06-15 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-15 06:25:05' and `end` < '2025-06-15 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-15 09:25:17] Production.INFO: count ==190 [2025-06-15 09:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 06:25:05 - End Time 2025-06-15 09:25:05 [2025-06-15 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298242', 'tblTempUsageDetail_20' ) start [2025-06-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298242', 'tblTempUsageDetail_20' ) end [2025-06-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298242', 'tblTempVendorCDR_20' ) start [2025-06-15 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298242', 'tblTempVendorCDR_20' ) end [2025-06-15 09:25:17] Production.INFO: ProcessCDR(1,15298242,1,1,2) [2025-06-15 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15298242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15298242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15298242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 09:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15298242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298242', 'tblTempUsageDetail_20' ) start [2025-06-15 09:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298242', 'tblTempUsageDetail_20' ) end [2025-06-15 09:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 09:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 09:25:23] Production.INFO: ==28869== Releasing lock... [2025-06-15 09:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 09:25:23] Production.INFO: 29.75 MB #Memory Used# [2025-06-15 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 07:25:05 [end_date_ymd] => 2025-06-15 10:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 07:25:05' and `end` < '2025-06-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-06-15 10:25:17] Production.INFO: count ==273 [2025-06-15 10:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 07:25:05 - End Time 2025-06-15 10:25:05 [2025-06-15 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298489', 'tblTempUsageDetail_20' ) start [2025-06-15 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298489', 'tblTempUsageDetail_20' ) end [2025-06-15 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298489', 'tblTempVendorCDR_20' ) start [2025-06-15 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298489', 'tblTempVendorCDR_20' ) end [2025-06-15 10:25:17] Production.INFO: ProcessCDR(1,15298489,1,1,2) [2025-06-15 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15298489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 10:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15298489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 10:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15298489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 10:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15298489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298489', 'tblTempUsageDetail_20' ) start [2025-06-15 10:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298489', 'tblTempUsageDetail_20' ) end [2025-06-15 10:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 10:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-15 10:25:23] Production.INFO: ==973== Releasing lock... [2025-06-15 10:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 10:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-06-15 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 08:25:05 [end_date_ymd] => 2025-06-15 11:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 08:25:05' and `end` < '2025-06-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-06-15 11:25:17] Production.INFO: count ==547 [2025-06-15 11:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 08:25:05 - End Time 2025-06-15 11:25:05 [2025-06-15 11:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298736', 'tblTempUsageDetail_20' ) start [2025-06-15 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298736', 'tblTempUsageDetail_20' ) end [2025-06-15 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298736', 'tblTempVendorCDR_20' ) start [2025-06-15 11:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298736', 'tblTempVendorCDR_20' ) end [2025-06-15 11:25:17] Production.INFO: ProcessCDR(1,15298736,1,1,2) [2025-06-15 11:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15298736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15298736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15298736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15298736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298736', 'tblTempUsageDetail_20' ) start [2025-06-15 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298736', 'tblTempUsageDetail_20' ) end [2025-06-15 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-15 11:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 11:25:24] Production.INFO: ==5403== Releasing lock... [2025-06-15 11:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 11:25:24] Production.INFO: 33 MB #Memory Used# [2025-06-15 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 09:25:05 [end_date_ymd] => 2025-06-15 12:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 09:25:05' and `end` < '2025-06-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-06-15 12:25:17] Production.INFO: count ==839 [2025-06-15 12:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 09:25:05 - End Time 2025-06-15 12:25:05 [2025-06-15 12:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 12:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298983', 'tblTempUsageDetail_20' ) start [2025-06-15 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15298983', 'tblTempUsageDetail_20' ) end [2025-06-15 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298983', 'tblTempVendorCDR_20' ) start [2025-06-15 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15298983', 'tblTempVendorCDR_20' ) end [2025-06-15 12:25:18] Production.INFO: ProcessCDR(1,15298983,1,1,2) [2025-06-15 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15298983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15298983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15298983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 12:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15298983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298983', 'tblTempUsageDetail_20' ) start [2025-06-15 12:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15298983', 'tblTempUsageDetail_20' ) end [2025-06-15 12:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 12:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-15 12:25:25] Production.INFO: ==10280== Releasing lock... [2025-06-15 12:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 12:25:25] Production.INFO: 34.75 MB #Memory Used# [2025-06-15 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 10:25:05 [end_date_ymd] => 2025-06-15 13:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 10:25:05' and `end` < '2025-06-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-06-15 13:25:17] Production.INFO: count ==1056 [2025-06-15 13:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 10:25:05 - End Time 2025-06-15 13:25:05 [2025-06-15 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299230', 'tblTempUsageDetail_20' ) start [2025-06-15 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299230', 'tblTempUsageDetail_20' ) end [2025-06-15 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299230', 'tblTempVendorCDR_20' ) start [2025-06-15 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299230', 'tblTempVendorCDR_20' ) end [2025-06-15 13:25:17] Production.INFO: ProcessCDR(1,15299230,1,1,2) [2025-06-15 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15299230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 13:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15299230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 13:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15299230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 13:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15299230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299230', 'tblTempUsageDetail_20' ) start [2025-06-15 13:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299230', 'tblTempUsageDetail_20' ) end [2025-06-15 13:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 13:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-15 13:25:25] Production.INFO: ==14689== Releasing lock... [2025-06-15 13:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 13:25:25] Production.INFO: 36.75 MB #Memory Used# [2025-06-15 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 11:25:05 [end_date_ymd] => 2025-06-15 14:25:05 [RateCDR] => 1 ) [2025-06-15 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-06-15 11:25:05' and `end` < '2025-06-15 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-06-15 14:25:17] Production.INFO: count ==1068 [2025-06-15 14:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 11:25:05 - End Time 2025-06-15 14:25:05 [2025-06-15 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299477', 'tblTempUsageDetail_20' ) start [2025-06-15 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299477', 'tblTempUsageDetail_20' ) end [2025-06-15 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299477', 'tblTempVendorCDR_20' ) start [2025-06-15 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299477', 'tblTempVendorCDR_20' ) end [2025-06-15 14:25:18] Production.INFO: ProcessCDR(1,15299477,1,1,2) [2025-06-15 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15299477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 14:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15299477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 14:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15299477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 14:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15299477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299477', 'tblTempUsageDetail_20' ) start [2025-06-15 14:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299477', 'tblTempUsageDetail_20' ) end [2025-06-15 14:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 14:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 14:25:24] Production.INFO: ==19360== Releasing lock... [2025-06-15 14:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 14:25:24] Production.INFO: 36.25 MB #Memory Used# [2025-06-15 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 12:25:05 [end_date_ymd] => 2025-06-15 15:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 12:25:05' and `end` < '2025-06-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-06-15 15:25:17] Production.INFO: count ==1099 [2025-06-15 15:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 12:25:05 - End Time 2025-06-15 15:25:05 [2025-06-15 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299724', 'tblTempUsageDetail_20' ) start [2025-06-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299724', 'tblTempUsageDetail_20' ) end [2025-06-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299724', 'tblTempVendorCDR_20' ) start [2025-06-15 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299724', 'tblTempVendorCDR_20' ) end [2025-06-15 15:25:18] Production.INFO: ProcessCDR(1,15299724,1,1,2) [2025-06-15 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15299724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15299724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15299724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15299724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299724', 'tblTempUsageDetail_20' ) start [2025-06-15 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299724', 'tblTempUsageDetail_20' ) end [2025-06-15 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-15 15:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-15 15:25:25] Production.INFO: ==23576== Releasing lock... [2025-06-15 15:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 15:25:25] Production.INFO: 36.5 MB #Memory Used# [2025-06-15 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 13:25:05 [end_date_ymd] => 2025-06-15 16:25:05 [RateCDR] => 1 ) [2025-06-15 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-06-15 13:25:05' and `end` < '2025-06-15 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-06-15 16:25:17] Production.INFO: count ==1087 [2025-06-15 16:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 13:25:05 - End Time 2025-06-15 16:25:05 [2025-06-15 16:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299971', 'tblTempUsageDetail_20' ) start [2025-06-15 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15299971', 'tblTempUsageDetail_20' ) end [2025-06-15 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299971', 'tblTempVendorCDR_20' ) start [2025-06-15 16:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15299971', 'tblTempVendorCDR_20' ) end [2025-06-15 16:25:17] Production.INFO: ProcessCDR(1,15299971,1,1,2) [2025-06-15 16:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15299971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15299971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15299971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 16:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15299971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 16:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299971', 'tblTempUsageDetail_20' ) start [2025-06-15 16:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15299971', 'tblTempUsageDetail_20' ) end [2025-06-15 16:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 16:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 16:25:24] Production.INFO: ==28368== Releasing lock... [2025-06-15 16:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 16:25:24] Production.INFO: 36.5 MB #Memory Used# [2025-06-15 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 14:25:06 [end_date_ymd] => 2025-06-15 17:25:06 [RateCDR] => 1 ) [2025-06-15 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-15 14:25:06' and `end` < '2025-06-15 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-15 17:25:18] Production.INFO: count ==1273 [2025-06-15 17:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 14:25:06 - End Time 2025-06-15 17:25:06 [2025-06-15 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300218', 'tblTempUsageDetail_20' ) start [2025-06-15 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300218', 'tblTempUsageDetail_20' ) end [2025-06-15 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300218', 'tblTempVendorCDR_20' ) start [2025-06-15 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300218', 'tblTempVendorCDR_20' ) end [2025-06-15 17:25:18] Production.INFO: ProcessCDR(1,15300218,1,1,2) [2025-06-15 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15300218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15300218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15300218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15300218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300218', 'tblTempUsageDetail_20' ) start [2025-06-15 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300218', 'tblTempUsageDetail_20' ) end [2025-06-15 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-15 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-15 17:25:26] Production.INFO: ==32662== Releasing lock... [2025-06-15 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 17:25:26] Production.INFO: 38 MB #Memory Used# [2025-06-15 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 15:25:05 [end_date_ymd] => 2025-06-15 18:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 15:25:05' and `end` < '2025-06-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-06-15 18:25:17] Production.INFO: count ==1407 [2025-06-15 18:25:17] Production.ERROR: pbx CDR StartTime 2025-06-15 15:25:05 - End Time 2025-06-15 18:25:05 [2025-06-15 18:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300465', 'tblTempUsageDetail_20' ) start [2025-06-15 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300465', 'tblTempUsageDetail_20' ) end [2025-06-15 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300465', 'tblTempVendorCDR_20' ) start [2025-06-15 18:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300465', 'tblTempVendorCDR_20' ) end [2025-06-15 18:25:17] Production.INFO: ProcessCDR(1,15300465,1,1,2) [2025-06-15 18:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15300465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 18:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15300465,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 18:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15300465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15300465,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300465', 'tblTempUsageDetail_20' ) start [2025-06-15 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300465', 'tblTempUsageDetail_20' ) end [2025-06-15 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 18:25:24] Production.INFO: ==4583== Releasing lock... [2025-06-15 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 18:25:24] Production.INFO: 38.75 MB #Memory Used# [2025-06-15 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 16:25:05 [end_date_ymd] => 2025-06-15 19:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 16:25:05' and `end` < '2025-06-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-06-15 19:25:17] Production.INFO: count ==1640 [2025-06-15 19:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 16:25:05 - End Time 2025-06-15 19:25:05 [2025-06-15 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300709', 'tblTempUsageDetail_20' ) start [2025-06-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300709', 'tblTempUsageDetail_20' ) end [2025-06-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300709', 'tblTempVendorCDR_20' ) start [2025-06-15 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300709', 'tblTempVendorCDR_20' ) end [2025-06-15 19:25:18] Production.INFO: ProcessCDR(1,15300709,1,1,2) [2025-06-15 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15300709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15300709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15300709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 19:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15300709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300709', 'tblTempUsageDetail_20' ) start [2025-06-15 19:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300709', 'tblTempUsageDetail_20' ) end [2025-06-15 19:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-15 19:25:25] Production.INFO: ==9050== Releasing lock... [2025-06-15 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 19:25:25] Production.INFO: 40.5 MB #Memory Used# [2025-06-15 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 17:25:05 [end_date_ymd] => 2025-06-15 20:25:05 [RateCDR] => 1 ) [2025-06-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-06-15 17:25:05' and `end` < '2025-06-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-06-15 20:25:17] Production.INFO: count ==1547 [2025-06-15 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 17:25:05 - End Time 2025-06-15 20:25:05 [2025-06-15 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300956', 'tblTempUsageDetail_20' ) start [2025-06-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15300956', 'tblTempUsageDetail_20' ) end [2025-06-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300956', 'tblTempVendorCDR_20' ) start [2025-06-15 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15300956', 'tblTempVendorCDR_20' ) end [2025-06-15 20:25:18] Production.INFO: ProcessCDR(1,15300956,1,1,2) [2025-06-15 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15300956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15300956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15300956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 20:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15300956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300956', 'tblTempUsageDetail_20' ) start [2025-06-15 20:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15300956', 'tblTempUsageDetail_20' ) end [2025-06-15 20:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 20:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 20:25:24] Production.INFO: ==13553== Releasing lock... [2025-06-15 20:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 20:25:24] Production.INFO: 40 MB #Memory Used# [2025-06-15 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 18:25:05 [end_date_ymd] => 2025-06-15 21:25:05 [RateCDR] => 1 ) [2025-06-15 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-06-15 18:25:05' and `end` < '2025-06-15 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-06-15 21:25:17] Production.INFO: count ==1412 [2025-06-15 21:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 18:25:05 - End Time 2025-06-15 21:25:05 [2025-06-15 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301203', 'tblTempUsageDetail_20' ) start [2025-06-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301203', 'tblTempUsageDetail_20' ) end [2025-06-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301203', 'tblTempVendorCDR_20' ) start [2025-06-15 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301203', 'tblTempVendorCDR_20' ) end [2025-06-15 21:25:18] Production.INFO: ProcessCDR(1,15301203,1,1,2) [2025-06-15 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15301203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15301203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15301203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 21:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15301203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301203', 'tblTempUsageDetail_20' ) start [2025-06-15 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301203', 'tblTempUsageDetail_20' ) end [2025-06-15 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-15 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-15 21:25:25] Production.INFO: ==18314== Releasing lock... [2025-06-15 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 21:25:25] Production.INFO: 38.75 MB #Memory Used# [2025-06-15 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 19:25:06 [end_date_ymd] => 2025-06-15 22:25:06 [RateCDR] => 1 ) [2025-06-15 22:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-15 19:25:06' and `end` < '2025-06-15 22:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-15 22:25:18] Production.INFO: count ==1112 [2025-06-15 22:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 19:25:06 - End Time 2025-06-15 22:25:06 [2025-06-15 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301450', 'tblTempUsageDetail_20' ) start [2025-06-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301450', 'tblTempUsageDetail_20' ) end [2025-06-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301450', 'tblTempVendorCDR_20' ) start [2025-06-15 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301450', 'tblTempVendorCDR_20' ) end [2025-06-15 22:25:18] Production.INFO: ProcessCDR(1,15301450,1,1,2) [2025-06-15 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15301450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15301450,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15301450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15301450,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301450', 'tblTempUsageDetail_20' ) start [2025-06-15 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301450', 'tblTempUsageDetail_20' ) end [2025-06-15 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-15 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-15 22:25:26] Production.INFO: ==23012== Releasing lock... [2025-06-15 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 22:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-06-15 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-15 20:25:05 [end_date_ymd] => 2025-06-15 23:25:05 [RateCDR] => 1 ) [2025-06-15 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-06-15 20:25:05' and `end` < '2025-06-15 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-06-15 23:25:17] Production.INFO: count ==913 [2025-06-15 23:25:18] Production.ERROR: pbx CDR StartTime 2025-06-15 20:25:05 - End Time 2025-06-15 23:25:05 [2025-06-15 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301697', 'tblTempUsageDetail_20' ) start [2025-06-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15301697', 'tblTempUsageDetail_20' ) end [2025-06-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301697', 'tblTempVendorCDR_20' ) start [2025-06-15 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15301697', 'tblTempVendorCDR_20' ) end [2025-06-15 23:25:18] Production.INFO: ProcessCDR(1,15301697,1,1,2) [2025-06-15 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15301697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15301697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-15 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15301697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15301697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-15 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301697', 'tblTempUsageDetail_20' ) start [2025-06-15 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15301697', 'tblTempUsageDetail_20' ) end [2025-06-15 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-15 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-15 23:25:24] Production.INFO: ==27513== Releasing lock... [2025-06-15 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-15 23:25:24] Production.INFO: 35.25 MB #Memory Used#