[2025-06-13 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 21:25:05 [end_date_ymd] => 2025-06-13 00:25:05 [RateCDR] => 1 ) [2025-06-13 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-12 21:25:05' and `end` < '2025-06-13 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-13 00:25:17] Production.INFO: count ==614 [2025-06-13 00:25:18] Production.ERROR: pbx CDR StartTime 2025-06-12 21:25:05 - End Time 2025-06-13 00:25:05 [2025-06-13 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284163', 'tblTempUsageDetail_20' ) start [2025-06-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284163', 'tblTempUsageDetail_20' ) end [2025-06-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284163', 'tblTempVendorCDR_20' ) start [2025-06-13 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284163', 'tblTempVendorCDR_20' ) end [2025-06-13 00:25:18] Production.INFO: ProcessCDR(1,15284163,1,1,2) [2025-06-13 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15284163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15284163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15284163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 00:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15284163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284163', 'tblTempUsageDetail_20' ) start [2025-06-13 00:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284163', 'tblTempUsageDetail_20' ) end [2025-06-13 00:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-13 00:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-13 00:25:25] Production.INFO: ==7521== Releasing lock... [2025-06-13 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 00:25:25] Production.INFO: 37 MB #Memory Used# [2025-06-13 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 22:25:05 [end_date_ymd] => 2025-06-13 01:25:05 [RateCDR] => 1 ) [2025-06-13 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-06-12 22:25:05' and `end` < '2025-06-13 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-06-13 01:25:17] Production.INFO: count ==451 [2025-06-13 01:25:17] Production.ERROR: pbx CDR StartTime 2025-06-12 22:25:05 - End Time 2025-06-13 01:25:05 [2025-06-13 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284410', 'tblTempUsageDetail_20' ) start [2025-06-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284410', 'tblTempUsageDetail_20' ) end [2025-06-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284410', 'tblTempVendorCDR_20' ) start [2025-06-13 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284410', 'tblTempVendorCDR_20' ) end [2025-06-13 01:25:17] Production.INFO: ProcessCDR(1,15284410,1,1,2) [2025-06-13 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15284410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15284410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15284410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15284410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284410', 'tblTempUsageDetail_20' ) start [2025-06-13 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284410', 'tblTempUsageDetail_20' ) end [2025-06-13 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-13 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-13 01:25:23] Production.INFO: ==11843== Releasing lock... [2025-06-13 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 01:25:23] Production.INFO: 32 MB #Memory Used# [2025-06-13 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-12 23:25:05 [end_date_ymd] => 2025-06-13 02:25:05 [RateCDR] => 1 ) [2025-06-13 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-12 23:25:05' and `end` < '2025-06-13 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-13 02:25:19] Production.INFO: count ==403 [2025-06-13 02:25:19] Production.ERROR: pbx CDR StartTime 2025-06-12 23:25:05 - End Time 2025-06-13 02:25:05 [2025-06-13 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284657', 'tblTempUsageDetail_20' ) start [2025-06-13 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284657', 'tblTempUsageDetail_20' ) end [2025-06-13 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284657', 'tblTempVendorCDR_20' ) start [2025-06-13 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284657', 'tblTempVendorCDR_20' ) end [2025-06-13 02:25:19] Production.INFO: ProcessCDR(1,15284657,1,1,2) [2025-06-13 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15284657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15284657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15284657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15284657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284657', 'tblTempUsageDetail_20' ) start [2025-06-13 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284657', 'tblTempUsageDetail_20' ) end [2025-06-13 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-13 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-13 02:25:25] Production.INFO: ==17298== Releasing lock... [2025-06-13 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 02:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-06-13 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 00:25:06 [end_date_ymd] => 2025-06-13 03:25:06 [RateCDR] => 1 ) [2025-06-13 03: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-13 00:25:06' and `end` < '2025-06-13 03: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-13 03:25:18] Production.INFO: count ==380 [2025-06-13 03:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 00:25:06 - End Time 2025-06-13 03:25:06 [2025-06-13 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284904', 'tblTempUsageDetail_20' ) start [2025-06-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15284904', 'tblTempUsageDetail_20' ) end [2025-06-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284904', 'tblTempVendorCDR_20' ) start [2025-06-13 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15284904', 'tblTempVendorCDR_20' ) end [2025-06-13 03:25:18] Production.INFO: ProcessCDR(1,15284904,1,1,2) [2025-06-13 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15284904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15284904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15284904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15284904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284904', 'tblTempUsageDetail_20' ) start [2025-06-13 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15284904', 'tblTempUsageDetail_20' ) end [2025-06-13 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-13 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-13 03:25:24] Production.INFO: ==21599== Releasing lock... [2025-06-13 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 03:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-06-13 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 01:25:05 [end_date_ymd] => 2025-06-13 04:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 01:25:05' and `end` < '2025-06-13 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-13 04:25:17] Production.INFO: count ==268 [2025-06-13 04:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 01:25:05 - End Time 2025-06-13 04:25:05 [2025-06-13 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285152', 'tblTempUsageDetail_20' ) start [2025-06-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285152', 'tblTempUsageDetail_20' ) end [2025-06-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285152', 'tblTempVendorCDR_20' ) start [2025-06-13 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285152', 'tblTempVendorCDR_20' ) end [2025-06-13 04:25:18] Production.INFO: ProcessCDR(1,15285152,1,1,2) [2025-06-13 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15285152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15285152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15285152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15285152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285152', 'tblTempUsageDetail_20' ) start [2025-06-13 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285152', 'tblTempUsageDetail_20' ) end [2025-06-13 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-13 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-13 04:25:23] Production.INFO: ==26437== Releasing lock... [2025-06-13 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 04:25:23] Production.INFO: 30.5 MB #Memory Used# [2025-06-13 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 02:25:06 [end_date_ymd] => 2025-06-13 05:25:06 [RateCDR] => 1 ) [2025-06-13 05:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-13 02:25:06' and `end` < '2025-06-13 05:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-13 05:25:18] Production.INFO: count ==176 [2025-06-13 05:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 02:25:06 - End Time 2025-06-13 05:25:06 [2025-06-13 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285400', 'tblTempUsageDetail_20' ) start [2025-06-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285400', 'tblTempUsageDetail_20' ) end [2025-06-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285400', 'tblTempVendorCDR_20' ) start [2025-06-13 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285400', 'tblTempVendorCDR_20' ) end [2025-06-13 05:25:18] Production.INFO: ProcessCDR(1,15285400,1,1,2) [2025-06-13 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15285400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 05:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15285400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 05:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15285400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 05:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15285400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285400', 'tblTempUsageDetail_20' ) start [2025-06-13 05:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285400', 'tblTempUsageDetail_20' ) end [2025-06-13 05:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-13 05:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-13 05:25:23] Production.INFO: ==31075== Releasing lock... [2025-06-13 05:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 05:25:23] Production.INFO: 29.25 MB #Memory Used# [2025-06-13 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 03:25:06 [end_date_ymd] => 2025-06-13 06:25:06 [RateCDR] => 1 ) [2025-06-13 06:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-13 03:25:06' and `end` < '2025-06-13 06:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-13 06:25:18] Production.INFO: count ==102 [2025-06-13 06:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 03:25:06 - End Time 2025-06-13 06:25:06 [2025-06-13 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285647', 'tblTempUsageDetail_20' ) start [2025-06-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285647', 'tblTempUsageDetail_20' ) end [2025-06-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285647', 'tblTempVendorCDR_20' ) start [2025-06-13 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285647', 'tblTempVendorCDR_20' ) end [2025-06-13 06:25:18] Production.INFO: ProcessCDR(1,15285647,1,1,2) [2025-06-13 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15285647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15285647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15285647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15285647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285647', 'tblTempUsageDetail_20' ) start [2025-06-13 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285647', 'tblTempUsageDetail_20' ) end [2025-06-13 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-13 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-13 06:25:24] Production.INFO: ==2980== Releasing lock... [2025-06-13 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 06:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-06-13 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 04:25:04 [end_date_ymd] => 2025-06-13 07:25:04 [RateCDR] => 1 ) [2025-06-13 07: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-13 04:25:04' and `end` < '2025-06-13 07: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-13 07:25:16] Production.INFO: count ==171 [2025-06-13 07:25:16] Production.ERROR: pbx CDR StartTime 2025-06-13 04:25:04 - End Time 2025-06-13 07:25:04 [2025-06-13 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285894', 'tblTempUsageDetail_20' ) start [2025-06-13 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15285894', 'tblTempUsageDetail_20' ) end [2025-06-13 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285894', 'tblTempVendorCDR_20' ) start [2025-06-13 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15285894', 'tblTempVendorCDR_20' ) end [2025-06-13 07:25:16] Production.INFO: ProcessCDR(1,15285894,1,1,2) [2025-06-13 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15285894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15285894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15285894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15285894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285894', 'tblTempUsageDetail_20' ) start [2025-06-13 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15285894', 'tblTempUsageDetail_20' ) end [2025-06-13 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-06-13 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-06-13 07:25:22] Production.INFO: ==7991== Releasing lock... [2025-06-13 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 07:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-06-13 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 05:25:05 [end_date_ymd] => 2025-06-13 08:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 05:25:05' and `end` < '2025-06-13 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-13 08:25:17] Production.INFO: count ==346 [2025-06-13 08:25:17] Production.ERROR: pbx CDR StartTime 2025-06-13 05:25:05 - End Time 2025-06-13 08:25:05 [2025-06-13 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286141', 'tblTempUsageDetail_20' ) start [2025-06-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286141', 'tblTempUsageDetail_20' ) end [2025-06-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286141', 'tblTempVendorCDR_20' ) start [2025-06-13 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286141', 'tblTempVendorCDR_20' ) end [2025-06-13 08:25:17] Production.INFO: ProcessCDR(1,15286141,1,1,2) [2025-06-13 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15286141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15286141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15286141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 08:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15286141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286141', 'tblTempUsageDetail_20' ) start [2025-06-13 08:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286141', 'tblTempUsageDetail_20' ) end [2025-06-13 08:25:23] Production.ERROR: pbx prc_insertCDR start [2025-06-13 08:25:23] Production.ERROR: pbx prc_insertCDR end [2025-06-13 08:25:23] Production.INFO: ==12589== Releasing lock... [2025-06-13 08:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 08:25:23] Production.INFO: 31 MB #Memory Used# [2025-06-13 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 06:25:05 [end_date_ymd] => 2025-06-13 09:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 06:25:05' and `end` < '2025-06-13 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-13 09:25:18] Production.INFO: count ==1363 [2025-06-13 09:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 06:25:05 - End Time 2025-06-13 09:25:05 [2025-06-13 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286388', 'tblTempUsageDetail_20' ) start [2025-06-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286388', 'tblTempUsageDetail_20' ) end [2025-06-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286388', 'tblTempVendorCDR_20' ) start [2025-06-13 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286388', 'tblTempVendorCDR_20' ) end [2025-06-13 09:25:18] Production.INFO: ProcessCDR(1,15286388,1,1,2) [2025-06-13 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15286388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15286388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15286388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15286388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286388', 'tblTempUsageDetail_20' ) start [2025-06-13 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286388', 'tblTempUsageDetail_20' ) end [2025-06-13 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-13 09:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-13 09:25:26] Production.INFO: ==17571== Releasing lock... [2025-06-13 09:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 09:25:26] Production.INFO: 38.5 MB #Memory Used# [2025-06-13 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 07:25:05 [end_date_ymd] => 2025-06-13 10:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 07:25:05' and `end` < '2025-06-13 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-13 10:25:18] Production.INFO: count ==2719 [2025-06-13 10:25:19] Production.ERROR: pbx CDR StartTime 2025-06-13 07:25:05 - End Time 2025-06-13 10:25:05 [2025-06-13 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286635', 'tblTempUsageDetail_20' ) start [2025-06-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286635', 'tblTempUsageDetail_20' ) end [2025-06-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286635', 'tblTempVendorCDR_20' ) start [2025-06-13 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286635', 'tblTempVendorCDR_20' ) end [2025-06-13 10:25:19] Production.INFO: ProcessCDR(1,15286635,1,1,2) [2025-06-13 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15286635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15286635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15286635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15286635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286635', 'tblTempUsageDetail_20' ) start [2025-06-13 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286635', 'tblTempUsageDetail_20' ) end [2025-06-13 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-13 10:25:28] Production.ERROR: pbx prc_insertCDR end [2025-06-13 10:25:28] Production.INFO: ==22823== Releasing lock... [2025-06-13 10:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 10:25:28] Production.INFO: 48.75 MB #Memory Used# [2025-06-13 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 08:25:05 [end_date_ymd] => 2025-06-13 11:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 08:25:05' and `end` < '2025-06-13 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-13 11:25:20] Production.INFO: count ==4227 [2025-06-13 11:25:22] Production.ERROR: pbx CDR StartTime 2025-06-13 08:25:05 - End Time 2025-06-13 11:25:05 [2025-06-13 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286882', 'tblTempUsageDetail_20' ) start [2025-06-13 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15286882', 'tblTempUsageDetail_20' ) end [2025-06-13 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286882', 'tblTempVendorCDR_20' ) start [2025-06-13 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15286882', 'tblTempVendorCDR_20' ) end [2025-06-13 11:25:22] Production.INFO: ProcessCDR(1,15286882,1,1,2) [2025-06-13 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15286882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15286882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15286882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 11:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15286882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 11:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286882', 'tblTempUsageDetail_20' ) start [2025-06-13 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15286882', 'tblTempUsageDetail_20' ) end [2025-06-13 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-06-13 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-13 11:25:32] Production.INFO: ==27314== Releasing lock... [2025-06-13 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 11:25:32] Production.INFO: 59.75 MB #Memory Used# [2025-06-13 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 09:25:06 [end_date_ymd] => 2025-06-13 12:25:06 [RateCDR] => 1 ) [2025-06-13 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-06-13 09:25:06' and `end` < '2025-06-13 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-06-13 12:25:19] Production.INFO: count ==4884 [2025-06-13 12:25:21] Production.ERROR: pbx CDR StartTime 2025-06-13 09:25:06 - End Time 2025-06-13 12:25:06 [2025-06-13 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287129', 'tblTempUsageDetail_20' ) start [2025-06-13 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287129', 'tblTempUsageDetail_20' ) end [2025-06-13 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287129', 'tblTempVendorCDR_20' ) start [2025-06-13 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287129', 'tblTempVendorCDR_20' ) end [2025-06-13 12:25:22] Production.INFO: ProcessCDR(1,15287129,1,1,2) [2025-06-13 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15287129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15287129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15287129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 12:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15287129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287129', 'tblTempUsageDetail_20' ) start [2025-06-13 12:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287129', 'tblTempUsageDetail_20' ) end [2025-06-13 12:25:29] Production.ERROR: pbx prc_insertCDR start [2025-06-13 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-06-13 12:25:32] Production.INFO: ==31728== Releasing lock... [2025-06-13 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 12:25:32] Production.INFO: 64.75 MB #Memory Used# [2025-06-13 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 10:25:05 [end_date_ymd] => 2025-06-13 13:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 10:25:05' and `end` < '2025-06-13 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-13 13:25:20] Production.INFO: count ==4874 [2025-06-13 13:25:23] Production.ERROR: pbx CDR StartTime 2025-06-13 10:25:05 - End Time 2025-06-13 13:25:05 [2025-06-13 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287376', 'tblTempUsageDetail_20' ) start [2025-06-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287376', 'tblTempUsageDetail_20' ) end [2025-06-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287376', 'tblTempVendorCDR_20' ) start [2025-06-13 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287376', 'tblTempVendorCDR_20' ) end [2025-06-13 13:25:23] Production.INFO: ProcessCDR(1,15287376,1,1,2) [2025-06-13 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15287376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15287376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15287376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15287376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287376', 'tblTempUsageDetail_20' ) start [2025-06-13 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287376', 'tblTempUsageDetail_20' ) end [2025-06-13 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-06-13 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-06-13 13:25:33] Production.INFO: ==4138== Releasing lock... [2025-06-13 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 13:25:33] Production.INFO: 64.75 MB #Memory Used# [2025-06-13 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 11:25:05 [end_date_ymd] => 2025-06-13 14:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 11:25:05' and `end` < '2025-06-13 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-13 14:25:18] Production.INFO: count ==4613 [2025-06-13 14:25:20] Production.ERROR: pbx CDR StartTime 2025-06-13 11:25:05 - End Time 2025-06-13 14:25:05 [2025-06-13 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287623', 'tblTempUsageDetail_20' ) start [2025-06-13 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287623', 'tblTempUsageDetail_20' ) end [2025-06-13 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287623', 'tblTempVendorCDR_20' ) start [2025-06-13 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287623', 'tblTempVendorCDR_20' ) end [2025-06-13 14:25:21] Production.INFO: ProcessCDR(1,15287623,1,1,2) [2025-06-13 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15287623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 14:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15287623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 14:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15287623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15287623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287623', 'tblTempUsageDetail_20' ) start [2025-06-13 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287623', 'tblTempUsageDetail_20' ) end [2025-06-13 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-13 14:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-13 14:25:29] Production.INFO: ==8449== Releasing lock... [2025-06-13 14:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 14:25:29] Production.INFO: 62.75 MB #Memory Used# [2025-06-13 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 12:25:05 [end_date_ymd] => 2025-06-13 15:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 12:25:05' and `end` < '2025-06-13 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-13 15:25:18] Production.INFO: count ==4424 [2025-06-13 15:25:20] Production.ERROR: pbx CDR StartTime 2025-06-13 12:25:05 - End Time 2025-06-13 15:25:05 [2025-06-13 15:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287870', 'tblTempUsageDetail_20' ) start [2025-06-13 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15287870', 'tblTempUsageDetail_20' ) end [2025-06-13 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287870', 'tblTempVendorCDR_20' ) start [2025-06-13 15:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15287870', 'tblTempVendorCDR_20' ) end [2025-06-13 15:25:20] Production.INFO: ProcessCDR(1,15287870,1,1,2) [2025-06-13 15:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15287870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15287870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15287870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15287870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287870', 'tblTempUsageDetail_20' ) start [2025-06-13 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15287870', 'tblTempUsageDetail_20' ) end [2025-06-13 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-13 15:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-13 15:25:30] Production.INFO: ==14792== Releasing lock... [2025-06-13 15:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 15:25:30] Production.INFO: 61.25 MB #Memory Used# [2025-06-13 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 13:25:06 [end_date_ymd] => 2025-06-13 16:25:06 [RateCDR] => 1 ) [2025-06-13 16: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-13 13:25:06' and `end` < '2025-06-13 16: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-13 16:25:21] Production.INFO: count ==4790 [2025-06-13 16:25:23] Production.ERROR: pbx CDR StartTime 2025-06-13 13:25:06 - End Time 2025-06-13 16:25:06 [2025-06-13 16:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288117', 'tblTempUsageDetail_20' ) start [2025-06-13 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288117', 'tblTempUsageDetail_20' ) end [2025-06-13 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288117', 'tblTempVendorCDR_20' ) start [2025-06-13 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288117', 'tblTempVendorCDR_20' ) end [2025-06-13 16:25:24] Production.INFO: ProcessCDR(1,15288117,1,1,2) [2025-06-13 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15288117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15288117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15288117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15288117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288117', 'tblTempUsageDetail_20' ) start [2025-06-13 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288117', 'tblTempUsageDetail_20' ) end [2025-06-13 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-06-13 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-06-13 16:25:34] Production.INFO: ==21300== Releasing lock... [2025-06-13 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 16:25:34] Production.INFO: 64 MB #Memory Used# [2025-06-13 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 14:25:04 [end_date_ymd] => 2025-06-13 17:25:04 [RateCDR] => 1 ) [2025-06-13 17: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-13 14:25:04' and `end` < '2025-06-13 17: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-13 17:25:18] Production.INFO: count ==5088 [2025-06-13 17:25:20] Production.ERROR: pbx CDR StartTime 2025-06-13 14:25:04 - End Time 2025-06-13 17:25:04 [2025-06-13 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288364', 'tblTempUsageDetail_20' ) start [2025-06-13 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288364', 'tblTempUsageDetail_20' ) end [2025-06-13 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288364', 'tblTempVendorCDR_20' ) start [2025-06-13 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288364', 'tblTempVendorCDR_20' ) end [2025-06-13 17:25:21] Production.INFO: ProcessCDR(1,15288364,1,1,2) [2025-06-13 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15288364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15288364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15288364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 17:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15288364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288364', 'tblTempUsageDetail_20' ) start [2025-06-13 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288364', 'tblTempUsageDetail_20' ) end [2025-06-13 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-13 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-06-13 17:25:30] Production.INFO: ==27614== Releasing lock... [2025-06-13 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 17:25:30] Production.INFO: 66.25 MB #Memory Used# [2025-06-13 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 15:25:05 [end_date_ymd] => 2025-06-13 18:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 15:25:05' and `end` < '2025-06-13 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-13 18:25:18] Production.INFO: count ==4705 [2025-06-13 18:25:20] Production.ERROR: pbx CDR StartTime 2025-06-13 15:25:05 - End Time 2025-06-13 18:25:05 [2025-06-13 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288611', 'tblTempUsageDetail_20' ) start [2025-06-13 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288611', 'tblTempUsageDetail_20' ) end [2025-06-13 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288611', 'tblTempVendorCDR_20' ) start [2025-06-13 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288611', 'tblTempVendorCDR_20' ) end [2025-06-13 18:25:21] Production.INFO: ProcessCDR(1,15288611,1,1,2) [2025-06-13 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15288611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15288611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15288611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15288611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288611', 'tblTempUsageDetail_20' ) start [2025-06-13 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288611', 'tblTempUsageDetail_20' ) end [2025-06-13 18:25:28] Production.ERROR: pbx prc_insertCDR start [2025-06-13 18:25:29] Production.ERROR: pbx prc_insertCDR end [2025-06-13 18:25:29] Production.INFO: ==1989== Releasing lock... [2025-06-13 18:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 18:25:29] Production.INFO: 63.5 MB #Memory Used# [2025-06-13 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 16:25:05 [end_date_ymd] => 2025-06-13 19:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 16:25:05' and `end` < '2025-06-13 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-13 19:25:17] Production.INFO: count ==3696 [2025-06-13 19:25:19] Production.ERROR: pbx CDR StartTime 2025-06-13 16:25:05 - End Time 2025-06-13 19:25:05 [2025-06-13 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288855', 'tblTempUsageDetail_20' ) start [2025-06-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15288855', 'tblTempUsageDetail_20' ) end [2025-06-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288855', 'tblTempVendorCDR_20' ) start [2025-06-13 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15288855', 'tblTempVendorCDR_20' ) end [2025-06-13 19:25:19] Production.INFO: ProcessCDR(1,15288855,1,1,2) [2025-06-13 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15288855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15288855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15288855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15288855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288855', 'tblTempUsageDetail_20' ) start [2025-06-13 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15288855', 'tblTempUsageDetail_20' ) end [2025-06-13 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-06-13 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-13 19:25:26] Production.INFO: ==8283== Releasing lock... [2025-06-13 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 19:25:26] Production.INFO: 55.75 MB #Memory Used# [2025-06-13 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 17:25:05 [end_date_ymd] => 2025-06-13 20:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 17:25:05' and `end` < '2025-06-13 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-13 20:25:17] Production.INFO: count ==2580 [2025-06-13 20:25:18] Production.ERROR: pbx CDR StartTime 2025-06-13 17:25:05 - End Time 2025-06-13 20:25:05 [2025-06-13 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289102', 'tblTempUsageDetail_20' ) start [2025-06-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289102', 'tblTempUsageDetail_20' ) end [2025-06-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289102', 'tblTempVendorCDR_20' ) start [2025-06-13 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289102', 'tblTempVendorCDR_20' ) end [2025-06-13 20:25:18] Production.INFO: ProcessCDR(1,15289102,1,1,2) [2025-06-13 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15289102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15289102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15289102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15289102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289102', 'tblTempUsageDetail_20' ) start [2025-06-13 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289102', 'tblTempUsageDetail_20' ) end [2025-06-13 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-13 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-06-13 20:25:25] Production.INFO: ==14527== Releasing lock... [2025-06-13 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 20:25:25] Production.INFO: 47.5 MB #Memory Used# [2025-06-13 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 18:25:05 [end_date_ymd] => 2025-06-13 21:25:05 [RateCDR] => 1 ) [2025-06-13 21: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-13 18:25:05' and `end` < '2025-06-13 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-13 21:25:18] Production.INFO: count ==2031 [2025-06-13 21:25:19] Production.ERROR: pbx CDR StartTime 2025-06-13 18:25:05 - End Time 2025-06-13 21:25:05 [2025-06-13 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289349', 'tblTempUsageDetail_20' ) start [2025-06-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289349', 'tblTempUsageDetail_20' ) end [2025-06-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289349', 'tblTempVendorCDR_20' ) start [2025-06-13 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289349', 'tblTempVendorCDR_20' ) end [2025-06-13 21:25:19] Production.INFO: ProcessCDR(1,15289349,1,1,2) [2025-06-13 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15289349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15289349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15289349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15289349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289349', 'tblTempUsageDetail_20' ) start [2025-06-13 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289349', 'tblTempUsageDetail_20' ) end [2025-06-13 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-06-13 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-06-13 21:25:26] Production.INFO: ==20432== Releasing lock... [2025-06-13 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 21:25:26] Production.INFO: 43.5 MB #Memory Used# [2025-06-13 22:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 19:25:04 [end_date_ymd] => 2025-06-13 22:25:04 [RateCDR] => 1 ) [2025-06-13 22: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-13 19:25:04' and `end` < '2025-06-13 22: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-13 22:25:17] Production.INFO: count ==1668 [2025-06-13 22:25:17] Production.ERROR: pbx CDR StartTime 2025-06-13 19:25:04 - End Time 2025-06-13 22:25:04 [2025-06-13 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289596', 'tblTempUsageDetail_20' ) start [2025-06-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289596', 'tblTempUsageDetail_20' ) end [2025-06-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289596', 'tblTempVendorCDR_20' ) start [2025-06-13 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289596', 'tblTempVendorCDR_20' ) end [2025-06-13 22:25:17] Production.INFO: ProcessCDR(1,15289596,1,1,2) [2025-06-13 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15289596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15289596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15289596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 22:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15289596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 22:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289596', 'tblTempUsageDetail_20' ) start [2025-06-13 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289596', 'tblTempUsageDetail_20' ) end [2025-06-13 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-13 22:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-13 22:25:24] Production.INFO: ==24783== Releasing lock... [2025-06-13 22:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 22:25:24] Production.INFO: 40.75 MB #Memory Used# [2025-06-13 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-06-13 20:25:05 [end_date_ymd] => 2025-06-13 23:25:05 [RateCDR] => 1 ) [2025-06-13 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-13 20:25:05' and `end` < '2025-06-13 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-13 23:25:17] Production.INFO: count ==1281 [2025-06-13 23:25:17] Production.ERROR: pbx CDR StartTime 2025-06-13 20:25:05 - End Time 2025-06-13 23:25:05 [2025-06-13 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-06-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289843', 'tblTempUsageDetail_20' ) start [2025-06-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15289843', 'tblTempUsageDetail_20' ) end [2025-06-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289843', 'tblTempVendorCDR_20' ) start [2025-06-13 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15289843', 'tblTempVendorCDR_20' ) end [2025-06-13 23:25:17] Production.INFO: ProcessCDR(1,15289843,1,1,2) [2025-06-13 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15289843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15289843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-06-13 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15289843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 23:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15289843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-06-13 23:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289843', 'tblTempUsageDetail_20' ) start [2025-06-13 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15289843', 'tblTempUsageDetail_20' ) end [2025-06-13 23:25:24] Production.ERROR: pbx prc_insertCDR start [2025-06-13 23:25:24] Production.ERROR: pbx prc_insertCDR end [2025-06-13 23:25:24] Production.INFO: ==29240== Releasing lock... [2025-06-13 23:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-06-13 23:25:24] Production.INFO: 38.25 MB #Memory Used#